annotate pbgcpp.xml @ 1:a6c40438946b draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit b9fe99d8335825c6c23f569034354323b794127a
author iuc
date Wed, 08 Mar 2023 12:00:29 +0000
parents a6d93d0d5328
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
1 <tool id="pbgcpp" name="pbgcpp" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
2 <description>Compute genomic consensus and call variants using PacBio reads mapped to a reference.</description>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
3 <macros>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
4 <import>macros.xml</import>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
5 </macros>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
6 <expand macro="xrefs"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
9 ## set up files
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
10 #if $reference_source.reference_source_selector == 'history':
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
11 #set ref_fn = 'reference.fa'
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
12 ln -f -s '$reference_source.ref_file' '$ref_fn' &&
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
13 #else:
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
14 #set ref_fn = $reference_source.ref_file.fields.path
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
15 #end if
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
16
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
17 ln -s '$input' 'input.bam' &&
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
18 ln -s '$input.metadata.bam_index' 'input.bam.bai' &&
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
19
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
20 ## set up the outputs
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
21 #set output_line = ','.join('output.' + str(x) for x in $output_selector)
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
22
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
23 ## run variantCaller
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
24 gcpp
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
25 --num-threads \${GALAXY_SLOTS:-4}
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
26 --reference '$ref_fn'
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
27 --output $output_line
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
28 'input.bam'
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
29 ]]></command>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
30 <inputs>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
31 <!-- from tools-iuc minimap2 wrapper -->
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
32 <conditional name="reference_source">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
33 <param name="reference_source_selector" type="select" label="Will you select a reference genome from your history or use a built-in index?">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
34 <option value="cached">Use a built-in genome index</option>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
35 <option value="history">Use a genome from history and build index</option>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
36 </param>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
37 <when value="cached">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
38 <param name="ref_file" type="select" label="Using reference genome" help="Select genome from the list">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
39 <options from_data_table="all_fasta">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
40 <filter type="sort_by" column="2" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
41 <validator type="no_options" message="No reference genomes are available" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
42 </options>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
43 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
44 </param>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
45 </when>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
46 <when value="history">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
47 <param name="ref_file" type="data" format="fasta" label="Use the following dataset as the reference sequence" help="You can upload a FASTA sequence to the history and use it as reference" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
48 </when>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
49 </conditional>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
50 <param type="data" name="input" format="bam" label="bam" help="The input BAM alignment file" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
51 <!-- Output Options -->
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
52 <param name="output_selector" type="select" multiple="True" display="checkboxes" label="Output formats">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
53 <!-- Use the format's extension as the value, so we can use it directly in the output_line constructor. -->
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
54 <option value="fa" selected="true">Computed consensus (fasta)</option>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
55 <option value="vcf">Variants (vcf)</option>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
56 <option value="gff">Variants (gff)</option>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
57 </param>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
58 </inputs>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
59 <outputs>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
60 <data name="fa" format="fasta" from_work_dir="output.fa" label="${tool.name} on ${on_string} (consensus)">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
61 <filter>output_selector and 'fa' in output_selector</filter>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
62 </data>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
63 <data name="gff" format="gff" from_work_dir="output.gff" label="${tool.name} on ${on_string} (gff)">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
64 <filter>output_selector and 'gff' in output_selector</filter>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
65 </data>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
66 <data name="vcf" format="vcf" from_work_dir="output.vcf" label="${tool.name} on ${on_string} (vcf)">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
67 <filter>output_selector and 'vcf' in output_selector</filter>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
68 </data>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
69 </outputs>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
70 <tests>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
71 <!-- test1: basic test (output from pbmm2 1.10.0) -->
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
72 <test expect_num_outputs="1">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
73 <param name="reference_source_selector" value="history" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
74 <param name="ref_file" value="bnd-ref.fasta"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
75 <param name="input" value="pbmm2_3.bam"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
76 <param name="output_selector" value="fa"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
77 <output name="fa" ftype="fasta" file="pbgcpp_test1_out.fa"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
78 </test>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
79 <!-- test2: output selector -->
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
80 <test expect_num_outputs="3">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
81 <param name="reference_source_selector" value="history" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
82 <param name="ref_file" value="bnd-ref.fasta"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
83 <param name="input" value="pbmm2.bam"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
84 <param name="output_selector" value="fa,gff,vcf"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
85 <output name="fa" ftype="fasta" file="pbgcpp_test2_out.fa"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
86 <output name="gff" ftype="gff">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
87 <assert_contents>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
88 <has_text text="gff-version 3" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
89 </assert_contents>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
90 </output>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
91 <output name="vcf" ftype="vcf">
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
92 <assert_contents>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
93 <has_text text="fileformat=VCFv4.2" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
94 </assert_contents>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
95 </output>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
96 </test>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
97 <!-- test3: cached genome -->
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
98 <test>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
99 <param name="reference_source_selector" value="cached" />
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
100 <param name="ref_file" value="bnd-ref"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
101 <param name="input" value="pbmm2_3.bam"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
102 <param name="output_selector" value="fa"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
103 <output name="fa" ftype="fasta" file="pbgcpp_test3_out.fa"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
104 </test>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
105 </tests>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
106 <help><![CDATA[
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
107 **What it does**
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
108
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
109 Compute genomic consensus and call variants relative to the reference.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
110
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
111 This tool requires a PacBio BAM file.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
112
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
113 You can create one by mapping PacBio reads to the reference genome with
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
114 the `pbmm2 <root?tool_id=pbmm2>`__ tool. When doing this, you have to
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
115 input CLR reads to pbmm2 in [unaligned] BAM format, not fastq or fasta. This is
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
116 because the pbgcpp algorithm uses additional information stored in the
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
117 unaligned BAM format that PacBio uses.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
118
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
119 **NOTE**: The pbgcpp tool used to be called GenomicConsensus. It works for PacBio Sequel data and RS data with the P6-C4 chemistry.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
120
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
121 --------------
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
122
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
123 pbgcpp is Pacific Biosciences’ tool to generate accurate reference
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
124 contigs. It takes an alignment in the form of a BAM file and polishes
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
125 the references with the provided subreads from the alignment. It uses
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
126 the Arrow algorithm in multi-molecule consensus setting and can reach up
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
127 to QV60 at coverage 100. pbgcpp is the successor of the venerable
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
128 GenomicConsensus suite which has reached EOL.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
129
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
130 See the `Pacific Biosciences GitHub
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
131 page <https://github.com/PacificBiosciences/pbbioconda>`__ for more
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
132 information.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
133
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
134 **Input**: Aligned subreads in PacBio BAM format (.bam). Compatible with PacBio Sequel data and RS data with the P6-C4 chemistry.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
135
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
136 **Output**: Polished contigs in .fasta format.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
137
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
138 **Why am I getting “Missing valid chemistry from input file, is this a
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
139 proper PBBAM input file?”**
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
140
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
141 pbgcpp expects metadata in the bamfile that most aligners (like
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
142 minimap2) don’t include by default. Align the PacBio reads file using
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
143 pbmm2.
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
144
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
145 ]]></help>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
146 <expand macro="creator"/>
a6d93d0d5328 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbgcpp commit d8032f67869704a4f9308796d748966d1f4760ae
iuc
parents:
diff changeset
147 </tool>