comparison callvariants.xml @ 0:18b91d72794b draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 56300a95740ee11e84a7d0bda07a71fbaf4952e4"
author iuc
date Tue, 05 Oct 2021 20:05:50 +0000
parents
children 8eace8923202
comparison
equal deleted inserted replaced
-1:000000000000 0:18b91d72794b
1 <tool id="bbtools_callvariants" name="BBTools: call variants" version="@WRAPPER_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>in aligned Bam files</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <command detect_errors="exit_code"><![CDATA[
8 #import os
9
10 #if str($ref_source_cond.ref_source) == 'cached'
11 #set ref = str($ref_source_cond.reference.fields.path)
12 #else:
13 #set ref = $ref_source_cond.reference
14 #end if
15
16 ## callvariants uses the file extension to determine the input format.
17 #set input_name = str($os.path.basename($input.file_name)) + '.bam'
18 ln -s '${input}' '${input_name}' &&
19
20 callvariants.sh in='${input_name}' threads=\${GALAXY_SLOTS:-4} ref='${ref}' ploidy=$ploidy
21 #if $output_variant_score_hist:
22 shist='$output_scorehist'
23 #end if
24 #if $output_zygosity_hist:
25 zhist='$output_zygosityhist'
26 #end if
27 #if $output_quality_hist:
28 qhist='$output_qualityhist'
29 #end if
30 #if str($output_format) == 'vcf':
31 vcf='out.vcf' && mv 'out.vcf' '$output'
32 #elif str($output_format) == 'gff':
33 outgff='out.gff' && mv 'out.gff' '$output'
34 #else:
35 out='output.txt' && mv 'output.txt' '$output'
36 #end if
37 ]]></command>
38 <inputs>
39 <param name="input" type="data" format="bam" label="Bam file" help="Bam files produced by BBMap are recommended"/>
40 <expand macro="reference_source_cond"/>
41 <param name="ploidy" type="integer" value="1" min="1" label="Ploidy" help="See help section below"/>
42 <param name="output_format" type="select" label="Select output format">
43 <option value="vcf" selected="true">vcf</option>
44 <option value="gff">gff</option>
45 <option value="txt">txt</option>
46 </param>
47 <param name="output_variant_score_hist" type="boolean" truevalue="yes" falsevalue="no" checked="false" label="Output variant score histogram?"/>
48 <param name="output_zygosity_hist" type="boolean" truevalue="yes" falsevalue="no" checked="false" label="Output zygosity histogram?"/>
49 <param name="output_quality_hist" type="boolean" truevalue="yes" falsevalue="no" checked="false" label="Output quality histogram?"/>
50 </inputs>
51 <outputs>
52 <data name="output" format="vcf">
53 <change_format>
54 <when input="output_format" value="gff" format="gff"/>
55 <when input="output_format" value="txt" format="txt"/>
56 </change_format>
57 </data>
58 <data name="output_scorehist" format="tabular" label="${tool.name} on ${on_string} (scorehist)">
59 <filter>output_variant_score_hist</filter>
60 </data>
61 <data name="output_zygosityhist" format="tabular" label="${tool.name} on ${on_string} (zygosityhist)">
62 <filter>output_zygosity_hist</filter>
63 </data>
64 <data name="output_qualityhist" format="tabular" label="${tool.name} on ${on_string} (qualityhist)">
65 <filter>output_quality_hist</filter>
66 </data>
67 </outputs>
68 <tests>
69 <test expect_num_outputs="4">
70 <param name="input" value="cv_input.bam" ftype="bam"/>
71 <param name="ploidy" value="2"/>
72 <param name="output_variant_score_hist" value="yes"/>
73 <param name="output_zygosity_hist" value="yes"/>
74 <param name="output_quality_hist" value="yes"/>
75 <output name="output" file="cv_output.vcf" ftype="vcf" compare="contains"/>
76 <output name="output_scorehist" file="cv_scorehist_output.tabular" ftype="tabular" compare="contains"/>
77 <output name="output_zygosityhist" file="cv_zygosityhist_output.tabular" ftype="tabular" compare="contains"/>
78 <output name="output_qualityhist" file="cv_qualityhist_output.tabular" ftype="tabular" compare="contains"/>
79 </test>
80 <test expect_num_outputs="1">
81 <param name="input" value="cv_input.bam" ftype="bam"/>
82 <param name="ploidy" value="2"/>
83 <param name="output_format" value="gff"/>
84 <output name="output" file="cv_output.gff" ftype="gff" compare="contains"/>
85 </test>
86 <test expect_num_outputs="1">
87 <param name="input" value="cv_input.bam" ftype="bam"/>
88 <param name="ploidy" value="2"/>
89 <param name="output_format" value="txt"/>
90 <output name="output" file="cv_output.txt" ftype="txt" compare="contains"/>
91 </test>
92 </tests>
93 <help>
94 **What it does**
95
96 CallVariants is a high-speed, multithreaded variant caller that accepts bam files, and output VCF files. It is capable
97 of indel realignment, multi-sample variant-calling, and processing samples with arbitrary ploidy.
98
99 BBMap is the recommended mapping program for CallVariants, but output from any aligner is acceptable. Reads can be
100 realigned with the "realign" flag. This is slower, but is highly recommended if the input is from any mapping tool
101 other than BBMap. Output from BBMap should not be realigned.
102
103 **Options**
104
105 * **Ploidy** - Arbitrary ploidy is supported - the default is 1 which works for haploid organisms. Allele fractions lower than those expected for the ploidy (for example, anything below 0.5 for a diploid, or 0.25 for a tetraploid) will incur a score penalty. When calling variants on non-haploid organisms, it is crucial to set the ploidy.
106
107 </help>
108 <expand macro="citations"/>
109 </tool>
110