|
6
|
1 <tool id="gatk2_variant_recalibrator" name="Variant Recalibrator" version="@VERSION@.0">
|
|
0
|
2 <description></description>
|
|
6
|
3 <expand macro="requirements">
|
|
|
4 <requirement type="package" version="0.9.3">ggplot2</requirement>
|
|
|
5 </expand>
|
|
|
6 <expand macro="version_command" />
|
|
0
|
7 <macros>
|
|
|
8 <import>gatk2_macros.xml</import>
|
|
|
9 </macros>
|
|
1
|
10 <command interpreter="python">
|
|
|
11 gatk2_wrapper.py
|
|
|
12 --stdout "${output_log}"
|
|
|
13 #for $var_count, $variant in enumerate( $reference_source.variants ):
|
|
|
14 -d "--input:input_${var_count},%(file_type)s" "${variant.input_variants}" "${variant.input_variants.ext}" "input_variants_${var_count}"
|
|
|
15 #end for
|
|
|
16 -p '
|
|
|
17 @JAR_PATH@
|
|
0
|
18 -T "VariantRecalibrator"
|
|
|
19 \$GATK2_SITE_OPTIONS
|
|
|
20
|
|
|
21 @THREADS@
|
|
|
22
|
|
|
23 #if $reference_source.reference_source_selector != "history":
|
|
|
24 -R "${reference_source.ref_file.fields.path}"
|
|
|
25 #end if
|
|
|
26 --recal_file "${output_recal}"
|
|
|
27 --tranches_file "${output_tranches}"
|
|
|
28 --rscript_file "${output_rscript}"
|
|
|
29 '
|
|
|
30
|
|
|
31 #set $rod_binding_names = dict()
|
|
|
32 #for $rod_binding in $rod_bind:
|
|
|
33 #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'custom':
|
|
|
34 #set $rod_bind_name = $rod_binding.rod_bind_type.custom_rod_name
|
|
|
35 #elif str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'comp':
|
|
|
36 #set $rod_bind_name = "comp" + $rod_binding.rod_bind_type.custom_rod_name
|
|
|
37 #else
|
|
|
38 #set $rod_bind_name = $rod_binding.rod_bind_type.rod_bind_type_selector
|
|
|
39 #end if
|
|
|
40 #set $rod_binding_names[$rod_bind_name] = $rod_binding_names.get( $rod_bind_name, -1 ) + 1
|
|
|
41 #if $rod_binding.rod_bind_type.rod_training_type.rod_training_type_selector == "not_training_truth_known":
|
|
|
42 -d "--resource:${rod_bind_name},%(file_type)s" "${rod_binding.rod_bind_type.input_rod}" "${rod_binding.rod_bind_type.input_rod.ext}" "input_${rod_bind_name}_${rod_binding_names[$rod_bind_name]}"
|
|
|
43 #else:
|
|
|
44 -d "--resource:${rod_bind_name},%(file_type)s,known=${rod_binding.rod_bind_type.rod_training_type.known},training=${rod_binding.rod_bind_type.rod_training_type.training},truth=${rod_binding.rod_bind_type.rod_training_type.truth},bad=${rod_binding.rod_bind_type.rod_training_type.bad},prior=${rod_binding.rod_bind_type.rod_training_type.prior}" "${rod_binding.rod_bind_type.input_rod}" "${rod_binding.rod_bind_type.input_rod.ext}" "input_${rod_bind_name}_${rod_binding_names[$rod_bind_name]}"
|
|
|
45 #end if
|
|
|
46 #end for
|
|
|
47
|
|
|
48 #include source=$standard_gatk_options#
|
|
|
49
|
|
|
50 ##start analysis specific options
|
|
|
51 -p '
|
|
|
52 #if str( $annotations ) != "None":
|
|
|
53 #for $annotation in str( $annotations.fields.gatk_value ).split( ',' ):
|
|
|
54 --use_annotation "${annotation}"
|
|
|
55 #end for
|
|
|
56 #end if
|
|
|
57 #for $additional_annotation in $additional_annotations:
|
|
|
58 --use_annotation "${additional_annotation.additional_annotation_name}"
|
|
|
59 #end for
|
|
|
60 --mode "${mode}"
|
|
|
61 '
|
|
|
62
|
|
|
63 #if $analysis_param_type.analysis_param_type_selector == "advanced":
|
|
|
64 -p '
|
|
|
65 --maxGaussians "${analysis_param_type.max_gaussians}"
|
|
|
66 --maxIterations "${analysis_param_type.max_iterations}"
|
|
|
67 --numKMeans "${analysis_param_type.num_k_means}"
|
|
|
68 --stdThreshold "${analysis_param_type.std_threshold}"
|
|
|
69 --shrinkage "${analysis_param_type.shrinkage}"
|
|
|
70 --dirichlet "${analysis_param_type.dirichlet}"
|
|
|
71 --priorCounts "${analysis_param_type.prior_counts}"
|
|
5
|
72
|
|
|
73 --minNumBadVariants "${analysis_param_type.min_num_bad_variants}"
|
|
|
74
|
|
0
|
75 --target_titv "${analysis_param_type.target_titv}"
|
|
|
76 #for $tranche in [ $tranche.strip() for $tranche in str( $analysis_param_type.ts_tranche ).split( ',' ) if $tranche.strip() ]
|
|
|
77 --TStranche "${tranche}"
|
|
|
78 #end for
|
|
|
79 #for $ignore_filter in $analysis_param_type.ignore_filters:
|
|
|
80 #set $ignore_filter_name = str( $ignore_filter.ignore_filter_type.ignore_filter_type_selector )
|
|
|
81 #if $ignore_filter_name == "custom":
|
|
|
82 #set $ignore_filter_name = str( $ignore_filter.ignore_filter_type.filter_name )
|
|
|
83 #end if
|
|
|
84 --ignore_filter "${ignore_filter_name}"
|
|
|
85 #end for
|
|
|
86 '
|
|
|
87 #end if
|
|
|
88
|
|
|
89
|
|
|
90 &&
|
|
|
91 mv "${output_rscript}.pdf" "${output_tranches_pdf}"
|
|
|
92
|
|
|
93 </command>
|
|
|
94 <inputs>
|
|
|
95 <conditional name="reference_source">
|
|
|
96 <expand macro="reference_source_selector_param" />
|
|
|
97 <when value="cached">
|
|
|
98 <repeat name="variants" title="Variant" min="1" help="-input,--input &lt;input&gt;">
|
|
|
99 <param name="input_variants" type="data" format="vcf" label="Variant file to recalibrate" />
|
|
|
100 </repeat>
|
|
|
101 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;">
|
|
5
|
102 <options from_data_table="gatk2_picard_indexes">
|
|
0
|
103 <!-- <filter type="data_meta" key="dbkey" ref="variants[0].input_variants" column="dbkey"/> -->
|
|
|
104 </options>
|
|
|
105 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
|
106 </param>
|
|
|
107 </when>
|
|
|
108 <when value="history"> <!-- FIX ME!!!! -->
|
|
|
109 <repeat name="variants" title="Variant" min="1" help="-input,--input &lt;input&gt;">
|
|
|
110 <param name="input_variants" type="data" format="vcf" label="Variant file to recalibrate" />
|
|
|
111 </repeat>
|
|
|
112 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" />
|
|
|
113 </when>
|
|
|
114 </conditional>
|
|
|
115
|
|
6
|
116 <repeat name="rod_bind" title="Binding for reference-ordered data" help="-resource,--resource &lt;resource&gt;" min="2">
|
|
0
|
117 <conditional name="rod_bind_type">
|
|
|
118 <param name="rod_bind_type_selector" type="select" label="Binding Type">
|
|
|
119 <option value="dbsnp" selected="True">dbSNP</option>
|
|
|
120 <option value="variant">Variants</option>
|
|
|
121 <option value="snps">SNPs</option>
|
|
|
122 <option value="indels">INDELs</option>
|
|
|
123 <option value="hapmap">HapMap</option>
|
|
|
124 <option value="omni">OMNI</option>
|
|
|
125 <option value="mask">Mask</option>
|
|
|
126 <option value="custom">Custom</option>
|
|
|
127 <option value="comp">Comp</option>
|
|
|
128 </param>
|
|
|
129 <when value="variant">
|
|
|
130 <param name="input_rod" type="data" format="vcf" label="Variant ROD file" />
|
|
|
131 <conditional name="rod_training_type">
|
|
|
132 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
133 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
134 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
135 </param>
|
|
|
136 <when value="not_training_truth_known">
|
|
|
137 <!-- do nothing here -->
|
|
|
138 </when>
|
|
|
139 <when value="is_training_truth_known">
|
|
|
140 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
141 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
142 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
143 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
144 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
145 </when>
|
|
|
146 </conditional>
|
|
|
147 </when>
|
|
|
148 <when value="comp">
|
|
|
149 <param name="input_rod" type="data" format="vcf" label="ROD file" />
|
|
|
150 <param name="custom_rod_name" type="text" value="Unnamed" label="ROD Name"/>
|
|
|
151 <conditional name="rod_training_type">
|
|
|
152 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
153 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
154 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
155 </param>
|
|
|
156 <when value="not_training_truth_known">
|
|
|
157 <!-- do nothing here -->
|
|
|
158 </when>
|
|
|
159 <when value="is_training_truth_known">
|
|
|
160 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
161 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
162 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
163 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
164 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
165 </when>
|
|
|
166 </conditional>
|
|
|
167 </when>
|
|
|
168 <when value="mask">
|
|
|
169 <param name="input_rod" type="data" format="vcf" label="ROD file" />
|
|
|
170 <conditional name="rod_training_type">
|
|
|
171 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
172 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
173 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
174 </param>
|
|
|
175 <when value="not_training_truth_known">
|
|
|
176 <!-- do nothing here -->
|
|
|
177 </when>
|
|
|
178 <when value="is_training_truth_known">
|
|
|
179 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
180 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
181 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
182 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
183 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
184 </when>
|
|
|
185 </conditional>
|
|
|
186 </when>
|
|
|
187 <when value="dbsnp">
|
|
|
188 <param name="input_rod" type="data" format="vcf" label="ROD file" />
|
|
|
189 <conditional name="rod_training_type">
|
|
|
190 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
191 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
192 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
193 </param>
|
|
|
194 <when value="not_training_truth_known">
|
|
|
195 <!-- do nothing here -->
|
|
|
196 </when>
|
|
|
197 <when value="is_training_truth_known">
|
|
|
198 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
199 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
200 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
201 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
202 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
203 </when>
|
|
|
204 </conditional>
|
|
|
205 </when>
|
|
|
206 <when value="snps">
|
|
|
207 <param name="input_rod" type="data" format="vcf" label="ROD file" />
|
|
|
208 <conditional name="rod_training_type">
|
|
|
209 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
210 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
211 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
212 </param>
|
|
|
213 <when value="not_training_truth_known">
|
|
|
214 <!-- do nothing here -->
|
|
|
215 </when>
|
|
|
216 <when value="is_training_truth_known">
|
|
|
217 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
218 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
219 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
220 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
221 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
222 </when>
|
|
|
223 </conditional>
|
|
|
224 </when>
|
|
|
225 <when value="hapmap">
|
|
|
226 <param name="input_rod" type="data" format="vcf" label="ROD file" />
|
|
|
227 <conditional name="rod_training_type">
|
|
|
228 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
229 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
230 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
231 </param>
|
|
|
232 <when value="not_training_truth_known">
|
|
|
233 <!-- do nothing here -->
|
|
|
234 </when>
|
|
|
235 <when value="is_training_truth_known">
|
|
|
236 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
237 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
238 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
239 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
240 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
241 </when>
|
|
|
242 </conditional>
|
|
|
243 </when>
|
|
|
244 <when value="omni">
|
|
|
245 <param name="input_rod" type="data" format="vcf" label="ROD file" />
|
|
|
246 <conditional name="rod_training_type">
|
|
|
247 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
248 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
249 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
250 </param>
|
|
|
251 <when value="not_training_truth_known">
|
|
|
252 <!-- do nothing here -->
|
|
|
253 </when>
|
|
|
254 <when value="is_training_truth_known">
|
|
|
255 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
256 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
257 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
258 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
259 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
260 </when>
|
|
|
261 </conditional>
|
|
|
262 </when>
|
|
|
263 <when value="indels">
|
|
|
264 <param name="input_rod" type="data" format="vcf" label="ROD file" />
|
|
|
265 <conditional name="rod_training_type">
|
|
|
266 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
267 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
268 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
269 </param>
|
|
|
270 <when value="not_training_truth_known">
|
|
|
271 <!-- do nothing here -->
|
|
|
272 </when>
|
|
|
273 <when value="is_training_truth_known">
|
|
|
274 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
275 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
276 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
277 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
278 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
279 </when>
|
|
|
280 </conditional>
|
|
|
281 </when>
|
|
|
282 <when value="custom">
|
|
|
283 <param name="custom_rod_name" type="text" value="Unknown" label="ROD Name"/>
|
|
|
284 <param name="input_rod" type="data" format="vcf" label="ROD file" />
|
|
|
285 <conditional name="rod_training_type">
|
|
|
286 <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
|
|
|
287 <option value="is_training_truth_known">Set training/truth/known sites</option>
|
|
|
288 <option value="not_training_truth_known" selected="True">Don't Set options</option>
|
|
|
289 </param>
|
|
|
290 <when value="not_training_truth_known">
|
|
|
291 <!-- do nothing here -->
|
|
|
292 </when>
|
|
|
293 <when value="is_training_truth_known">
|
|
|
294 <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
|
|
|
295 <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
|
|
|
296 <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
|
|
|
297 <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
|
|
|
298 <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
|
|
|
299 </when>
|
|
|
300 </conditional>
|
|
|
301 </when>
|
|
|
302 </conditional>
|
|
|
303 </repeat>
|
|
|
304
|
|
|
305 <param name="annotations" type="select" multiple="True" display="checkboxes" label="annotations which should used for calculations" help="-an,--use_annotation &lt;use_annotation&gt;">
|
|
|
306 <!-- load the available annotations from an external configuration file, since additional ones can be added to local installs -->
|
|
|
307 <options from_data_table="gatk2_annotations">
|
|
|
308 <filter type="multiple_splitter" column="tools_valid_for" separator=","/>
|
|
|
309 <filter type="static_value" value="VariantRecalibrator" column="tools_valid_for"/>
|
|
|
310 </options>
|
|
|
311 </param>
|
|
|
312
|
|
|
313 <repeat name="additional_annotations" title="Additional annotation" help="-an,--use_annotation &lt;use_annotation&gt;">
|
|
|
314 <param name="additional_annotation_name" type="text" value="" label="Annotation name" />
|
|
|
315 </repeat>
|
|
|
316
|
|
|
317 <param name="mode" type="select" label="Recalibration mode" help="-mode,--mode &lt;mode&gt;">
|
|
|
318 <option value="SNP" selected="True">SNP</option>
|
|
|
319 <option value="INDEL">INDEL</option>
|
|
|
320 <option value="BOTH">BOTH</option>
|
|
|
321 </param>
|
|
|
322
|
|
|
323 <expand macro="gatk_param_type_conditional" />
|
|
|
324
|
|
|
325 <expand macro="analysis_type_conditional">
|
|
5
|
326 <param name="max_gaussians" type="integer" label="maximum number of Gaussians to try during variational Bayes Algorithm" value="8" help="-mG,--maxGaussians &lt;maxGaussians&gt;"/>
|
|
|
327 <param name="max_iterations" type="integer" label="maximum number of maximum number of VBEM iterations to be performed in variational Bayes Algorithm" value="150" help="-mI,--maxIterations &lt;maxIterations&gt;"/>
|
|
|
328 <param name="num_k_means" type="integer" label="number of k-means iterations to perform in order to initialize the means of the Gaussians in the Gaussian mixture model" value="100" help="-nKM,--numKMeans &lt;numKMeans&gt;"/>
|
|
|
329 <param name="std_threshold" type="float" label="If a variant has annotations more than -std standard deviations away from mean then don't use it for building the Gaussian mixture model." value="10.0" help="-std,--stdThreshold &lt;stdThreshold&gt;"/>
|
|
0
|
330 <param name="shrinkage" type="float" label="shrinkage parameter in variational Bayes algorithm" value="1.0" help="-shrinkage,--shrinkage &lt;shrinkage&gt;"/>
|
|
|
331 <param name="dirichlet" type="float" label="dirichlet parameter in variational Bayes algorithm" value="0.001" help="-dirichlet,--dirichlet &lt;dirichlet&gt;"/>
|
|
|
332 <param name="prior_counts" type="float" label="number of prior counts to use in variational Bayes algorithm" value="20.0" help="-priorCounts,--priorCounts &lt;priorCounts&gt;"/>
|
|
5
|
333 <!--<param name="trustAllPolymorphic" type="boolean" label="trustAllPolymorphic" truevalue="-/-trustAllPolymorphic=true" falsevalue="-/-trustAllPolymorphic=false"
|
|
|
334 help="Trust that all the input training sets' unfiltered records contain only polymorphic sites to drastically speed up the computation. -trustAllPolymorphic" />-->
|
|
6
|
335 <param name="min_num_bad_variants" type="integer" label="Minimum number of worst scoring variants to use when building the Gaussian mixture model of bad variants" value="1000" help="--minNumBadVariants &lt;minNumBadVariants&gt;"/>
|
|
0
|
336 <param name="target_titv" type="float" label="expected novel Ti/Tv ratio to use when calculating FDR tranches and for display on optimization curve output figures. (approx 2.15 for whole genome experiments). ONLY USED FOR PLOTTING PURPOSES!" value="2.15" help="-titv,--target_titv &lt;target_titv&gt;"/>
|
|
|
337 <param name="ts_tranche" type="text" label="levels of novel false discovery rate (FDR, implied by ti/tv) at which to slice the data. (in percent, that is 1.0 for 1 percent)" value="100.0, 99.9, 99.0, 90.0" help="-tranche,--TStranche &lt;TStranche&gt;"/>
|
|
|
338 <repeat name="ignore_filters" title="Ignore Filter" help="-ignoreFilter,--ignore_filter &lt;ignore_filter&gt;">
|
|
|
339 <conditional name="ignore_filter_type">
|
|
|
340 <param name="ignore_filter_type_selector" type="select" label="Filter Type">
|
|
|
341 <option value="HARD_TO_VALIDATE">HARD_TO_VALIDATE</option>
|
|
|
342 <option value="LowQual" >LowQual</option>
|
|
|
343 <option value="custom" selected="True">Other</option>
|
|
|
344 </param>
|
|
|
345 <when value="custom">
|
|
|
346 <param name="filter_name" type="text" value="" label="Filter name"/>
|
|
|
347 </when>
|
|
|
348 <when value="HARD_TO_VALIDATE" />
|
|
|
349 <when value="LowQual" />
|
|
|
350 </conditional>
|
|
|
351 </repeat>
|
|
|
352 </expand>
|
|
|
353 </inputs>
|
|
|
354 <outputs>
|
|
|
355 <data format="gatk_recal" name="output_recal" label="${tool.name} on ${on_string} (Recalibration File)" />
|
|
|
356 <data format="gatk_tranche" name="output_tranches" label="${tool.name} on ${on_string} (Tranches File)" />
|
|
|
357 <data format="txt" name="output_rscript" label="${tool.name} on ${on_string} (RScript File)" />
|
|
|
358 <data format="pdf" name="output_tranches_pdf" label="${tool.name} on ${on_string} (PDF File)" />
|
|
|
359 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
|
|
|
360 </outputs>
|
|
|
361 <tests>
|
|
|
362 <!-- ADD TESTS -->
|
|
|
363 </tests>
|
|
|
364 <help>
|
|
|
365 **What it does**
|
|
|
366
|
|
|
367 Takes variant calls as .vcf files, learns a Gaussian mixture model over the variant annotations and evaluates the variant -- assigning an informative lod score
|
|
|
368
|
|
|
369 For more information on using the VariantRecalibrator module, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_variantrecalibration_VariantRecalibrator.html>`_.
|
|
|
370
|
|
|
371 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_.
|
|
|
372
|
|
|
373 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_.
|
|
|
374
|
|
|
375 ------
|
|
|
376
|
|
|
377 **Inputs**
|
|
|
378
|
|
|
379 GenomeAnalysisTK: VariantRecalibrator accepts a variant input file.
|
|
|
380
|
|
|
381
|
|
|
382 **Outputs**
|
|
|
383
|
|
|
384 The output is in VCF format.
|
|
|
385
|
|
|
386
|
|
|
387 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats.
|
|
|
388
|
|
|
389 -------
|
|
|
390
|
|
|
391 **Settings**::
|
|
|
392
|
|
|
393
|
|
|
394 tranches_file The output tranches file used by ApplyRecalibration
|
|
|
395 use_annotation The names of the annotations which should used for calculations
|
|
|
396 mode Recalibration mode to employ: 1.) SNP for recalibrating only snps (emitting indels untouched in the output VCF); 2.) INDEL for indels; and 3.) BOTH for recalibrating both snps and indels simultaneously. (SNP|INDEL|BOTH)
|
|
|
397 maxGaussians The maximum number of Gaussians to try during variational Bayes algorithm
|
|
|
398 maxIterations The maximum number of VBEM iterations to be performed in variational Bayes algorithm. Procedure will normally end when convergence is detected.
|
|
|
399 numKMeans The number of k-means iterations to perform in order to initialize the means of the Gaussians in the Gaussian mixture model.
|
|
|
400 stdThreshold If a variant has annotations more than -std standard deviations away from mean then don't use it for building the Gaussian mixture model.
|
|
|
401 shrinkage The shrinkage parameter in variational Bayes algorithm.
|
|
|
402 dirichlet The dirichlet parameter in variational Bayes algorithm.
|
|
|
403 priorCounts The number of prior counts to use in variational Bayes algorithm.
|
|
6
|
404 minNumBadVariants The minimum amount of worst scoring variants to use when building the Gaussian mixture model of bad variants.
|
|
0
|
405 recal_file The output recal file used by ApplyRecalibration
|
|
|
406 target_titv The expected novel Ti/Tv ratio to use when calculating FDR tranches and for display on optimization curve output figures. (approx 2.15 for whole genome experiments). ONLY USED FOR PLOTTING PURPOSES!
|
|
|
407 TStranche The levels of novel false discovery rate (FDR, implied by ti/tv) at which to slice the data. (in percent, that is 1.0 for 1 percent)
|
|
|
408 ignore_filter If specified the optimizer will use variants even if the specified filter name is marked in the input VCF file
|
|
|
409 path_to_Rscript The path to your implementation of Rscript. For Broad users this is maybe /broad/tools/apps/R-2.6.0/bin/Rscript
|
|
|
410 rscript_file The output rscript file generated by the VQSR to aid in visualization of the input data and learned model
|
|
|
411 path_to_resources Path to resources folder holding the Sting R scripts.
|
|
|
412
|
|
|
413 @CITATION_SECTION@
|
|
|
414 </help>
|
|
6
|
415 <expand macro="citations" />
|
|
0
|
416 </tool>
|