annotate bcftools_view.xml @ 2:14567aa2be12 draft default tip

Added wrapper script for correct stderr handling
author geert-vandeweyer
date Thu, 10 Apr 2014 09:44:09 -0400
parents 3182c7fac413
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3182c7fac413 changed bcftools_view.xml to version 1.0.0
nilesh
parents: 0
diff changeset
1 <tool id="bcftools_view" name="bcftools view" version="1.0.0">
0
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
2 <description>Converts BCF format to VCF format</description>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
3 <requirements>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
4 <requirement type="package" version="0.1.18">samtools</requirement>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
5 </requirements>
2
14567aa2be12 Added wrapper script for correct stderr handling
geert-vandeweyer
parents: 1
diff changeset
6 <command interpreter='python'>
14567aa2be12 Added wrapper script for correct stderr handling
geert-vandeweyer
parents: 1
diff changeset
7 bcftools_wrapper.py bcftools view
0
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
8 #if str( $A ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
9 -A
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
10 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
11 #if str( $b ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
12 -b
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
13 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
14 #if $D.seq_dictionary == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
15 -D "$D.input"
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
16 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
17 #if str( $F ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
18 -F
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
19 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
20 #if str( $G ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
21 -G
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
22 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
23 #if str( $N ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
24 -N
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
25 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
26 #if str( $S ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
27 -S
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
28 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
29 #if str( $u) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
30 -u
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
31 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
32 #if str( $c ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
33 -c
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
34 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
35 #if str( $e ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
36 -e
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
37 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
38 #if str( $g ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
39 -g
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
40 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
41 #if $i.alt_indel_snp_ratio == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
42 -i $i.ratio
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
43 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
44 #if $p.variant_filter == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
45 -p $p.float_value
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
46 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
47 #if $t.mutation_rate == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
48 -t $t.rate
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
49 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
50 #if str( $v ) == "true":
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
51 -v
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
52 #end if
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
53 $input
2
14567aa2be12 Added wrapper script for correct stderr handling
geert-vandeweyer
parents: 1
diff changeset
54 > $output
0
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
55 </command>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
56 <inputs>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
57 <param name="input" type="data" format="bcf" label="Choose a bcf file to view" />
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
58 <param name="A" type="select" label="Retain all possible alternate alleles at variant sites">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
59 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
60 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
61 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
62 <param name="b" type="select" label="Output in the BCF format. The default is VCF.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
63 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
64 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
65 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
66 <conditional name="D">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
67 <param name="seq_dictionary" type="select" label="Sequence dictionary (list of chromosome names) for VCF->BCF conversion.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
68 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
69 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
70 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
71 <when value="true">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
72 <param name="input" type="data" format="tabular" label="Sequence dictionary" />
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
73 </when>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
74 </conditional>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
75 <param name="F" type="select" label="Indicate PL is generated by r921 or before (ordering is different).">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
76 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
77 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
78 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
79 <param name="G" type="select" label="Suppress all individual genotype information.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
80 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
81 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
82 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
83 <param name="N" type="select" label="Skip sites where the REF field is not A/C/G/T">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
84 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
85 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
86 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
87 <param name="S" type="select" label="The input is VCF instead of BCF.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
88 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
89 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
90 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
91 <param name="u" type="select" label="Uncompressed BCF output.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
92 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
93 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
94 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
95 <param name="c" type="select" label="Call variants using Bayesian inference. Automatically performs max-likelihood inference only">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
96 <option value="true" selected="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
97 <option value="false">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
98 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
99 <param name="e" type="select" label="Perform max-likelihood inference only, including estimating the site allele frequency, testing Hardy-Weinberg equilibrium and testing associations with LRT.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
100 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
101 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
102 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
103 <param name="g" type="select" label="Call per-sample genotypes at variant sites">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
104 <option value="true" selected="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
105 <option value="false">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
106 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
107 <conditional name="i">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
108 <param name="alt_indel_snp_ratio" type="select" label="Use alternate INDEL-to-SNP mutation rate, default 0.15.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
109 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
110 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
111 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
112 <when value="true">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
113 <param name="ratio" type="float" label="Ratio (float)" value="0.15" />
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
114 </when>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
115 </conditional>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
116 <conditional name="p">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
117 <param name="variant_filter" type="select" >
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
118 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
119 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
120 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
121 <when value="true">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
122 <param name="float_value" type="float" label="Float" value="0.5" />
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
123 </when>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
124 </conditional>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
125 <conditional name="t">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
126 <param name="mutation_rate" type="select" label="Specify scaled mutation rate for variant calling, default is 0.001.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
127 <option value="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
128 <option value="false" selected="true">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
129 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
130 <when value="true">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
131 <param name="rate" type="float" label="Mutation Rate (float)" value="0.001" />
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
132 </when>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
133 </conditional>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
134 <param name="v" type="select" label="Output variant sites only.">
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
135 <option value="true" selected="true">Yes</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
136 <option value="false">No</option>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
137 </param>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
138 </inputs>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
139 <outputs>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
140 <data format="tabular" name="output" />
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
141 </outputs>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
142 <help>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
143 **What it does:**
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
144
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
145 This tool converts BCF files into VCF files using BCFtools view from the SAMtools set of utilities:
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
146
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
147 http://samtools.sourceforge.net/samtools.shtml#4
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
148
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
149 ------
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
150
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
151 **Citation:**
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
152
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
153 For the underlying tool, please cite `Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R; 1000 Genome Project Data Processing Subgroup. The Sequence Alignment/Map format and SAMtools. Bioinformatics. 2009 Aug 15;25(16):2078-9. &lt;http://www.ncbi.nlm.nih.gov/pubmed/19505943&gt;`_
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
154
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
155
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
156 If you use this tool within Galaxy, please cite `Gregory Minevich, Danny S. Park, Daniel Blankenberg, Richard J. Poole, and Oliver Hobert. CloudMap: A Cloud-based Pipeline for Analysis of Mutant Genome Sequences. (Genetics 2012 In Press)`__
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
157
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
158 .. __: http://biochemistry.hs.columbia.edu/labs/hobert/literature.html
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
159
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
160 Correspondence to gm2123@columbia.edu (G.M.) or or38@columbia.edu (O.H.)
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
161
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
162 </help>
f2d331bf3d38 Uploaded
nilesh
parents:
diff changeset
163 </tool>