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