Mercurial > repos > jjohnson > gatk2
annotate variant_annotator.xml @ 34:b99c25b0ad4d draft
Update tool version to 0.0.7
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Thu, 28 Feb 2013 15:41:24 -0600 |
parents | 76f8ca47b810 |
children | a29c7d7d962d |
rev | line source |
---|---|
34 | 1 <tool id="gatk2_variant_annotator" name="Variant Annotator" version="0.0.7"> |
0 | 2 <description></description> |
3 <requirements> | |
18
7533db8dfb5b
Update tool_dependencies to GATK v 2.3
Jim Johnson <jj@umn.edu>
parents:
0
diff
changeset
|
4 <requirement type="package" version="2.3">gatk</requirement> |
0 | 5 <requirement type="package" version="0.1.18">samtools</requirement> |
6 </requirements> | |
7 <command interpreter="python">gatk2_wrapper.py | |
8 --max_jvm_heap_fraction "1" | |
9 --stdout "${output_log}" | |
10 #if str( $reference_source.input_bam ) != "None": | |
11 -d "-I" "${reference_source.input_bam}" "${reference_source.input_bam.ext}" "gatk_input" | |
12 #if str( $reference_source.input_bam.metadata.bam_index ) != "None": | |
13 -d "" "${reference_source.input_bam.metadata.bam_index}" "bam_index" "gatk_input" ##hardcode galaxy ext type as bam_index | |
14 #end if | |
15 #end if | |
16 -d "--variant" "${reference_source.input_variant}" "${reference_source.input_variant.ext}" "input_variant" | |
17 -p 'java | |
18 -jar "\$GATK2_PATH/GenomeAnalysisTK.jar" | |
19 ##--list | |
20 -T "VariantAnnotator" | |
21 \$GATK2_SITE_OPTIONS | |
28
6ef8eb568700
Move GATK tool_dependency to a repository dependency, use 2 env vars: GATK2_NUM_THREADS and GATK2_NUM_CPU_THREADS for site threading values
Jim Johnson <jj@umn.edu>
parents:
18
diff
changeset
|
22 ## \$GATK2_NUM_THREADS |
0 | 23 ##--num_threads 4 ##hard coded, for now |
24 ##-et "NO_ET" -K "\$GATK2_BASE/gatk2_key_file" ##ET no phone home | |
25 ##-log "${output_log}" ##don't use this to log to file, instead directly capture stdout | |
26 #if $reference_source.reference_source_selector != "history": | |
27 -R "${reference_source.ref_file.fields.path}" | |
28 #end if | |
29 -o "${output_vcf}" | |
30 #if str( $annotations_type.annotations_type_selector ) == "use_all_annotations": | |
31 --useAllAnnotations | |
32 #else: | |
33 #if $annotations_type.annotations: | |
34 #for $annotation in str( $annotations_type.annotations.fields.gatk_value ).split( ',' ): | |
35 --annotation "${annotation}" | |
36 #end for | |
37 #end if | |
38 #end if | |
39 #if $exclude_annotations: | |
40 #for $annotation in str( $exclude_annotations.fields.gatk_value ).split( ',' ): | |
41 --excludeAnnotation "${annotation}" | |
42 #end for | |
43 #end if | |
44 #for $additional_annotation in $additional_annotations: | |
45 --annotation "${additional_annotation.additional_annotation_name}" | |
46 #end for | |
47 ' | |
48 #if $reference_source.input_variant_bti: | |
49 -d "--intervals" "${reference_source.input_variant}" "${reference_source.input_variant.ext}" "input_variant_bti" | |
50 #end if | |
51 | |
52 #for $rod_binding in $comp_rod_bind: | |
53 -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}" | |
54 #end for | |
55 | |
56 #if str( $dbsnp_rod_bind_type.dbsnp_rod_bind_type_selector ) == 'set_dbsnp': | |
57 -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}" | |
58 #end if | |
59 | |
60 | |
61 #for $rod_binding in $resource_rod_bind: | |
62 -d "--resource:${rod_binding.resource_rod_name},%(file_type)s" "${rod_binding.resource_input_rod}" "${rod_binding.resource_input_rod.ext}" "input_resource_${rod_binding.resource_rod_name}" | |
63 #end for | |
64 | |
65 #if str( $snpEff_rod_bind_type.snpEff_rod_bind_type_selector ) == 'set_snpEff': | |
66 -p '--annotation "SnpEff"' | |
67 -d "--snpEffFile:${snpEff_rod_bind_type.snpEff_rod_name},%(file_type)s" "${snpEff_rod_bind_type.snpEff_input_rod}" "${snpEff_rod_bind_type.snpEff_input_rod.ext}" "input_snpEff_${snpEff_rod_bind_type.snpEff_rod_name}" | |
68 #else: | |
69 -p '--excludeAnnotation "SnpEff"' | |
70 #end if | |
71 | |
72 #for $expression in $expressions: | |
73 -p '--expression "${expression.expression}"' | |
74 #end for | |
75 | |
76 ##start standard gatk options | |
77 #if $gatk_param_type.gatk_param_type_selector == "advanced": | |
78 #for $pedigree in $gatk_param_type.pedigree: | |
79 -p '--pedigree "${pedigree.pedigree_file}"' | |
80 #end for | |
81 #for $pedigree_string in $gatk_param_type.pedigree_string_repeat: | |
82 -p '--pedigreeString "${pedigree_string.pedigree_string}"' | |
83 #end for | |
84 -p '--pedigreeValidationType "${gatk_param_type.pedigree_validation_type}"' | |
33
76f8ca47b810
Omit --read_filter param included by default
Jim Johnson <jj@umn.edu>
parents:
28
diff
changeset
|
85 #set default_read_filters = ['DuplicateReadFilter','FailsVendorQualityCheckFilter','NotPrimaryAlignmentFilter','MalformedReadFilter','UnmappedReadFilter'] |
0 | 86 #for $read_filter in $gatk_param_type.read_filter: |
33
76f8ca47b810
Omit --read_filter param included by default
Jim Johnson <jj@umn.edu>
parents:
28
diff
changeset
|
87 -p ' |
76f8ca47b810
Omit --read_filter param included by default
Jim Johnson <jj@umn.edu>
parents:
28
diff
changeset
|
88 #if ${read_filter.read_filter_type.read_filter_type_selector} not in $default_read_filters: |
76f8ca47b810
Omit --read_filter param included by default
Jim Johnson <jj@umn.edu>
parents:
28
diff
changeset
|
89 --read_filter "${read_filter.read_filter_type.read_filter_type_selector}" |
76f8ca47b810
Omit --read_filter param included by default
Jim Johnson <jj@umn.edu>
parents:
28
diff
changeset
|
90 #end_if |
0 | 91 #for $name, $param in $read_filter.read_filter_type.iteritems(): |
92 #if $name not in [ "__current_case__", "read_filter_type_selector" ]: | |
93 #if hasattr( $param.input, 'truevalue' ): | |
94 ${param} | |
95 #else: | |
96 --${name} "${param}" | |
97 #end if | |
98 #end if | |
99 #end for | |
100 ' | |
101 #end for | |
102 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_interval_repeat ): | |
103 -d "--intervals" "${input_intervals.input_intervals}" "${input_intervals.input_intervals.ext}" "input_intervals_${interval_count}" | |
104 #end for | |
105 | |
106 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_exclude_interval_repeat ): | |
107 -d "--excludeIntervals" "${input_intervals.input_exclude_intervals}" "${input_intervals.input_exclude_intervals.ext}" "input_exlude_intervals_${interval_count}" | |
108 #end for | |
109 | |
110 -p '--interval_set_rule "${gatk_param_type.interval_set_rule}"' | |
111 | |
112 -p '--downsampling_type "${gatk_param_type.downsampling_type.downsampling_type_selector}"' | |
113 #if str( $gatk_param_type.downsampling_type.downsampling_type_selector ) != "NONE": | |
114 -p '--${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_type_selector} "${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_value}"' | |
115 #end if | |
116 -p ' | |
117 --baq "${gatk_param_type.baq}" | |
118 --baqGapOpenPenalty "${gatk_param_type.baq_gap_open_penalty}" | |
119 ${gatk_param_type.use_original_qualities} | |
120 --defaultBaseQualities "${gatk_param_type.default_base_qualities}" | |
121 --validation_strictness "${gatk_param_type.validation_strictness}" | |
122 --interval_merging "${gatk_param_type.interval_merging}" | |
123 ${gatk_param_type.disable_experimental_low_memory_sharding} | |
18
7533db8dfb5b
Update tool_dependencies to GATK v 2.3
Jim Johnson <jj@umn.edu>
parents:
0
diff
changeset
|
124 ${gatk_param_type.fix_misencoded_quality_scores} |
0 | 125 ${gatk_param_type.non_deterministic_random_seed} |
126 ' | |
127 #for $rg_black_list_count, $rg_black_list in enumerate( $gatk_param_type.read_group_black_list_repeat ): | |
128 #if $rg_black_list.read_group_black_list_type.read_group_black_list_type_selector == "file": | |
129 -d "--read_group_black_list" "${rg_black_list.read_group_black_list_type.read_group_black_list}" "txt" "input_read_group_black_list_${rg_black_list_count}" | |
130 #else | |
131 -p '--read_group_black_list "${rg_black_list.read_group_black_list_type.read_group_black_list}"' | |
132 #end if | |
133 #end for | |
134 #end if | |
135 #if str( $reference_source.reference_source_selector ) == "history": | |
136 -d "-R" "${reference_source.ref_file}" "${reference_source.ref_file.ext}" "gatk_input" | |
137 #end if | |
138 ##end standard gatk options | |
139 | |
140 -p ' | |
141 #if str( $annotation_group ) != "None": | |
142 #for $group in str( $annotation_group ).split( ',' ): | |
143 --group "${group}" | |
144 #end for | |
145 #end if | |
146 #if str( $family_string ) != "": | |
147 --family_string "${family_string}" | |
148 #end if | |
149 --MendelViolationGenotypeQualityThreshold "${mendel_violation_genotype_quality_threshold}" | |
150 ' | |
151 </command> | |
152 <inputs> | |
153 <conditional name="reference_source"> | |
154 <param name="reference_source_selector" type="select" label="Choose the source for the reference list"> | |
155 <option value="cached">Locally cached</option> | |
156 <option value="history">History</option> | |
157 </param> | |
158 <when value="cached"> | |
159 <param name="input_variant" type="data" format="vcf" label="Variant file to annotate" help="-V,--variant &lt;variant&gt;"/> | |
160 <param name="input_variant_bti" type="boolean" truevalue="-BTI variant" falsevalue="" label="Increase efficiency for small variant files." help="--intervals"/> | |
161 <param name="input_bam" type="data" format="bam" label="BAM file" optional="True" help="Not needed for all annotations. (-I,--input_file &lt;input_file&gt;)" > | |
162 <validator type="unspecified_build" /> | |
163 <validator type="dataset_metadata_in_data_table" table_name="gatk2_picard_indexes" metadata_name="dbkey" metadata_column="dbkey" message="Sequences are not currently available for the specified build." /> <!-- fixme!!! this needs to be a select --> | |
164 </param> | |
165 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;"> | |
166 <options from_data_table="gatk2_picard_indexes"> | |
167 <filter type="data_meta" key="dbkey" ref="input_variant" column="dbkey"/> | |
168 </options> | |
169 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> | |
170 </param> | |
171 </when> | |
172 <when value="history"> <!-- FIX ME!!!! --> | |
173 <param name="input_variant" type="data" format="vcf" label="Variant file to annotate" help="-V,--variant &lt;variant&gt;"/> | |
174 <param name="input_variant_bti" type="boolean" truevalue="-BTI variant" falsevalue="" label="Increase efficiency for small variant files." help="--intervals"/> | |
175 <param name="input_bam" type="data" format="bam" label="BAM file" optional="True" help="Not needed for all annotations. (-I,--input_file &lt;input_file&gt;)" > | |
176 </param> | |
177 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" /> | |
178 </when> | |
179 </conditional> | |
180 <conditional name="annotations_type"> | |
181 <param name="annotations_type_selector" type="select" label="Use all possible annotations"> | |
182 <option value="use_all_annotations">Use all</option> | |
183 <option value="choose" selected="True">Use selected</option> | |
184 </param> | |
185 <when value="use_all_annotations"> | |
186 <!-- no extra options here --> | |
187 </when> | |
188 <when value="choose"> | |
189 <param name="annotations" type="select" multiple="True" display="checkboxes" label="Annotations to apply" help="-A,--annotation &lt;annotation&gt;" > | |
190 <!-- load the available annotations from an external configuration file, since additional ones can be added to local installs --> | |
191 <options from_data_table="gatk2_annotations"> | |
192 <filter type="multiple_splitter" column="tools_valid_for" separator=","/> | |
193 <filter type="static_value" value="VariantAnnotator" column="tools_valid_for"/> | |
194 </options> | |
195 </param> | |
196 </when> | |
197 </conditional> | |
198 | |
199 <repeat name="additional_annotations" title="Additional annotation" help="-A,--annotation &lt;annotation&gt;"> | |
200 <param name="additional_annotation_name" type="text" value="" label="Annotation name" /> | |
201 </repeat> | |
202 | |
203 <repeat name="comp_rod_bind" title="Binding for reference-ordered comparison data" help="-comp,--comp &lt;comp&gt;"> | |
204 <param name="comp_input_rod" type="data" format="vcf" label="ROD file" /> | |
205 <param name="comp_rod_name" type="text" value="Unnamed" label="ROD Name"/> | |
206 </repeat> | |
207 | |
208 <conditional name="dbsnp_rod_bind_type"> | |
209 <param name="dbsnp_rod_bind_type_selector" type="select" label="Provide a dbSNP reference-ordered data file" help="-D,--dbsnp &lt;dbsnp&gt;"> | |
210 <option value="set_dbsnp" selected="True">Set dbSNP</option> | |
211 <option value="exclude_dbsnp">Don't set dbSNP</option> | |
212 </param> | |
213 <when value="exclude_dbsnp"> | |
214 <!-- Do nothing here --> | |
215 </when> | |
216 <when value="set_dbsnp"> | |
217 <param name="dbsnp_input_rod" type="data" format="vcf" label="ROD file" /> | |
218 <param name="dbsnp_rod_name" type="hidden" value="dbsnp" label="ROD Name"/> | |
219 </when> | |
220 </conditional> | |
221 | |
222 <repeat name="resource_rod_bind" title="Binding for reference-ordered resource data" help="-resource,--resource &lt;resource&gt;"> | |
223 <param name="resource_input_rod" type="data" format="vcf" label="ROD file" /> | |
224 <param name="resource_rod_name" type="text" value="Unnamed" label="ROD Name"/> | |
225 </repeat> | |
226 | |
227 <conditional name="snpEff_rod_bind_type"> | |
228 <param name="snpEff_rod_bind_type_selector" type="select" label="Provide a snpEff reference-ordered data file" help="-snpEffFile,--snpEffFile &lt;snpEffFile&gt;"> | |
229 <option value="set_snpEff">Set snpEff</option> | |
230 <option value="exclude_snpEff" selected="True">Don't set snpEff</option> | |
231 </param> | |
232 <when value="exclude_snpEff"> | |
233 <!-- Do nothing here --> | |
234 </when> | |
235 <when value="set_snpEff"> | |
236 <param name="snpEff_input_rod" type="data" format="vcf" label="ROD file" /> | |
237 <param name="snpEff_rod_name" type="hidden" value="snpEff" label="ROD Name"/> | |
238 </when> | |
239 </conditional> | |
240 | |
241 <repeat name="expressions" title="Expression" help="-E,--expression &lt;expression&gt;"> | |
242 <param name="expression" type="text" value="" label="Expression"/> | |
243 </repeat> | |
244 | |
245 <conditional name="gatk_param_type"> | |
246 <param name="gatk_param_type_selector" type="select" label="Basic or Advanced GATK options"> | |
247 <option value="basic" selected="True">Basic</option> | |
248 <option value="advanced">Advanced</option> | |
249 </param> | |
250 <when value="basic"> | |
251 <!-- Do nothing here --> | |
252 </when> | |
253 <when value="advanced"> | |
254 <repeat name="pedigree" title="Pedigree file" help="-ped,--pedigree &lt;pedigree&gt;"> | |
255 <param name="pedigree_file" type="data" format="txt" label="Pedigree files for samples"/> | |
256 </repeat> | |
257 <repeat name="pedigree_string_repeat" title="Pedigree string" help="-pedString,--pedigreeString &lt;pedigreeString&gt;"> | |
258 <param name="pedigree_string" type="text" value="" label="Pedigree string for samples"/> | |
259 </repeat> | |
260 <param name="pedigree_validation_type" type="select" label="How strict should we be in validating the pedigree information" help="-pedValidationType,--pedigreeValidationType &lt;pedigreeValidationType&gt;"> | |
261 <option value="STRICT" selected="True">STRICT</option> | |
262 <option value="SILENT">SILENT</option> | |
263 </param> | |
264 <repeat name="read_filter" title="Read Filter" help="-rf,--read_filter &lt;read_filter&gt;"> | |
265 <conditional name="read_filter_type"> | |
266 <param name="read_filter_type_selector" type="select" label="Read Filter Type"> | |
267 <option value="BadCigar">BadCigar</option> | |
268 <option value="BadMate">BadMate</option> | |
269 <option value="DuplicateRead">DuplicateRead</option> | |
270 <option value="FailsVendorQualityCheck">FailsVendorQualityCheck</option> | |
271 <option value="MalformedRead">MalformedRead</option> | |
272 <option value="MappingQuality">MappingQuality</option> | |
273 <option value="MappingQualityUnavailable">MappingQualityUnavailable</option> | |
274 <option value="MappingQualityZero">MappingQualityZero</option> | |
275 <option value="MateSameStrand">MateSameStrand</option> | |
276 <option value="MaxInsertSize">MaxInsertSize</option> | |
277 <option value="MaxReadLength" selected="True">MaxReadLength</option> | |
278 <option value="MissingReadGroup">MissingReadGroup</option> | |
279 <option value="NoOriginalQualityScores">NoOriginalQualityScores</option> | |
280 <option value="NotPrimaryAlignment">NotPrimaryAlignment</option> | |
281 <option value="Platform454">Platform454</option> | |
282 <option value="Platform">Platform</option> | |
283 <option value="PlatformUnit">PlatformUnit</option> | |
284 <option value="ReadGroupBlackList">ReadGroupBlackList</option> | |
285 <option value="ReadName">ReadName</option> | |
286 <option value="ReadStrand">ReadStrand</option> | |
287 <option value="ReassignMappingQuality">ReassignMappingQuality</option> | |
288 <option value="Sample">Sample</option> | |
289 <option value="SingleReadGroup">SingleReadGroup</option> | |
290 <option value="UnmappedRead">UnmappedRead</option> | |
291 </param> | |
292 <when value="BadCigar"> | |
293 <!-- no extra options --> | |
294 </when> | |
295 <when value="BadMate"> | |
296 <!-- no extra options --> | |
297 </when> | |
298 <when value="DuplicateRead"> | |
299 <!-- no extra options --> | |
300 </when> | |
301 <when value="FailsVendorQualityCheck"> | |
302 <!-- no extra options --> | |
303 </when> | |
304 <when value="MalformedRead"> | |
305 <!-- no extra options --> | |
306 </when> | |
307 <when value="MappingQuality"> | |
308 <param name="min_mapping_quality_score" type="integer" value="10" label="Minimum read mapping quality required to consider a read for calling"/> | |
309 </when> | |
310 <when value="MappingQualityUnavailable"> | |
311 <!-- no extra options --> | |
312 </when> | |
313 <when value="MappingQualityZero"> | |
314 <!-- no extra options --> | |
315 </when> | |
316 <when value="MateSameStrand"> | |
317 <!-- no extra options --> | |
318 </when> | |
319 <when value="MaxInsertSize"> | |
320 <param name="maxInsertSize" type="integer" value="1000000" label="Discard reads with insert size greater than the specified value"/> | |
321 </when> | |
322 <when value="MaxReadLength"> | |
323 <param name="maxReadLength" type="integer" value="76" label="Max Read Length"/> | |
324 </when> | |
325 <when value="MissingReadGroup"> | |
326 <!-- no extra options --> | |
327 </when> | |
328 <when value="NoOriginalQualityScores"> | |
329 <!-- no extra options --> | |
330 </when> | |
331 <when value="NotPrimaryAlignment"> | |
332 <!-- no extra options --> | |
333 </when> | |
334 <when value="Platform454"> | |
335 <!-- no extra options --> | |
336 </when> | |
337 <when value="Platform"> | |
338 <param name="PLFilterName" type="text" value="" label="Discard reads with RG:PL attribute containing this string"/> | |
339 </when> | |
340 <when value="PlatformUnit"> | |
341 <!-- no extra options --> | |
342 </when> | |
343 <when value="ReadGroupBlackList"> | |
344 <!-- no extra options --> | |
345 </when> | |
346 <when value="ReadName"> | |
347 <param name="readName" type="text" value="" label="Filter out all reads except those with this read name"/> | |
348 </when> | |
349 <when value="ReadStrand"> | |
350 <param name="filterPositive" type="boolean" truevalue="--filterPositive" falsevalue="" label="Discard reads on the forward strand"/> | |
351 </when> | |
352 <when value="ReassignMappingQuality"> | |
353 <param name="default_mapping_quality" type="integer" value="60" label="Default read mapping quality to assign to all reads"/> | |
354 </when> | |
355 <when value="Sample"> | |
356 <param name="sample_to_keep" type="text" value="" label="The name of the sample(s) to keep, filtering out all others"/> | |
357 </when> | |
358 <when value="SingleReadGroup"> | |
359 <param name="read_group_to_keep" type="integer" value="76" label="The name of the read group to keep, filtering out all others"/> | |
360 </when> | |
361 <when value="UnmappedRead"> | |
362 <!-- no extra options --> | |
363 </when> | |
364 </conditional> | |
365 </repeat> | |
366 <repeat name="input_interval_repeat" title="Operate on Genomic intervals" help="-L,--intervals &lt;intervals&gt;"> | |
367 <param name="input_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" /> | |
368 </repeat> | |
369 <repeat name="input_exclude_interval_repeat" title="Exclude Genomic intervals" help="-XL,--excludeIntervals &lt;excludeIntervals&gt;"> | |
370 <param name="input_exclude_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" /> | |
371 </repeat> | |
372 | |
373 <param name="interval_set_rule" type="select" label="Interval set rule" help="-isr,--interval_set_rule &lt;interval_set_rule&gt;"> | |
374 <option value="UNION" selected="True">UNION</option> | |
375 <option value="INTERSECTION">INTERSECTION</option> | |
376 </param> | |
377 | |
378 <conditional name="downsampling_type"> | |
379 <param name="downsampling_type_selector" type="select" label="Type of reads downsampling to employ at a given locus" help="-dt,--downsampling_type &lt;downsampling_type&gt;"> | |
380 <option value="NONE" selected="True">NONE</option> | |
381 <option value="ALL_READS">ALL_READS</option> | |
382 <option value="BY_SAMPLE">BY_SAMPLE</option> | |
383 </param> | |
384 <when value="NONE"> | |
385 <!-- no more options here --> | |
386 </when> | |
387 <when value="ALL_READS"> | |
388 <conditional name="downsample_to_type"> | |
389 <param name="downsample_to_type_selector" type="select" label="Downsample method"> | |
390 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option> | |
391 <option value="downsample_to_coverage">Downsample by Coverage</option> | |
392 </param> | |
393 <when value="downsample_to_fraction"> | |
394 <param name="downsample_to_value" type="float" label="Fraction [0.0-1.0] of reads to downsample to" value="1" min="0" max="1" help="-dfrac,--downsample_to_fraction &lt;downsample_to_fraction&gt;"/> | |
395 </when> | |
396 <when value="downsample_to_coverage"> | |
397 <param name="downsample_to_value" type="integer" label="Coverage to downsample to at any given locus" value="0" help="-dcov,--downsample_to_coverage &lt;downsample_to_coverage&gt;"/> | |
398 </when> | |
399 </conditional> | |
400 </when> | |
401 <when value="BY_SAMPLE"> | |
402 <conditional name="downsample_to_type"> | |
403 <param name="downsample_to_type_selector" type="select" label="Downsample method"> | |
404 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option> | |
405 <option value="downsample_to_coverage">Downsample by Coverage</option> | |
406 </param> | |
407 <when value="downsample_to_fraction"> | |
408 <param name="downsample_to_value" type="float" label="Fraction [0.0-1.0] of reads to downsample to" value="1" min="0" max="1" help="-dfrac,--downsample_to_fraction &lt;downsample_to_fraction&gt;"/> | |
409 </when> | |
410 <when value="downsample_to_coverage"> | |
411 <param name="downsample_to_value" type="integer" label="Coverage to downsample to at any given locus" value="0" help="-dcov,--downsample_to_coverage &lt;downsample_to_coverage&gt;"/> | |
412 </when> | |
413 </conditional> | |
414 </when> | |
415 </conditional> | |
416 <param name="baq" type="select" label="Type of BAQ calculation to apply in the engine" help="-baq,--baq &lt;baq&gt;"> | |
417 <option value="OFF" selected="True">OFF</option> | |
418 <option value="CALCULATE_AS_NECESSARY">CALCULATE_AS_NECESSARY</option> | |
419 <option value="RECALCULATE">RECALCULATE</option> | |
420 </param> | |
421 <param name="baq_gap_open_penalty" type="float" label="BAQ gap open penalty (Phred Scaled)" value="40" help="Default value is 40. 30 is perhaps better for whole genome call sets. -baqGOP,--baqGapOpenPenalty &lt;baqGapOpenPenalty&gt;" /> | |
422 <param name="use_original_qualities" type="boolean" truevalue="--useOriginalQualities" falsevalue="" label="Use the original base quality scores from the OQ tag" help="-OQ,--useOriginalQualities" /> | |
423 <param name="default_base_qualities" type="integer" label="Value to be used for all base quality scores, when some are missing" value="-1" help="-DBQ,--defaultBaseQualities &lt;defaultBaseQualities&gt;"/> | |
424 <param name="validation_strictness" type="select" label="How strict should we be with validation" help="-S,--validation_strictness &lt;validation_strictness&gt;"> | |
425 <option value="STRICT" selected="True">STRICT</option> | |
426 <option value="LENIENT">LENIENT</option> | |
427 <option value="SILENT">SILENT</option> | |
428 <!-- <option value="DEFAULT_STRINGENCY">DEFAULT_STRINGENCY</option> listed in docs, but not valid value...--> | |
429 </param> | |
430 <param name="interval_merging" type="select" label="Interval merging rule" help="-im,--interval_merging &lt;interval_merging&gt;"> | |
431 <option value="ALL" selected="True">ALL</option> | |
432 <option value="OVERLAPPING_ONLY">OVERLAPPING_ONLY</option> | |
433 </param> | |
434 | |
435 <repeat name="read_group_black_list_repeat" title="Read group black list" help="-rgbl,--read_group_black_list &lt;read_group_black_list&gt;"> | |
436 <conditional name="read_group_black_list_type"> | |
437 <param name="read_group_black_list_type_selector" type="select" label="Type of reads read group black list"> | |
438 <option value="file" selected="True">Filters in file</option> | |
439 <option value="text">Specify filters as a string</option> | |
440 </param> | |
441 <when value="file"> | |
442 <param name="read_group_black_list" type="data" format="txt" label="Read group black list file" /> | |
443 </when> | |
444 <when value="text"> | |
445 <param name="read_group_black_list" type="text" value="tag:string" label="Read group black list tag:string" /> | |
446 </when> | |
447 </conditional> | |
448 </repeat> | |
449 | |
450 <param name="disable_experimental_low_memory_sharding" type="boolean" truevalue="--disable_experimental_low_memory_sharding" falsevalue="" label="Disable experimental low-memory sharding functionality." checked="False" help="--disable_experimental_low_memory_sharding"/> | |
451 <param name="non_deterministic_random_seed" type="boolean" truevalue="--nonDeterministicRandomSeed" falsevalue="" label="Makes the GATK behave non deterministically, that is, the random numbers generated will be different in every run" checked="False" help="-ndrs,--nonDeterministicRandomSeed"/> | |
18
7533db8dfb5b
Update tool_dependencies to GATK v 2.3
Jim Johnson <jj@umn.edu>
parents:
0
diff
changeset
|
452 <param name="fix_misencoded_quality_scores" type="boolean" truevalue="--fix_misencoded_quality_scores" falsevalue="" label="Fix mis-encoded base quality scores. Q0 == ASCII 33 according to the SAM specification, whereas Illumina encoding starts at Q64. The idea here is simple: we just iterate over all reads and subtract 31 from every quality score." checked="False" help="-fixMisencodedQuals / --fix_misencoded_quality_scores"/> |
0 | 453 |
454 </when> | |
455 </conditional> | |
456 | |
457 <param name="annotation_group" type="select" multiple="True" display="checkboxes" label="annotation interfaces/groups to apply to variant calls" help="-G,--group &lt;group&gt;"> | |
458 <option value="RodRequiringAnnotation">RodRequiringAnnotation</option> | |
459 <option value="Standard">Standard</option> | |
460 <option value="Experimental">Experimental</option> | |
461 <option value="WorkInProgress">WorkInProgress</option> | |
462 <option value="RankSumTest">RankSumTest</option> | |
463 </param> | |
464 <param name="family_string" type="text" value="" label="Family String" help="--family_string"/> | |
465 <param name="mendel_violation_genotype_quality_threshold" type="float" value="0.0" label="genotype quality treshold in order to annotate mendelian violation ratio." help="-mvq,--MendelViolationGenotypeQualityThreshold &lt;MendelViolationGenotypeQualityThreshold&gt;"/> | |
466 <param name="exclude_annotations" type="select" multiple="True" display="checkboxes" label="Annotations to exclude" help="-XA,--excludeAnnotation &lt;excludeAnnotation&gt;" > | |
467 <!-- load the available annotations from an external configuration file, since additional ones can be added to local installs --> | |
468 <options from_data_table="gatk2_annotations"> | |
469 <filter type="multiple_splitter" column="tools_valid_for" separator=","/> | |
470 <filter type="static_value" value="VariantAnnotator" column="tools_valid_for"/> | |
471 </options> | |
472 </param> | |
473 | |
474 </inputs> | |
475 <outputs> | |
476 <data format="vcf" name="output_vcf" label="${tool.name} on ${on_string} (Variant File)" /> | |
477 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" /> | |
478 </outputs> | |
479 <tests> | |
480 <test> | |
481 <param name="reference_source_selector" value="history" /> | |
482 <param name="ref_file" value="phiX.fasta" ftype="fasta" /> | |
483 <param name="input_bam" value="gatk/gatk_table_recalibration/gatk_table_recalibration_out_1.bam" ftype="bam" /> | |
484 <param name="input_variant" value="gatk/gatk_unified_genotyper/gatk_unified_genotyper_out_1.vcf" ftype="vcf" /> | |
485 <param name="input_variant_bti" /> | |
486 <param name="annotations_type_selector" value="choose" /> | |
487 <param name="annotations" value="AlleleBalance,BaseQualityRankSumTest,DepthOfCoverage,HomopolymerRun,MappingQualityRankSumTest,MappingQualityZero,QualByDepth,RMSMappingQuality,SpanningDeletions,HaplotypeScore" /> | |
488 <param name="additional_annotations" value="0" /> | |
489 <param name="dbsnp_rod_bind_type_selector" value="set_dbsnp" /> | |
490 <param name="dbsnp_input_rod" value="gatk/fake_phiX_variant_locations.vcf" ftype="vcf" /> | |
491 <param name="snpEff_rod_bind_type_selector" value="exclude_snpEff" /> | |
492 <param name="gatk_param_type_selector" value="basic" /> | |
493 <output name="output_vcf" file="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" lines_diff="4" /> | |
494 <output name="output_log" file="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.log.contains" compare="contains" /> | |
495 <param name="comp_rod_bind" value="0" /> | |
496 <param name="resource_rod_bind" value="0" /> | |
497 <param name="expressions" value="0" /> | |
498 <!-- <param name="annotation_group" /> --> | |
499 </test> | |
500 </tests> | |
501 <help> | |
502 **What it does** | |
503 | |
504 Annotates variant calls with context information. Users can specify which of the available annotations to use. | |
505 | |
506 For more information on using the VariantAnnotator, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_annotator_VariantAnnotator.html>`_. | |
507 | |
508 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_. | |
509 | |
510 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_. | |
511 | |
512 ------ | |
513 | |
514 | |
515 **Inputs** | |
516 | |
517 GenomeAnalysisTK: VariantAnnotator accepts a variant input file. | |
518 | |
519 | |
520 **Outputs** | |
521 | |
522 The output is in VCF format. | |
523 | |
524 | |
525 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats. | |
526 | |
527 ------- | |
528 | |
529 **Settings**:: | |
530 | |
531 | |
532 sampleName The sample (NA-ID) corresponding to the variant input (for non-VCF input only) | |
533 annotation One or more specific annotations to apply to variant calls | |
534 group One or more classes/groups of annotations to apply to variant calls | |
535 expression One or more specific expressions to apply to variant calls; see documentation for more details | |
536 useAllAnnotations Use all possible annotations (not for the faint of heart) | |
537 | |
538 ------ | |
539 | |
540 **Citation** | |
541 | |
542 For the underlying tool, please cite `DePristo MA, Banks E, Poplin R, Garimella KV, Maguire JR, Hartl C, Philippakis AA, del Angel G, Rivas MA, Hanna M, McKenna A, Fennell TJ, Kernytsky AM, Sivachenko AY, Cibulskis K, Gabriel SB, Altshuler D, Daly MJ. A framework for variation discovery and genotyping using next-generation DNA sequencing data. Nat Genet. 2011 May;43(5):491-8. <http://www.ncbi.nlm.nih.gov/pubmed/21478889>`_ | |
543 | |
544 Please also site `McKenna A, Hanna M, Banks E, Sivachenko A, Cibulskis K, Kernytsky A, Garimella K, Altshuler D, Gabriel S, Daly M, DePristo MA (2010). The Genome Analysis Toolkit: a MapReduce framework for analyzing next-generation DNA sequencing data. Genome Res. 20:1297-303. Epub 2010 Jul 19. <http://www.ncbi.nlm.nih.gov/pubmed/20644199>`_ | |
545 | |
546 If you use this tool in Galaxy, please cite `Blankenberg D, Von Kuster G, Coraor N, Ananda G, Lazarus R, Mangan M, Nekrutenko A, Taylor J. Galaxy: a web-based genome analysis tool for experimentalists. Curr Protoc Mol Biol. 2010 Jan;Chapter 19:Unit 19.10.1-21. <http://www.ncbi.nlm.nih.gov/pubmed/20069535>`_ | |
547 | |
548 </help> | |
549 </tool> |