Mercurial > repos > jjohnson > gatk2
annotate variant_select.xml @ 29:c511aa6f93da draft
Temporarily use my own copy of samtools until cross dependency support is in release
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Tue, 19 Feb 2013 20:59:51 -0600 |
parents | 6ef8eb568700 |
children | 76f8ca47b810 |
rev | line source |
---|---|
18
7533db8dfb5b
Update tool_dependencies to GATK v 2.3
Jim Johnson <jj@umn.edu>
parents:
0
diff
changeset
|
1 <tool id="gatk2_variant_select" name="Select Variants" version="0.0.5"> |
0 | 2 <description>from VCF files</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 </requirements> |
6 <command interpreter="python">gatk2_wrapper.py | |
7 #from binascii import hexlify | |
8 --max_jvm_heap_fraction "1" | |
9 --stdout "${output_log}" | |
10 -d "--variant:variant,%(file_type)s" "${reference_source.input_variant}" "${reference_source.input_variant.ext}" "input_variant" | |
11 -p 'java | |
12 -jar "\$GATK2_PATH/GenomeAnalysisTK.jar" | |
13 -T "SelectVariants" | |
14 \$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
|
15 \$GATK2_NUM_THREADS |
0 | 16 ##--num_threads 4 ##hard coded, for now |
17 ##-et "NO_ET" -K "\$GATK2_BASE/gatk2_key_file" ##ET no phone home | |
18 -o "${output_vcf}" | |
19 | |
20 #if $reference_source.reference_source_selector != "history": | |
21 -R "${reference_source.ref_file.fields.path}" | |
22 #end if | |
23 ' | |
24 -p ' | |
25 #if $input_concordance: | |
26 --concordance "${input_concordance}" | |
27 #end if | |
28 #if $input_discordance: | |
29 --discordance "${input_discordance}" | |
30 #end if | |
31 | |
32 #for $exclude_sample_name in $exclude_sample_name_repeat: | |
33 --exclude_sample_name "${exclude_sample_name.exclude_sample_name}" | |
34 #end for | |
35 | |
36 ${exclude_filtered} | |
37 | |
38 #for $sample_name in $sample_name_repeat: | |
39 --sample_name "${sample_name.sample_name}" | |
40 #end for | |
41 | |
42 ' | |
43 | |
44 #for $select_expressions in $select_expressions_repeat: | |
45 #set $select_expression = "--select_expressions '%s'" % ( str( $select_expressions.select_expressions ) ) | |
46 -o '${ hexlify( $select_expression ) }' | |
47 #end for | |
48 | |
49 ##start tool specific options | |
50 #if str( $analysis_param_type.analysis_param_type_selector ) == 'advanced': | |
51 -p ' | |
52 #for $exclude_sample_file in $analysis_param_type.exclude_sample_file_repeat: | |
53 --exclude_sample_file "${exclude_sample_file.exclude_sample_file}" | |
54 #end for | |
55 | |
56 #for $sample_file in $analysis_param_type.sample_file_repeat: | |
57 --sample_file "${ample_file.sample_file}" | |
58 #end for | |
59 | |
60 #if $analysis_param_type.input_keep_ids: | |
61 --keepIDs "${analysis_param_type.input_keep_ids}" | |
62 #end if | |
63 | |
64 ${analysis_param_type.keep_original_AC} | |
65 | |
66 ${analysis_param_type.mendelian_violation} | |
67 | |
68 --mendelianViolationQualThreshold "${analysis_param_type.mendelian_violation_qual_threshold}" | |
69 | |
70 --remove_fraction_genotypes "${analysis_param_type.remove_fraction_genotypes}" | |
71 | |
72 --restrictAllelesTo "${analysis_param_type.restrict_alleles_to}" | |
73 | |
74 #if str( $analysis_param_type.select_random_type.select_random_type_selector ) == 'select_random_fraction': | |
75 --select_random_fraction "${analysis_param_type.select_random_type.select_random_fraction}" | |
76 #elif str( $analysis_param_type.select_random_type.select_random_type_selector ) == 'select_random_number': | |
77 --select_random_number "${analysis_param_type.select_random_type.select_random_number}" | |
78 #end if | |
79 | |
80 #if $analysis_param_type.select_type_to_include: | |
81 #for $type_to_include in str( $analysis_param_type.select_type_to_include ).split( ',' ): | |
82 --selectTypeToInclude "${type_to_include}" | |
83 #end for | |
84 #end if | |
85 | |
86 ${analysis_param_type.exclude_non_variants} | |
87 ' | |
88 | |
89 #for $sample_expressions in $analysis_param_type.sample_expressions_repeat: | |
90 #set $sample_expression = "--sample_expressions '%s'" % ( str( $sample_expressions.sample_expressions ) ) | |
91 -o '${ hexlify( $sample_expression ) }' | |
92 #end for | |
93 | |
94 #end if | |
95 ##end tool specific options | |
96 | |
97 ##start standard gatk options | |
98 #if $gatk_param_type.gatk_param_type_selector == "advanced": | |
99 #for $pedigree in $gatk_param_type.pedigree: | |
100 -p '--pedigree "${pedigree.pedigree_file}"' | |
101 #end for | |
102 #for $pedigree_string in $gatk_param_type.pedigree_string_repeat: | |
103 -p '--pedigreeString "${pedigree_string.pedigree_string}"' | |
104 #end for | |
105 -p '--pedigreeValidationType "${gatk_param_type.pedigree_validation_type}"' | |
106 #for $read_filter in $gatk_param_type.read_filter: | |
107 -p '--read_filter "${read_filter.read_filter_type.read_filter_type_selector}" | |
108 ###raise Exception( str( dir( $read_filter ) ) ) | |
109 #for $name, $param in $read_filter.read_filter_type.iteritems(): | |
110 #if $name not in [ "__current_case__", "read_filter_type_selector" ]: | |
111 #if hasattr( $param.input, 'truevalue' ): | |
112 ${param} | |
113 #else: | |
114 --${name} "${param}" | |
115 #end if | |
116 #end if | |
117 #end for | |
118 ' | |
119 #end for | |
120 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_interval_repeat ): | |
121 -d "--intervals" "${input_intervals.input_intervals}" "${input_intervals.input_intervals.ext}" "input_intervals_${interval_count}" | |
122 #end for | |
123 | |
124 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_exclude_interval_repeat ): | |
125 -d "--excludeIntervals" "${input_intervals.input_exclude_intervals}" "${input_intervals.input_exclude_intervals.ext}" "input_exlude_intervals_${interval_count}" | |
126 #end for | |
127 | |
128 -p '--interval_set_rule "${gatk_param_type.interval_set_rule}"' | |
129 | |
130 -p '--downsampling_type "${gatk_param_type.downsampling_type.downsampling_type_selector}"' | |
131 #if str( $gatk_param_type.downsampling_type.downsampling_type_selector ) != "NONE": | |
132 -p '--${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_type_selector} "${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_value}"' | |
133 #end if | |
134 -p ' | |
135 --baq "${gatk_param_type.baq}" | |
136 --baqGapOpenPenalty "${gatk_param_type.baq_gap_open_penalty}" | |
137 ${gatk_param_type.use_original_qualities} | |
138 --defaultBaseQualities "${gatk_param_type.default_base_qualities}" | |
139 --validation_strictness "${gatk_param_type.validation_strictness}" | |
140 --interval_merging "${gatk_param_type.interval_merging}" | |
141 ${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
|
142 ${gatk_param_type.fix_misencoded_quality_scores} |
0 | 143 ${gatk_param_type.non_deterministic_random_seed} |
144 ' | |
145 #for $rg_black_list_count, $rg_black_list in enumerate( $gatk_param_type.read_group_black_list_repeat ): | |
146 #if $rg_black_list.read_group_black_list_type.read_group_black_list_type_selector == "file": | |
147 -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}" | |
148 #else | |
149 -p '--read_group_black_list "${rg_black_list.read_group_black_list_type.read_group_black_list}"' | |
150 #end if | |
151 #end for | |
152 #end if | |
153 | |
154 #if str( $reference_source.reference_source_selector ) == "history": | |
155 -d "-R" "${reference_source.ref_file}" "${reference_source.ref_file.ext}" "gatk_input" | |
156 #end if | |
157 ##end standard gatk options | |
158 | |
159 | |
160 </command> | |
161 <inputs> | |
162 <conditional name="reference_source"> | |
163 <param name="reference_source_selector" type="select" label="Choose the source for the reference list"> | |
164 <option value="cached">Locally cached</option> | |
165 <option value="history">History</option> | |
166 </param> | |
167 <when value="cached"> | |
168 <param name="input_variant" type="data" format="vcf" label="Variant file to select" help="-V,--variant &lt;variant&gt;" /> | |
169 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;"> | |
170 <options from_data_table="gatk2_picard_indexes"> | |
171 <filter type="data_meta" key="dbkey" ref="input_variant" column="dbkey"/> | |
172 </options> | |
173 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> | |
174 </param> | |
175 </when> | |
176 <when value="history"> <!-- FIX ME!!!! --> | |
177 <param name="input_variant" type="data" format="vcf" label="Variant file to select" help="-V,--variant &lt;variant&gt;" /> | |
178 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" /> | |
179 </when> | |
180 </conditional> | |
181 | |
182 <repeat name="select_expressions_repeat" title="Criteria to use when selecting the data" help="-select,--select_expressions &lt;select_expressions&gt;"> | |
183 <param name="select_expressions" type="text" label="JEXL expression"> | |
184 <sanitizer> | |
185 <valid initial="string.printable"> | |
186 <remove value="'"/> | |
187 </valid> | |
188 <mapping initial="none"/> | |
189 </sanitizer> | |
190 </param> | |
191 </repeat> | |
192 | |
193 <param name="input_concordance" type="data" format="vcf" label="Output variants that were also called in this comparison track" optional="True" help="-conc,--concordance &lt;concordance&gt;"/> | |
194 <param name="input_discordance" type="data" format="vcf" label="Output variants that were not called in this comparison track" optional="True" help="-disc,--discordance &lt;discordance&gt;"/> | |
195 | |
196 <repeat name="sample_name_repeat" title="Include Samples by name" help="-sn,--sample_name &lt;sample_name&gt;"> | |
197 <param name="sample_name" type="text" label="Include genotypes from this sample"/> | |
198 </repeat> | |
199 | |
200 <repeat name="exclude_sample_name_repeat" title="Exclude Samples by name" help="-xl_sn,--exclude_sample_name &lt;exclude_sample_name&gt;"> | |
201 <param name="exclude_sample_name" type="text" label="Exclude genotypes from this sample"/> | |
202 </repeat> | |
203 | |
204 <param name="exclude_filtered" type="boolean" truevalue="--excludeFiltered" falsevalue="" label="Don't include filtered loci in the analysis" help="-ef,--excludeFiltered" /> | |
205 | |
206 <conditional name="gatk_param_type"> | |
207 <param name="gatk_param_type_selector" type="select" label="Basic or Advanced GATK options"> | |
208 <option value="basic" selected="True">Basic</option> | |
209 <option value="advanced">Advanced</option> | |
210 </param> | |
211 <when value="basic"> | |
212 <!-- Do nothing here --> | |
213 </when> | |
214 <when value="advanced"> | |
215 <repeat name="pedigree" title="Pedigree file" help="-ped,--pedigree &lt;pedigree&gt;"> | |
216 <param name="pedigree_file" type="data" format="txt" label="Pedigree files for samples"/> | |
217 </repeat> | |
218 <repeat name="pedigree_string_repeat" title="Pedigree string" help="-pedString,--pedigreeString &lt;pedigreeString&gt;"> | |
219 <param name="pedigree_string" type="text" value="" label="Pedigree string for samples"/> | |
220 </repeat> | |
221 <param name="pedigree_validation_type" type="select" label="How strict should we be in validating the pedigree information" help="-pedValidationType,--pedigreeValidationType &lt;pedigreeValidationType&gt;"> | |
222 <option value="STRICT" selected="True">STRICT</option> | |
223 <option value="SILENT">SILENT</option> | |
224 </param> | |
225 <repeat name="read_filter" title="Read Filter" help="-rf,--read_filter &lt;read_filter&gt;"> | |
226 <conditional name="read_filter_type"> | |
227 <param name="read_filter_type_selector" type="select" label="Read Filter Type"> | |
228 <option value="BadCigar">BadCigar</option> | |
229 <option value="BadMate">BadMate</option> | |
230 <option value="DuplicateRead">DuplicateRead</option> | |
231 <option value="FailsVendorQualityCheck">FailsVendorQualityCheck</option> | |
232 <option value="MalformedRead">MalformedRead</option> | |
233 <option value="MappingQuality">MappingQuality</option> | |
234 <option value="MappingQualityUnavailable">MappingQualityUnavailable</option> | |
235 <option value="MappingQualityZero">MappingQualityZero</option> | |
236 <option value="MateSameStrand">MateSameStrand</option> | |
237 <option value="MaxInsertSize">MaxInsertSize</option> | |
238 <option value="MaxReadLength" selected="True">MaxReadLength</option> | |
239 <option value="MissingReadGroup">MissingReadGroup</option> | |
240 <option value="NoOriginalQualityScores">NoOriginalQualityScores</option> | |
241 <option value="NotPrimaryAlignment">NotPrimaryAlignment</option> | |
242 <option value="Platform454">Platform454</option> | |
243 <option value="Platform">Platform</option> | |
244 <option value="PlatformUnit">PlatformUnit</option> | |
245 <option value="ReadGroupBlackList">ReadGroupBlackList</option> | |
246 <option value="ReadName">ReadName</option> | |
247 <option value="ReadStrand">ReadStrand</option> | |
248 <option value="ReassignMappingQuality">ReassignMappingQuality</option> | |
249 <option value="Sample">Sample</option> | |
250 <option value="SingleReadGroup">SingleReadGroup</option> | |
251 <option value="UnmappedRead">UnmappedRead</option> | |
252 </param> | |
253 <when value="BadCigar"> | |
254 <!-- no extra options --> | |
255 </when> | |
256 <when value="BadMate"> | |
257 <!-- no extra options --> | |
258 </when> | |
259 <when value="DuplicateRead"> | |
260 <!-- no extra options --> | |
261 </when> | |
262 <when value="FailsVendorQualityCheck"> | |
263 <!-- no extra options --> | |
264 </when> | |
265 <when value="MalformedRead"> | |
266 <!-- no extra options --> | |
267 </when> | |
268 <when value="MappingQuality"> | |
269 <param name="min_mapping_quality_score" type="integer" value="10" label="Minimum read mapping quality required to consider a read for calling"/> | |
270 </when> | |
271 <when value="MappingQualityUnavailable"> | |
272 <!-- no extra options --> | |
273 </when> | |
274 <when value="MappingQualityZero"> | |
275 <!-- no extra options --> | |
276 </when> | |
277 <when value="MateSameStrand"> | |
278 <!-- no extra options --> | |
279 </when> | |
280 <when value="MaxInsertSize"> | |
281 <param name="maxInsertSize" type="integer" value="1000000" label="Discard reads with insert size greater than the specified value"/> | |
282 </when> | |
283 <when value="MaxReadLength"> | |
284 <param name="maxReadLength" type="integer" value="76" label="Max Read Length"/> | |
285 </when> | |
286 <when value="MissingReadGroup"> | |
287 <!-- no extra options --> | |
288 </when> | |
289 <when value="NoOriginalQualityScores"> | |
290 <!-- no extra options --> | |
291 </when> | |
292 <when value="NotPrimaryAlignment"> | |
293 <!-- no extra options --> | |
294 </when> | |
295 <when value="Platform454"> | |
296 <!-- no extra options --> | |
297 </when> | |
298 <when value="Platform"> | |
299 <param name="PLFilterName" type="text" value="" label="Discard reads with RG:PL attribute containing this string"/> | |
300 </when> | |
301 <when value="PlatformUnit"> | |
302 <!-- no extra options --> | |
303 </when> | |
304 <when value="ReadGroupBlackList"> | |
305 <!-- no extra options --> | |
306 </when> | |
307 <when value="ReadName"> | |
308 <param name="readName" type="text" value="" label="Filter out all reads except those with this read name"/> | |
309 </when> | |
310 <when value="ReadStrand"> | |
311 <param name="filterPositive" type="boolean" truevalue="--filterPositive" falsevalue="" label="Discard reads on the forward strand"/> | |
312 </when> | |
313 <when value="ReassignMappingQuality"> | |
314 <param name="default_mapping_quality" type="integer" value="60" label="Default read mapping quality to assign to all reads"/> | |
315 </when> | |
316 <when value="Sample"> | |
317 <param name="sample_to_keep" type="text" value="" label="The name of the sample(s) to keep, filtering out all others"/> | |
318 </when> | |
319 <when value="SingleReadGroup"> | |
320 <param name="read_group_to_keep" type="integer" value="76" label="The name of the read group to keep, filtering out all others"/> | |
321 </when> | |
322 <when value="UnmappedRead"> | |
323 <!-- no extra options --> | |
324 </when> | |
325 </conditional> | |
326 </repeat> | |
327 <repeat name="input_interval_repeat" title="Operate on Genomic intervals" help="-L,--intervals &lt;intervals&gt;"> | |
328 <param name="input_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" /> | |
329 </repeat> | |
330 <repeat name="input_exclude_interval_repeat" title="Exclude Genomic intervals" help="-XL,--excludeIntervals &lt;excludeIntervals&gt;"> | |
331 <param name="input_exclude_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" /> | |
332 </repeat> | |
333 | |
334 <param name="interval_set_rule" type="select" label="Interval set rule" help="-isr,--interval_set_rule &lt;interval_set_rule&gt;"> | |
335 <option value="UNION" selected="True">UNION</option> | |
336 <option value="INTERSECTION">INTERSECTION</option> | |
337 </param> | |
338 | |
339 <conditional name="downsampling_type"> | |
340 <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;"> | |
341 <option value="NONE" selected="True">NONE</option> | |
342 <option value="ALL_READS">ALL_READS</option> | |
343 <option value="BY_SAMPLE">BY_SAMPLE</option> | |
344 </param> | |
345 <when value="NONE"> | |
346 <!-- no more options here --> | |
347 </when> | |
348 <when value="ALL_READS"> | |
349 <conditional name="downsample_to_type"> | |
350 <param name="downsample_to_type_selector" type="select" label="Downsample method"> | |
351 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option> | |
352 <option value="downsample_to_coverage">Downsample by Coverage</option> | |
353 </param> | |
354 <when value="downsample_to_fraction"> | |
355 <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;"/> | |
356 </when> | |
357 <when value="downsample_to_coverage"> | |
358 <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;"/> | |
359 </when> | |
360 </conditional> | |
361 </when> | |
362 <when value="BY_SAMPLE"> | |
363 <conditional name="downsample_to_type"> | |
364 <param name="downsample_to_type_selector" type="select" label="Downsample method"> | |
365 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option> | |
366 <option value="downsample_to_coverage">Downsample by Coverage</option> | |
367 </param> | |
368 <when value="downsample_to_fraction"> | |
369 <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;"/> | |
370 </when> | |
371 <when value="downsample_to_coverage"> | |
372 <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;"/> | |
373 </when> | |
374 </conditional> | |
375 </when> | |
376 </conditional> | |
377 <param name="baq" type="select" label="Type of BAQ calculation to apply in the engine" help="-baq,--baq &lt;baq&gt;"> | |
378 <option value="OFF" selected="True">OFF</option> | |
379 <option value="CALCULATE_AS_NECESSARY">CALCULATE_AS_NECESSARY</option> | |
380 <option value="RECALCULATE">RECALCULATE</option> | |
381 </param> | |
382 <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;" /> | |
383 <param name="use_original_qualities" type="boolean" truevalue="--useOriginalQualities" falsevalue="" label="Use the original base quality scores from the OQ tag" help="-OQ,--useOriginalQualities" /> | |
384 <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;"/> | |
385 <param name="validation_strictness" type="select" label="How strict should we be with validation" help="-S,--validation_strictness &lt;validation_strictness&gt;"> | |
386 <option value="STRICT" selected="True">STRICT</option> | |
387 <option value="LENIENT">LENIENT</option> | |
388 <option value="SILENT">SILENT</option> | |
389 <!-- <option value="DEFAULT_STRINGENCY">DEFAULT_STRINGENCY</option> listed in docs, but not valid value...--> | |
390 </param> | |
391 <param name="interval_merging" type="select" label="Interval merging rule" help="-im,--interval_merging &lt;interval_merging&gt;"> | |
392 <option value="ALL" selected="True">ALL</option> | |
393 <option value="OVERLAPPING_ONLY">OVERLAPPING_ONLY</option> | |
394 </param> | |
395 | |
396 <repeat name="read_group_black_list_repeat" title="Read group black list" help="-rgbl,--read_group_black_list &lt;read_group_black_list&gt;"> | |
397 <conditional name="read_group_black_list_type"> | |
398 <param name="read_group_black_list_type_selector" type="select" label="Type of reads read group black list"> | |
399 <option value="file" selected="True">Filters in file</option> | |
400 <option value="text">Specify filters as a string</option> | |
401 </param> | |
402 <when value="file"> | |
403 <param name="read_group_black_list" type="data" format="txt" label="Read group black list file" /> | |
404 </when> | |
405 <when value="text"> | |
406 <param name="read_group_black_list" type="text" value="tag:string" label="Read group black list tag:string" /> | |
407 </when> | |
408 </conditional> | |
409 </repeat> | |
410 | |
411 <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"/> | |
412 <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
|
413 <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 | 414 |
415 </when> | |
416 </conditional> | |
417 | |
418 | |
419 <conditional name="analysis_param_type"> | |
420 <param name="analysis_param_type_selector" type="select" label="Basic or Advanced Analysis options"> | |
421 <option value="basic" selected="True">Basic</option> | |
422 <option value="advanced">Advanced</option> | |
423 </param> | |
424 <when value="basic"> | |
425 <!-- Do nothing here --> | |
426 </when> | |
427 <when value="advanced"> | |
428 | |
429 <repeat name="exclude_sample_file_repeat" title="Exclude Samples by file" help="-xl_sf,--exclude_sample_file &lt;exclude_sample_file&gt;"> | |
430 <param name="exclude_sample_file" type="data" format="txt" label="File containing a list of samples (one per line) to exclude"/> | |
431 </repeat> | |
432 | |
433 <repeat name="sample_file_repeat" title="Samples by file" help="-sf,--sample_file &lt;sample_file&gt;"> | |
434 <param name="sample_file" type="data" format="txt" label="File containing a list of samples (one per line) to include" /> | |
435 </repeat> | |
436 | |
437 <param name="input_keep_ids" type="data" format="text" label="Only emit sites whose ID is found in this file" optional="True" help="-IDs,--keepIDs &lt;keepIDs&gt;"/> | |
438 | |
439 <param name="keep_original_AC" type="boolean" truevalue="--keepOriginalAC" falsevalue="" label="Don't update the AC, AF, or AN values in the INFO field after selecting" help="-keepOriginalAC,--keepOriginalAC" /> | |
440 | |
441 <param name="mendelian_violation" type="boolean" truevalue="--mendelianViolation" falsevalue="" label="output mendelian violation sites only" help="-mv,--mendelianViolation" /> | |
442 | |
443 <param name="mendelian_violation_qual_threshold" type="float" label="Minimum genotype QUAL score for each trio member required to accept a site as a mendelian violation" value="0" help="-mvq,--mendelianViolationQualThreshold &lt;mendelianViolationQualThreshold&gt;" /> | |
444 | |
445 <param name="remove_fraction_genotypes" type="float" label="Selects a fraction (a number between 0 and 1) of the total genotypes at random from the variant track and sets them to nocall" value="0" min="0" max="1" help="-fractionGenotypes,--remove_fraction_genotypes &lt;remove_fraction_genotypes&gt;" /> | |
446 | |
447 <param name="restrict_alleles_to" type="select" label="Select only variants of a particular allelicity" help="-restrictAllelesTo,--restrictAllelesTo &lt;restrictAllelesTo&gt;"> | |
448 <option value="ALL" selected="True">ALL</option> | |
449 <option value="MULTIALLELIC">MULTIALLELIC</option> | |
450 <option value="BIALLELIC">BIALLELIC</option> | |
451 </param> | |
452 | |
453 <repeat name="sample_expressions_repeat" title="Regular expression to select many samples from the ROD tracks provided" help="-se,--sample_expressions &lt;sample_expressions&gt;"> | |
454 <param name="sample_expressions" type="text" label="Regular expression"> | |
455 <sanitizer> | |
456 <valid initial="string.printable"> | |
457 <remove value="'"/> | |
458 </valid> | |
459 <mapping initial="none"/> | |
460 </sanitizer> | |
461 </param> | |
462 </repeat> | |
463 | |
464 <conditional name="select_random_type"> | |
465 <param name="select_random_type_selector" type="select" label="Select a random subset of variants"> | |
466 <option value="select_all" selected="True">Use all variants</option> | |
467 <option value="select_random_fraction">Select random fraction</option> | |
468 <option value="select_random_number">Select random number</option> | |
469 </param> | |
470 <when value="select_all"> | |
471 <!-- Do nothing here --> | |
472 </when> | |
473 <when value="select_random_fraction"> | |
474 <param name="select_random_fraction" type="float" value="0" label="Fraction" min="0" max="1" help="-fraction,--select_random_fraction &lt;select_random_fraction&gt;"/> | |
475 </when> | |
476 <when value="select_random_number"> | |
477 <param name="select_random_number" type="integer" value="0" label="Count" help="-number,--select_random_number &lt;select_random_number&gt;" /> | |
478 </when> | |
479 </conditional> | |
480 | |
481 <param name="exclude_non_variants" type="boolean" truevalue="--excludeNonVariants" falsevalue="" label="Don't include loci found to be non-variant after the subsetting procedure" help="-env,--excludeNonVariants" /> | |
482 | |
483 <param name="select_type_to_include" type="select" label="Select only a certain type of variants from the input file" multiple="True" display="checkboxes" help="-selectType,--selectTypeToInclude &lt;selectTypeToInclude&gt;"> | |
484 <option value="INDEL">INDEL</option> | |
485 <option value="SNP">SNP</option> | |
486 <option value="MIXED">MIXED</option> | |
487 <option value="MNP">MNP</option> | |
488 <option value="SYMBOLIC">SYMBOLIC</option> | |
489 <option value="NO_VARIATION">NO_VARIATION</option> | |
490 </param> | |
491 | |
492 </when> | |
493 </conditional> | |
494 | |
495 </inputs> | |
496 <outputs> | |
497 <data format="vcf" name="output_vcf" label="${tool.name} on ${on_string} (Variant File)" /> | |
498 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" /> | |
499 </outputs> | |
500 <tests> | |
501 <test> | |
502 <param name="reference_source_selector" value="history" /> | |
503 <param name="ref_file" value="phiX.fasta" ftype="fasta" /> | |
504 <param name="input_variant" value="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" ftype="vcf" /> | |
505 <param name="select_expressions_repeat" value="0" /> | |
506 <param name="input_concordance" /> | |
507 <param name="input_discordance" /> | |
508 <param name="exclude_sample_name_repeat" value="0" /> | |
509 <param name="exclude_filtered" /> | |
510 <param name="sample_name_repeat" value="0" /> | |
511 <param name="gatk_param_type_selector" value="basic" /> | |
512 <param name="analysis_param_type_selector" value="basic" /> | |
513 <output name="output_vcf" file="gatk/gatk_variant_select/gatk_variant_select_out_1.vcf" lines_diff="4" /> | |
514 <output name="output_log" file="gatk/gatk_variant_select/gatk_variant_select_out_1.log.contains" compare="contains" /> | |
515 </test> | |
516 </tests> | |
517 <help> | |
518 **What it does** | |
519 | |
520 Often, a VCF containing many samples and/or variants will need to be subset in order to facilitate certain analyses (e.g. comparing and contrasting cases vs. controls; extracting variant or non-variant loci that meet certain requirements, displaying just a few samples in a browser like IGV, etc.). SelectVariants can be used for this purpose. Given a single VCF file, one or more samples can be extracted from the file (based on a complete sample name or a pattern match). Variants can be further selected by specifying criteria for inclusion, i.e. "DP > 1000" (depth of coverage greater than 1000x), "AF < 0.25" (sites with allele frequency less than 0.25). These JEXL expressions are documented in the `Using JEXL expressions section <http://gatkforums.broadinstitute.org/discussion/1255/what-are-jexl-expressions-and-how-can-i-use-them-with-the-gatk>`_. One can optionally include concordance or discordance tracks for use in selecting overlapping variants. | |
521 | |
522 For more information on using the SelectVariants module, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_variantutils_SelectVariants.html>`_. | |
523 | |
524 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_. | |
525 | |
526 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_. | |
527 | |
528 ------ | |
529 | |
530 **Inputs** | |
531 | |
532 GenomeAnalysisTK: SelectVariants accepts a VCF input file. | |
533 | |
534 | |
535 **Outputs** | |
536 | |
537 The output is in VCF format. | |
538 | |
539 | |
540 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats. | |
541 | |
542 ------- | |
543 | |
544 **Settings**:: | |
545 | |
546 | |
547 out VCFWriter stdout File to which variants should be written | |
548 variant RodBinding[VariantContext] NA Input VCF file | |
549 concordance RodBinding[VariantContext] none Output variants that were also called in this comparison track | |
550 discordance RodBinding[VariantContext] none Output variants that were not called in this comparison track | |
551 exclude_sample_file Set[File] [] File containing a list of samples (one per line) to exclude. Can be specified multiple times | |
552 exclude_sample_name Set[String] [] Exclude genotypes from this sample. Can be specified multiple times | |
553 excludeFiltered boolean false Don't include filtered loci in the analysis | |
554 excludeNonVariants boolean false Don't include loci found to be non-variant after the subsetting procedure | |
555 keepIDs File NA Only emit sites whose ID is found in this file (one ID per line) | |
556 keepOriginalAC boolean false Don't update the AC, AF, or AN values in the INFO field after selecting | |
557 mendelianViolation Boolean false output mendelian violation sites only | |
558 mvq double 0.0 Minimum genotype QUAL score for each trio member required to accept a site as a violation | |
559 remove_fraction_genotypes double 0.0 Selects a fraction (a number between 0 and 1) of the total genotypes at random from the variant track and sets them to nocall | |
560 restrictAllelesTo NumberAlleleRestriction ALL Select only variants of a particular allelicity. Valid options are ALL (default), MULTIALLELIC or BIALLELIC | |
561 sample_expressions Set[String] NA Regular expression to select many samples from the ROD tracks provided. Can be specified multiple times | |
562 sample_file Set[File] NA File containing a list of samples (one per line) to include. Can be specified multiple times | |
563 sample_name Set[String] [] Include genotypes from this sample. Can be specified multiple times | |
564 select_expressions ArrayList[String] [] One or more criteria to use when selecting the data | |
565 select_random_fraction double 0.0 Selects a fraction (a number between 0 and 1) of the total variants at random from the variant track | |
566 select_random_number int 0 Selects a number of variants at random from the variant track | |
567 selectTypeToInclude List[Type] [] Select only a certain type of variants from the input file. Valid types are INDEL, SNP, MIXED, MNP, SYMBOLIC, NO_VARIATION. Can be specified multiple times | |
568 | |
569 ------ | |
570 | |
571 **Citation** | |
572 | |
573 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>`_ | |
574 | |
575 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>`_ | |
576 | |
577 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>`_ | |
578 | |
579 </help> | |
580 </tool> |