Mercurial > repos > jjohnson > gatk2
annotate variant_select.xml @ 36:14d47237bb0a draft
Fix commandline template
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Fri, 01 Mar 2013 08:07:56 -0600 |
parents | a29c7d7d962d |
children |
rev | line source |
---|---|
34 | 1 <tool id="gatk2_variant_select" name="Select Variants" version="0.0.7"> |
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}"' | |
35 | 106 #set default_read_filters = ['DuplicateRead','FailsVendorQualityCheck','NotPrimaryAlignment','MalformedRead','UnmappedRead'] |
0 | 107 #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
|
108 -p ' |
35 | 109 #if $read_filter.read_filter_type.read_filter_type_selector not in $default_read_filters: |
33
76f8ca47b810
Omit --read_filter param included by default
Jim Johnson <jj@umn.edu>
parents:
28
diff
changeset
|
110 --read_filter "${read_filter.read_filter_type.read_filter_type_selector}" |
36 | 111 #end if |
0 | 112 #for $name, $param in $read_filter.read_filter_type.iteritems(): |
113 #if $name not in [ "__current_case__", "read_filter_type_selector" ]: | |
114 #if hasattr( $param.input, 'truevalue' ): | |
115 ${param} | |
116 #else: | |
117 --${name} "${param}" | |
118 #end if | |
119 #end if | |
120 #end for | |
121 ' | |
122 #end for | |
123 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_interval_repeat ): | |
124 -d "--intervals" "${input_intervals.input_intervals}" "${input_intervals.input_intervals.ext}" "input_intervals_${interval_count}" | |
125 #end for | |
126 | |
127 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_exclude_interval_repeat ): | |
128 -d "--excludeIntervals" "${input_intervals.input_exclude_intervals}" "${input_intervals.input_exclude_intervals.ext}" "input_exlude_intervals_${interval_count}" | |
129 #end for | |
130 | |
131 -p '--interval_set_rule "${gatk_param_type.interval_set_rule}"' | |
132 | |
133 -p '--downsampling_type "${gatk_param_type.downsampling_type.downsampling_type_selector}"' | |
134 #if str( $gatk_param_type.downsampling_type.downsampling_type_selector ) != "NONE": | |
135 -p '--${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_type_selector} "${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_value}"' | |
136 #end if | |
137 -p ' | |
138 --baq "${gatk_param_type.baq}" | |
139 --baqGapOpenPenalty "${gatk_param_type.baq_gap_open_penalty}" | |
140 ${gatk_param_type.use_original_qualities} | |
141 --defaultBaseQualities "${gatk_param_type.default_base_qualities}" | |
142 --validation_strictness "${gatk_param_type.validation_strictness}" | |
143 --interval_merging "${gatk_param_type.interval_merging}" | |
144 ${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
|
145 ${gatk_param_type.fix_misencoded_quality_scores} |
0 | 146 ${gatk_param_type.non_deterministic_random_seed} |
147 ' | |
148 #for $rg_black_list_count, $rg_black_list in enumerate( $gatk_param_type.read_group_black_list_repeat ): | |
149 #if $rg_black_list.read_group_black_list_type.read_group_black_list_type_selector == "file": | |
150 -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}" | |
151 #else | |
152 -p '--read_group_black_list "${rg_black_list.read_group_black_list_type.read_group_black_list}"' | |
153 #end if | |
154 #end for | |
155 #end if | |
156 | |
157 #if str( $reference_source.reference_source_selector ) == "history": | |
158 -d "-R" "${reference_source.ref_file}" "${reference_source.ref_file.ext}" "gatk_input" | |
159 #end if | |
160 ##end standard gatk options | |
161 | |
162 | |
163 </command> | |
164 <inputs> | |
165 <conditional name="reference_source"> | |
166 <param name="reference_source_selector" type="select" label="Choose the source for the reference list"> | |
167 <option value="cached">Locally cached</option> | |
168 <option value="history">History</option> | |
169 </param> | |
170 <when value="cached"> | |
171 <param name="input_variant" type="data" format="vcf" label="Variant file to select" help="-V,--variant &lt;variant&gt;" /> | |
172 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;"> | |
173 <options from_data_table="gatk2_picard_indexes"> | |
174 <filter type="data_meta" key="dbkey" ref="input_variant" column="dbkey"/> | |
175 </options> | |
176 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> | |
177 </param> | |
178 </when> | |
179 <when value="history"> <!-- FIX ME!!!! --> | |
180 <param name="input_variant" type="data" format="vcf" label="Variant file to select" help="-V,--variant &lt;variant&gt;" /> | |
181 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" /> | |
182 </when> | |
183 </conditional> | |
184 | |
185 <repeat name="select_expressions_repeat" title="Criteria to use when selecting the data" help="-select,--select_expressions &lt;select_expressions&gt;"> | |
186 <param name="select_expressions" type="text" label="JEXL expression"> | |
187 <sanitizer> | |
188 <valid initial="string.printable"> | |
189 <remove value="'"/> | |
190 </valid> | |
191 <mapping initial="none"/> | |
192 </sanitizer> | |
193 </param> | |
194 </repeat> | |
195 | |
196 <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;"/> | |
197 <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;"/> | |
198 | |
199 <repeat name="sample_name_repeat" title="Include Samples by name" help="-sn,--sample_name &lt;sample_name&gt;"> | |
200 <param name="sample_name" type="text" label="Include genotypes from this sample"/> | |
201 </repeat> | |
202 | |
203 <repeat name="exclude_sample_name_repeat" title="Exclude Samples by name" help="-xl_sn,--exclude_sample_name &lt;exclude_sample_name&gt;"> | |
204 <param name="exclude_sample_name" type="text" label="Exclude genotypes from this sample"/> | |
205 </repeat> | |
206 | |
207 <param name="exclude_filtered" type="boolean" truevalue="--excludeFiltered" falsevalue="" label="Don't include filtered loci in the analysis" help="-ef,--excludeFiltered" /> | |
208 | |
209 <conditional name="gatk_param_type"> | |
210 <param name="gatk_param_type_selector" type="select" label="Basic or Advanced GATK options"> | |
211 <option value="basic" selected="True">Basic</option> | |
212 <option value="advanced">Advanced</option> | |
213 </param> | |
214 <when value="basic"> | |
215 <!-- Do nothing here --> | |
216 </when> | |
217 <when value="advanced"> | |
218 <repeat name="pedigree" title="Pedigree file" help="-ped,--pedigree &lt;pedigree&gt;"> | |
219 <param name="pedigree_file" type="data" format="txt" label="Pedigree files for samples"/> | |
220 </repeat> | |
221 <repeat name="pedigree_string_repeat" title="Pedigree string" help="-pedString,--pedigreeString &lt;pedigreeString&gt;"> | |
222 <param name="pedigree_string" type="text" value="" label="Pedigree string for samples"/> | |
223 </repeat> | |
224 <param name="pedigree_validation_type" type="select" label="How strict should we be in validating the pedigree information" help="-pedValidationType,--pedigreeValidationType &lt;pedigreeValidationType&gt;"> | |
225 <option value="STRICT" selected="True">STRICT</option> | |
226 <option value="SILENT">SILENT</option> | |
227 </param> | |
228 <repeat name="read_filter" title="Read Filter" help="-rf,--read_filter &lt;read_filter&gt;"> | |
229 <conditional name="read_filter_type"> | |
230 <param name="read_filter_type_selector" type="select" label="Read Filter Type"> | |
231 <option value="BadCigar">BadCigar</option> | |
232 <option value="BadMate">BadMate</option> | |
233 <option value="DuplicateRead">DuplicateRead</option> | |
234 <option value="FailsVendorQualityCheck">FailsVendorQualityCheck</option> | |
235 <option value="MalformedRead">MalformedRead</option> | |
236 <option value="MappingQuality">MappingQuality</option> | |
237 <option value="MappingQualityUnavailable">MappingQualityUnavailable</option> | |
238 <option value="MappingQualityZero">MappingQualityZero</option> | |
239 <option value="MateSameStrand">MateSameStrand</option> | |
240 <option value="MaxInsertSize">MaxInsertSize</option> | |
241 <option value="MaxReadLength" selected="True">MaxReadLength</option> | |
242 <option value="MissingReadGroup">MissingReadGroup</option> | |
243 <option value="NoOriginalQualityScores">NoOriginalQualityScores</option> | |
244 <option value="NotPrimaryAlignment">NotPrimaryAlignment</option> | |
245 <option value="Platform454">Platform454</option> | |
246 <option value="Platform">Platform</option> | |
247 <option value="PlatformUnit">PlatformUnit</option> | |
248 <option value="ReadGroupBlackList">ReadGroupBlackList</option> | |
249 <option value="ReadName">ReadName</option> | |
250 <option value="ReadStrand">ReadStrand</option> | |
251 <option value="ReassignMappingQuality">ReassignMappingQuality</option> | |
252 <option value="Sample">Sample</option> | |
253 <option value="SingleReadGroup">SingleReadGroup</option> | |
254 <option value="UnmappedRead">UnmappedRead</option> | |
255 </param> | |
256 <when value="BadCigar"> | |
257 <!-- no extra options --> | |
258 </when> | |
259 <when value="BadMate"> | |
260 <!-- no extra options --> | |
261 </when> | |
262 <when value="DuplicateRead"> | |
263 <!-- no extra options --> | |
264 </when> | |
265 <when value="FailsVendorQualityCheck"> | |
266 <!-- no extra options --> | |
267 </when> | |
268 <when value="MalformedRead"> | |
35 | 269 <param name="filter_mismatching_base_and_quals" type="boolean" truevalue="--filter_mismatching_base_and_quals" falsevalue="" checked="false" label="filter out the reads with mismatching number of bases and base qualities" help="filter out the mismatch reads instead of quitting with an error"/> |
0 | 270 </when> |
271 <when value="MappingQuality"> | |
272 <param name="min_mapping_quality_score" type="integer" value="10" label="Minimum read mapping quality required to consider a read for calling"/> | |
273 </when> | |
274 <when value="MappingQualityUnavailable"> | |
275 <!-- no extra options --> | |
276 </when> | |
277 <when value="MappingQualityZero"> | |
278 <!-- no extra options --> | |
279 </when> | |
280 <when value="MateSameStrand"> | |
281 <!-- no extra options --> | |
282 </when> | |
283 <when value="MaxInsertSize"> | |
284 <param name="maxInsertSize" type="integer" value="1000000" label="Discard reads with insert size greater than the specified value"/> | |
285 </when> | |
286 <when value="MaxReadLength"> | |
287 <param name="maxReadLength" type="integer" value="76" label="Max Read Length"/> | |
288 </when> | |
289 <when value="MissingReadGroup"> | |
290 <!-- no extra options --> | |
291 </when> | |
292 <when value="NoOriginalQualityScores"> | |
293 <!-- no extra options --> | |
294 </when> | |
295 <when value="NotPrimaryAlignment"> | |
296 <!-- no extra options --> | |
297 </when> | |
298 <when value="Platform454"> | |
299 <!-- no extra options --> | |
300 </when> | |
301 <when value="Platform"> | |
302 <param name="PLFilterName" type="text" value="" label="Discard reads with RG:PL attribute containing this string"/> | |
303 </when> | |
304 <when value="PlatformUnit"> | |
305 <!-- no extra options --> | |
306 </when> | |
307 <when value="ReadGroupBlackList"> | |
308 <!-- no extra options --> | |
309 </when> | |
310 <when value="ReadName"> | |
311 <param name="readName" type="text" value="" label="Filter out all reads except those with this read name"/> | |
312 </when> | |
313 <when value="ReadStrand"> | |
314 <param name="filterPositive" type="boolean" truevalue="--filterPositive" falsevalue="" label="Discard reads on the forward strand"/> | |
315 </when> | |
316 <when value="ReassignMappingQuality"> | |
317 <param name="default_mapping_quality" type="integer" value="60" label="Default read mapping quality to assign to all reads"/> | |
318 </when> | |
319 <when value="Sample"> | |
320 <param name="sample_to_keep" type="text" value="" label="The name of the sample(s) to keep, filtering out all others"/> | |
321 </when> | |
322 <when value="SingleReadGroup"> | |
323 <param name="read_group_to_keep" type="integer" value="76" label="The name of the read group to keep, filtering out all others"/> | |
324 </when> | |
325 <when value="UnmappedRead"> | |
326 <!-- no extra options --> | |
327 </when> | |
328 </conditional> | |
329 </repeat> | |
330 <repeat name="input_interval_repeat" title="Operate on Genomic intervals" help="-L,--intervals &lt;intervals&gt;"> | |
331 <param name="input_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" /> | |
332 </repeat> | |
333 <repeat name="input_exclude_interval_repeat" title="Exclude Genomic intervals" help="-XL,--excludeIntervals &lt;excludeIntervals&gt;"> | |
334 <param name="input_exclude_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" /> | |
335 </repeat> | |
336 | |
337 <param name="interval_set_rule" type="select" label="Interval set rule" help="-isr,--interval_set_rule &lt;interval_set_rule&gt;"> | |
338 <option value="UNION" selected="True">UNION</option> | |
339 <option value="INTERSECTION">INTERSECTION</option> | |
340 </param> | |
341 | |
342 <conditional name="downsampling_type"> | |
343 <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;"> | |
344 <option value="NONE" selected="True">NONE</option> | |
345 <option value="ALL_READS">ALL_READS</option> | |
346 <option value="BY_SAMPLE">BY_SAMPLE</option> | |
347 </param> | |
348 <when value="NONE"> | |
349 <!-- no more options here --> | |
350 </when> | |
351 <when value="ALL_READS"> | |
352 <conditional name="downsample_to_type"> | |
353 <param name="downsample_to_type_selector" type="select" label="Downsample method"> | |
354 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option> | |
355 <option value="downsample_to_coverage">Downsample by Coverage</option> | |
356 </param> | |
357 <when value="downsample_to_fraction"> | |
358 <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;"/> | |
359 </when> | |
360 <when value="downsample_to_coverage"> | |
361 <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;"/> | |
362 </when> | |
363 </conditional> | |
364 </when> | |
365 <when value="BY_SAMPLE"> | |
366 <conditional name="downsample_to_type"> | |
367 <param name="downsample_to_type_selector" type="select" label="Downsample method"> | |
368 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option> | |
369 <option value="downsample_to_coverage">Downsample by Coverage</option> | |
370 </param> | |
371 <when value="downsample_to_fraction"> | |
372 <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;"/> | |
373 </when> | |
374 <when value="downsample_to_coverage"> | |
375 <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;"/> | |
376 </when> | |
377 </conditional> | |
378 </when> | |
379 </conditional> | |
380 <param name="baq" type="select" label="Type of BAQ calculation to apply in the engine" help="-baq,--baq &lt;baq&gt;"> | |
381 <option value="OFF" selected="True">OFF</option> | |
382 <option value="CALCULATE_AS_NECESSARY">CALCULATE_AS_NECESSARY</option> | |
383 <option value="RECALCULATE">RECALCULATE</option> | |
384 </param> | |
385 <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;" /> | |
386 <param name="use_original_qualities" type="boolean" truevalue="--useOriginalQualities" falsevalue="" label="Use the original base quality scores from the OQ tag" help="-OQ,--useOriginalQualities" /> | |
387 <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;"/> | |
388 <param name="validation_strictness" type="select" label="How strict should we be with validation" help="-S,--validation_strictness &lt;validation_strictness&gt;"> | |
389 <option value="STRICT" selected="True">STRICT</option> | |
390 <option value="LENIENT">LENIENT</option> | |
391 <option value="SILENT">SILENT</option> | |
392 <!-- <option value="DEFAULT_STRINGENCY">DEFAULT_STRINGENCY</option> listed in docs, but not valid value...--> | |
393 </param> | |
394 <param name="interval_merging" type="select" label="Interval merging rule" help="-im,--interval_merging &lt;interval_merging&gt;"> | |
395 <option value="ALL" selected="True">ALL</option> | |
396 <option value="OVERLAPPING_ONLY">OVERLAPPING_ONLY</option> | |
397 </param> | |
398 | |
399 <repeat name="read_group_black_list_repeat" title="Read group black list" help="-rgbl,--read_group_black_list &lt;read_group_black_list&gt;"> | |
400 <conditional name="read_group_black_list_type"> | |
401 <param name="read_group_black_list_type_selector" type="select" label="Type of reads read group black list"> | |
402 <option value="file" selected="True">Filters in file</option> | |
403 <option value="text">Specify filters as a string</option> | |
404 </param> | |
405 <when value="file"> | |
406 <param name="read_group_black_list" type="data" format="txt" label="Read group black list file" /> | |
407 </when> | |
408 <when value="text"> | |
409 <param name="read_group_black_list" type="text" value="tag:string" label="Read group black list tag:string" /> | |
410 </when> | |
411 </conditional> | |
412 </repeat> | |
413 | |
414 <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"/> | |
415 <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
|
416 <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 | 417 |
418 </when> | |
419 </conditional> | |
420 | |
421 | |
422 <conditional name="analysis_param_type"> | |
423 <param name="analysis_param_type_selector" type="select" label="Basic or Advanced Analysis options"> | |
424 <option value="basic" selected="True">Basic</option> | |
425 <option value="advanced">Advanced</option> | |
426 </param> | |
427 <when value="basic"> | |
428 <!-- Do nothing here --> | |
429 </when> | |
430 <when value="advanced"> | |
431 | |
432 <repeat name="exclude_sample_file_repeat" title="Exclude Samples by file" help="-xl_sf,--exclude_sample_file &lt;exclude_sample_file&gt;"> | |
433 <param name="exclude_sample_file" type="data" format="txt" label="File containing a list of samples (one per line) to exclude"/> | |
434 </repeat> | |
435 | |
436 <repeat name="sample_file_repeat" title="Samples by file" help="-sf,--sample_file &lt;sample_file&gt;"> | |
437 <param name="sample_file" type="data" format="txt" label="File containing a list of samples (one per line) to include" /> | |
438 </repeat> | |
439 | |
440 <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;"/> | |
441 | |
442 <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" /> | |
443 | |
444 <param name="mendelian_violation" type="boolean" truevalue="--mendelianViolation" falsevalue="" label="output mendelian violation sites only" help="-mv,--mendelianViolation" /> | |
445 | |
446 <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;" /> | |
447 | |
448 <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;" /> | |
449 | |
450 <param name="restrict_alleles_to" type="select" label="Select only variants of a particular allelicity" help="-restrictAllelesTo,--restrictAllelesTo &lt;restrictAllelesTo&gt;"> | |
451 <option value="ALL" selected="True">ALL</option> | |
452 <option value="MULTIALLELIC">MULTIALLELIC</option> | |
453 <option value="BIALLELIC">BIALLELIC</option> | |
454 </param> | |
455 | |
456 <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;"> | |
457 <param name="sample_expressions" type="text" label="Regular expression"> | |
458 <sanitizer> | |
459 <valid initial="string.printable"> | |
460 <remove value="'"/> | |
461 </valid> | |
462 <mapping initial="none"/> | |
463 </sanitizer> | |
464 </param> | |
465 </repeat> | |
466 | |
467 <conditional name="select_random_type"> | |
468 <param name="select_random_type_selector" type="select" label="Select a random subset of variants"> | |
469 <option value="select_all" selected="True">Use all variants</option> | |
470 <option value="select_random_fraction">Select random fraction</option> | |
471 <option value="select_random_number">Select random number</option> | |
472 </param> | |
473 <when value="select_all"> | |
474 <!-- Do nothing here --> | |
475 </when> | |
476 <when value="select_random_fraction"> | |
477 <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;"/> | |
478 </when> | |
479 <when value="select_random_number"> | |
480 <param name="select_random_number" type="integer" value="0" label="Count" help="-number,--select_random_number &lt;select_random_number&gt;" /> | |
481 </when> | |
482 </conditional> | |
483 | |
484 <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" /> | |
485 | |
486 <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;"> | |
487 <option value="INDEL">INDEL</option> | |
488 <option value="SNP">SNP</option> | |
489 <option value="MIXED">MIXED</option> | |
490 <option value="MNP">MNP</option> | |
491 <option value="SYMBOLIC">SYMBOLIC</option> | |
492 <option value="NO_VARIATION">NO_VARIATION</option> | |
493 </param> | |
494 | |
495 </when> | |
496 </conditional> | |
497 | |
498 </inputs> | |
499 <outputs> | |
500 <data format="vcf" name="output_vcf" label="${tool.name} on ${on_string} (Variant File)" /> | |
501 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" /> | |
502 </outputs> | |
503 <tests> | |
504 <test> | |
505 <param name="reference_source_selector" value="history" /> | |
506 <param name="ref_file" value="phiX.fasta" ftype="fasta" /> | |
507 <param name="input_variant" value="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" ftype="vcf" /> | |
508 <param name="select_expressions_repeat" value="0" /> | |
509 <param name="input_concordance" /> | |
510 <param name="input_discordance" /> | |
511 <param name="exclude_sample_name_repeat" value="0" /> | |
512 <param name="exclude_filtered" /> | |
513 <param name="sample_name_repeat" value="0" /> | |
514 <param name="gatk_param_type_selector" value="basic" /> | |
515 <param name="analysis_param_type_selector" value="basic" /> | |
516 <output name="output_vcf" file="gatk/gatk_variant_select/gatk_variant_select_out_1.vcf" lines_diff="4" /> | |
517 <output name="output_log" file="gatk/gatk_variant_select/gatk_variant_select_out_1.log.contains" compare="contains" /> | |
518 </test> | |
519 </tests> | |
520 <help> | |
521 **What it does** | |
522 | |
523 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. | |
524 | |
525 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>`_. | |
526 | |
527 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_. | |
528 | |
529 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_. | |
530 | |
531 ------ | |
532 | |
533 **Inputs** | |
534 | |
535 GenomeAnalysisTK: SelectVariants accepts a VCF input file. | |
536 | |
537 | |
538 **Outputs** | |
539 | |
540 The output is in VCF format. | |
541 | |
542 | |
543 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats. | |
544 | |
545 ------- | |
546 | |
547 **Settings**:: | |
548 | |
549 | |
550 out VCFWriter stdout File to which variants should be written | |
551 variant RodBinding[VariantContext] NA Input VCF file | |
552 concordance RodBinding[VariantContext] none Output variants that were also called in this comparison track | |
553 discordance RodBinding[VariantContext] none Output variants that were not called in this comparison track | |
554 exclude_sample_file Set[File] [] File containing a list of samples (one per line) to exclude. Can be specified multiple times | |
555 exclude_sample_name Set[String] [] Exclude genotypes from this sample. Can be specified multiple times | |
556 excludeFiltered boolean false Don't include filtered loci in the analysis | |
557 excludeNonVariants boolean false Don't include loci found to be non-variant after the subsetting procedure | |
558 keepIDs File NA Only emit sites whose ID is found in this file (one ID per line) | |
559 keepOriginalAC boolean false Don't update the AC, AF, or AN values in the INFO field after selecting | |
560 mendelianViolation Boolean false output mendelian violation sites only | |
561 mvq double 0.0 Minimum genotype QUAL score for each trio member required to accept a site as a violation | |
562 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 | |
563 restrictAllelesTo NumberAlleleRestriction ALL Select only variants of a particular allelicity. Valid options are ALL (default), MULTIALLELIC or BIALLELIC | |
564 sample_expressions Set[String] NA Regular expression to select many samples from the ROD tracks provided. Can be specified multiple times | |
565 sample_file Set[File] NA File containing a list of samples (one per line) to include. Can be specified multiple times | |
566 sample_name Set[String] [] Include genotypes from this sample. Can be specified multiple times | |
567 select_expressions ArrayList[String] [] One or more criteria to use when selecting the data | |
568 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 | |
569 select_random_number int 0 Selects a number of variants at random from the variant track | |
570 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 | |
571 | |
572 ------ | |
573 | |
574 **Citation** | |
575 | |
576 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>`_ | |
577 | |
578 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>`_ | |
579 | |
580 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>`_ | |
581 | |
582 </help> | |
583 </tool> |