4
|
1 <tool id="gatk2_variant_eval" name="Eval Variants" version="@VERSION@.0">
|
0
|
2 <description></description>
|
|
3 <expand macro="requirements" />
|
|
4 <macros>
|
|
5 <import>gatk2_macros.xml</import>
|
|
6 </macros>
|
|
7 <command interpreter="python">
|
|
8 #from binascii import hexlify
|
|
9
|
|
10 gatk2_wrapper.py
|
|
11 --stdout "${output_log}"
|
|
12 #for $var_count, $variant in enumerate( $reference_source.variants ):
|
|
13 -d "--eval:input_${var_count},%(file_type)s" "${variant.input_variant}" "${variant.input_variant.ext}" "input_variants_${var_count}"
|
|
14 #end for
|
|
15 -p '
|
|
16 @JAR_PATH@
|
|
17 -T "VariantEval"
|
|
18 --out "${output_report}"
|
|
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 '
|
|
27
|
|
28 #for $rod_binding in $comp_rod_bind:
|
|
29 -d "--comp:${rod_binding.comp_rod_name},%(file_type)s" "${rod_binding.comp_input_rod}" "${rod_binding.comp_input_rod.ext}" "input_comp_${rod_binding.comp_rod_name}"
|
|
30 #if str( $rod_binding.comp_known_names ):
|
|
31 -p '--known_names "${rod_binding.comp_rod_name}"'
|
|
32 #end if
|
|
33 #end for
|
|
34
|
2
|
35 #if $dbsnp_rod_bind_type.dbsnp_rod_bind_type_selector == 'set_dbsnp'
|
0
|
36 -d "--dbsnp:${dbsnp_rod_bind_type.dbsnp_rod_name},%(file_type)s" "${dbsnp_rod_bind_type.dbsnp_input_rod}" "${dbsnp_rod_bind_type.dbsnp_input_rod.ext}" "input_dbsnp_${dbsnp_rod_bind_type.dbsnp_rod_name}"
|
2
|
37 #if $dbsnp_rod_bind_type.dbsnp_known_names
|
0
|
38 -p '--known_names "${dbsnp_rod_bind_type.dbsnp_rod_name}"'
|
|
39 #end if
|
|
40 #end if
|
|
41
|
|
42 #include source=$standard_gatk_options#
|
|
43
|
|
44
|
|
45 ##start analysis specific options
|
|
46 #if $analysis_param_type.analysis_param_type_selector == "advanced":
|
|
47 #for $stratification in $analysis_param_type.stratifications:
|
|
48 #set $select_string = "--select_exps '%s' --select_names '%s'" % ( str( $stratification.select_exps ), str( $stratification.select_name ) )
|
|
49 -o '${ hexlify( $select_string ) }'
|
|
50 #end for
|
|
51 -p '
|
|
52
|
|
53 #for $sample in $analysis_param_type.samples:
|
|
54 --sample "${sample.sample}"
|
|
55 #end for
|
|
56
|
|
57 #if str( $analysis_param_type.stratification_modules ) != "None":
|
|
58 #for $stratification_module in str( $analysis_param_type.stratification_modules).split( ',' ):
|
|
59 --stratificationModule "${stratification_module}"
|
|
60 #end for
|
|
61 #end if
|
|
62
|
|
63 ${analysis_param_type.do_not_use_all_standard_stratifications}
|
|
64
|
|
65 #for $variant_type in $analysis_param_type.only_variants_of_type:
|
|
66 --onlyVariantsOfType "${variant_type.variant_type}"
|
|
67 #end for
|
|
68
|
|
69 #if str( $analysis_param_type.eval_modules ) != "None":
|
|
70 #for $eval_module in str( $analysis_param_type.eval_modules).split( ',' ):
|
|
71 --evalModule "${eval_module}"
|
|
72 #end for
|
|
73 #end if
|
|
74
|
|
75 ${analysis_param_type.do_not_use_all_standard_modules}
|
|
76
|
|
77 #if str( $analysis_param_type.num_samples ) != "0":
|
|
78 --numSamples "${analysis_param_type.num_samples}"
|
|
79 #end if
|
|
80
|
|
81 --minPhaseQuality "${analysis_param_type.min_phase_quality}"
|
|
82
|
|
83 --mendelianViolationQualThreshold "${analysis_param_type.mendelian_violation_qual_threshold}"
|
|
84
|
|
85 #if str( $analysis_param_type.ancestral_alignments ) != "None":
|
|
86 --ancestralAlignments "${analysis_param_type.ancestral_alignments}"
|
|
87 #end if
|
|
88 '
|
|
89 #if str( $analysis_param_type.known_cnvs ) != "None":
|
|
90 -d "--knownCNVs" "${analysis_param_type.known_cnvs}" "${analysis_param_type.known_cnvs.ext}" "input_known_cnvs"
|
|
91 #end if
|
|
92
|
|
93 #if str( $analysis_param_type.strat_intervals ) != "None":
|
|
94 -d "--stratIntervals" "${analysis_param_type.strat_intervals}" "${analysis_param_type.strat_intervals.ext}" "input_strat_intervals"
|
|
95 #end if
|
|
96 #end if
|
|
97 </command>
|
|
98 <inputs>
|
|
99
|
|
100 <conditional name="reference_source">
|
|
101 <expand macro="reference_source_selector_param" />
|
|
102 <when value="cached">
|
|
103 <repeat name="variants" title="Variant" min="1" help="-eval,--eval &lt;eval&gt;">
|
|
104 <param name="input_variant" type="data" format="vcf" label="Input variant file" />
|
|
105 </repeat>
|
|
106 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;">
|
|
107 <options from_data_table="gatk2_picard_indexes">
|
|
108 <!-- <filter type="data_meta" key="dbkey" ref="input_variant" column="dbkey"/> -->
|
|
109 </options>
|
|
110 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
111 </param>
|
|
112 </when>
|
|
113 <when value="history"> <!-- FIX ME!!!! -->
|
|
114 <repeat name="variants" title="Variant" min="1" help="-eval,--eval &lt;eval&gt;">
|
|
115 <param name="input_variant" type="data" format="vcf" label="Input variant file" />
|
|
116 </repeat>
|
|
117 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" />
|
|
118 </when>
|
|
119 </conditional>
|
|
120
|
2
|
121 <repeat name="comp_rod_bind" title="Comparison Reference-Ordered Data (ROD) file" help="-comp,--comp &lt;comp&gt;">
|
0
|
122 <param name="comp_input_rod" type="data" format="vcf" label="Comparison ROD file" />
|
2
|
123 <param name="comp_rod_name" type="text" value="" label="Comparison ROD name">
|
|
124 <validator type="regex" message="Value must be a not empty string composed by alphanumeric characters and underscores">^\w+$</validator>
|
|
125 </param>
|
|
126 <param name="comp_known_names" type="boolean" label="Use comparison ROD file as known_names" help="-knownName,--known_names &lt;known_names&gt;"/>
|
0
|
127 </repeat>
|
|
128 <conditional name="dbsnp_rod_bind_type">
|
2
|
129 <param name="dbsnp_rod_bind_type_selector" type="select" label="Provide a dbSNP Reference-Ordered Data (ROD) file" help="-D,--dbsnp &lt;dbsnp&gt;">
|
0
|
130 <option value="set_dbsnp" selected="True">Set dbSNP</option>
|
|
131 <option value="exclude_dbsnp">Don't set dbSNP</option>
|
|
132 </param>
|
2
|
133 <when value="exclude_dbsnp" />
|
0
|
134 <when value="set_dbsnp">
|
|
135 <param name="dbsnp_input_rod" type="data" format="vcf" label="dbSNP ROD file" />
|
2
|
136 <param name="dbsnp_rod_name" type="text" value="dbsnp" label="dbsnp ROD name">
|
|
137 <validator type="regex" message="Value must be a not empty string composed by alphanumeric characters and underscores">^\w+$</validator>
|
|
138 </param>
|
|
139 <param name="dbsnp_known_names" type="boolean" label="Use dbSNP ROD file as known_names" help="-knownName,--known_names &lt;known_names&gt;" />
|
0
|
140 </when>
|
|
141 </conditional>
|
|
142
|
|
143 <expand macro="gatk_param_type_conditional" />
|
|
144
|
|
145
|
|
146 <expand macro="analysis_type_conditional">
|
|
147 <repeat name="stratifications" title="Stratification">
|
|
148 <param name="select_exps" value="" type="text" label="Stratification Expression" help="-select,--select_exps &lt;select_exps&gt;">
|
|
149 <sanitizer>
|
|
150 <valid initial="string.printable">
|
|
151 <remove value="'"/>
|
|
152 </valid>
|
|
153 <mapping initial="none"/>
|
|
154 </sanitizer>
|
|
155 </param>
|
|
156 <param name="select_name" value="" type="text" label="Name" help="-selectName,--select_names &lt;select_names&gt;"/>
|
|
157 </repeat>
|
|
158
|
|
159 <repeat name="samples" title="Sample" help="-sn,--sample &lt;sample&gt;">
|
|
160 <param name="sample" value="" type="text" label="Derive eval and comp contexts using only these sample genotypes, when genotypes are available in the original context"/>
|
|
161 </repeat>
|
|
162
|
|
163 <param name="stratification_modules" type="select" multiple="True" display="checkboxes" label="Stratification modules to apply to the eval track(s)" help="-ST,--stratificationModule &lt;stratificationModule&gt;" >
|
4
|
164 <option value="AlleleCount" />
|
0
|
165 <option value="AlleleFrequency" />
|
|
166 <option value="CompRod" />
|
|
167 <option value="Contig" />
|
|
168 <option value="CpG" />
|
|
169 <option value="Degeneracy" />
|
|
170 <option value="EvalRod" />
|
|
171 <option value="Filter" />
|
|
172 <option value="FunctionalClass" />
|
4
|
173 <option value="IndelSize" />
|
|
174 <option value="IntervalStratification" />
|
0
|
175 <option value="JexlExpression" />
|
4
|
176 <option value="Novelty" />
|
|
177 <option value="OneBPIndel" />
|
0
|
178 <option value="Sample" />
|
4
|
179 <option value="SnpEffPositionModifier" />
|
|
180 <option value="TandemRepeat" />
|
|
181 <option value="VariantType" />
|
0
|
182 </param>
|
|
183 <param name="do_not_use_all_standard_stratifications" checked="false" type="boolean" truevalue="--doNotUseAllStandardStratifications" falsevalue="" label="Do not use the standard stratification modules by default" help="-noST,--doNotUseAllStandardStratifications" />
|
|
184
|
|
185 <repeat name="only_variants_of_type" title="only Variants Of Type" help="--onlyVariantsOfType">
|
|
186 <param name="variant_type" type="text" value="" label="only variants of these types will be considered during the evaluation"/>
|
|
187 </repeat>
|
|
188
|
|
189 <param name="eval_modules" type="select" multiple="True" display="checkboxes" label="Eval modules to apply to the eval track(s)" help="-EV,--evalModule &lt;evalModule&gt;" >
|
|
190 <option value="CompOverlap" />
|
|
191 <option value="CountVariants" />
|
4
|
192 <option value="IndelLengthHistogram" />
|
|
193 <option value="IndelSummary" />
|
0
|
194 <option value="MendelianViolationEvaluator" />
|
4
|
195 <option value="MultiallelicSummary" />
|
0
|
196 <option value="PrintMissingComp" />
|
|
197 <option value="ThetaVariantEvaluator" />
|
|
198 <option value="TiTvVariantEvaluator" />
|
4
|
199 <option value="ValidationReport" />
|
|
200 <option value="VariantSummary" />
|
0
|
201 </param>
|
|
202 <param name="do_not_use_all_standard_modules" checked="false" type="boolean" truevalue="--doNotUseAllStandardModules" falsevalue="" label="Do not use the standard eval modules by default" help="-noEV,--doNotUseAllStandardModules" />
|
|
203
|
|
204 <param name="num_samples" type="integer" label="Number of samples (used if no samples are available in the VCF file" value="0" help="-ns,--numSamples &lt;numSamples&gt;"/>
|
|
205 <param name="min_phase_quality" type="float" label="Minimum phasing quality " value="10.0" help="-mpq,--minPhaseQuality &lt;minPhaseQuality&gt;"/>
|
|
206 <param name="mendelian_violation_qual_threshold" type="integer" label="Minimum genotype QUAL score for each trio member required to accept a site as a violation" value="50" help="-mvq,--mendelianViolationQualThreshold &lt;mendelianViolationQualThreshold&gt;"/>
|
|
207 <param name="ancestral_alignments" type="data" format="fasta" optional="True" label="Fasta file with ancestral alleles" help="-aa,--ancestralAlignments &lt;ancestralAlignments&gt;" />
|
|
208 <param name="known_cnvs" type="data" format="bed,gatk_interval,picard_interval_list" optional="True" label="File containing tribble-readable features describing a known list of copy number variants" help="-knownCNVs,--knownCNVs &lt;knownCNVs&gt;" />
|
|
209 <param name="strat_intervals" type="data" format="bed,gatk_interval,picard_interval_list" optional="True" label="File containing tribble-readable features for the IntervalStratificiation" help="-stratIntervals,--stratIntervals &lt;stratIntervals&gt;" />
|
|
210
|
|
211 </expand>
|
|
212
|
|
213
|
|
214 </inputs>
|
|
215 <outputs>
|
|
216 <data format="gatk_report" name="output_report" label="${tool.name} on ${on_string} (report)" />
|
|
217 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
|
|
218 </outputs>
|
|
219 <tests>
|
|
220 <test>
|
|
221 <param name="reference_source_selector" value="history" />
|
|
222 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
|
|
223 <param name="input_variant" value="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" ftype="vcf" />
|
|
224 <param name="dbsnp_rod_bind_type_selector" value="set_dbsnp" />
|
|
225 <param name="dbsnp_input_rod" value="gatk/fake_phiX_variant_locations.vcf" ftype="vcf" />
|
2
|
226 <param name="dbsnp_rod_name" value="dbsnp" />
|
0
|
227 <param name="dbsnp_known_names" value="True"/>
|
|
228 <param name="comp_rod_bind" value="0" />
|
|
229 <param name="gatk_param_type_selector" value="basic" />
|
|
230 <param name="analysis_param_type_selector" value="basic" />
|
|
231 <output name="output_report" file="gatk/gatk_variant_eval/gatk_variant_eval_out_1.gatk_report" />
|
|
232 <output name="output_log" file="gatk/gatk_variant_eval/gatk_variant_eval_out_1.log.contains" compare="contains" />
|
|
233 </test>
|
|
234 </tests>
|
|
235 <help>
|
|
236 **What it does**
|
|
237
|
|
238 General-purpose tool for variant evaluation (% in dbSNP, genotype concordance, Ti/Tv ratios, and a lot more)
|
|
239
|
|
240 For more information on using the VariantEval module, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_varianteval_VariantEval.html>`_.
|
|
241
|
|
242 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_.
|
|
243
|
|
244 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_.
|
|
245
|
|
246 ------
|
|
247
|
|
248 **Inputs**
|
|
249
|
|
250 GenomeAnalysisTK: VariantEval accepts variant files as input.
|
|
251
|
|
252
|
|
253 **Outputs**
|
|
254
|
|
255 The output is a table of variant evaluation.
|
|
256
|
|
257
|
|
258 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats.
|
|
259
|
|
260 -------
|
|
261
|
|
262 **Settings**::
|
|
263
|
|
264 out An output file presented to the walker. Will overwrite contents if file exists.
|
|
265 list List the available eval modules and exit
|
|
266 select_exps One or more stratifications to use when evaluating the data
|
|
267 select_names Names to use for the list of stratifications (must be a 1-to-1 mapping)
|
|
268 sample Derive eval and comp contexts using only these sample genotypes, when genotypes are available in the original context
|
|
269 known_names Name of ROD bindings containing variant sites that should be treated as known when splitting eval rods into known and novel subsets
|
|
270 stratificationModule One or more specific stratification modules to apply to the eval track(s) (in addition to the standard stratifications, unless -noS is specified)
|
|
271 doNotUseAllStandardStratifications Do not use the standard stratification modules by default (instead, only those that are specified with the -S option)
|
|
272 onlyVariantsOfType If provided, only variants of these types will be considered during the evaluation, in
|
|
273 evalModule One or more specific eval modules to apply to the eval track(s) (in addition to the standard modules, unless -noE is specified)
|
|
274 doNotUseAllStandardModules Do not use the standard modules by default (instead, only those that are specified with the -E option)
|
|
275 numSamples Number of samples (used if no samples are available in the VCF file
|
|
276 minPhaseQuality Minimum phasing quality
|
|
277 mendelianViolationQualThreshold Minimum genotype QUAL score for each trio member required to accept a site as a violation
|
|
278 ancestralAlignments Fasta file with ancestral alleles
|
|
279
|
|
280 @CITATION_SECTION@
|
|
281 </help>
|
4
|
282 <expand macro="citations" />
|
0
|
283 </tool>
|