0
|
1 <macros>
|
2
|
2 <xml name="requirements">
|
|
3 <requirements>
|
|
4 <requirement type="package">gatk2</requirement>
|
|
5 <requirement type="package" version="0.1.19">samtools</requirement>
|
|
6 <requirement type="set_environment">GATK2_PATH</requirement>
|
|
7 <requirement type="set_environment">GATK2_SITE_OPTIONS</requirement>
|
|
8 </requirements>
|
|
9 </xml>
|
|
10 <token name="@THREADS@">
|
|
11 --num_threads \${GALAXY_SLOTS:-4}
|
|
12 </token>
|
|
13 <token name="@JAR_PATH@">
|
|
14 java -jar "\$GATK2_PATH/GenomeAnalysisTK.jar"
|
|
15 </token>
|
|
16 <token name="@DBSNP_OPTIONS@">
|
|
17 #if $dbsnp_rod_bind_type.dbsnp_rod_bind_type_selector == 'set_dbsnp'
|
|
18 -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}"
|
|
19 #end if
|
|
20 </token>
|
0
|
21 <template name="standard_gatk_options">
|
|
22 ##start standard gatk options
|
|
23 #if $gatk_param_type.gatk_param_type_selector == "advanced":
|
|
24 #for $pedigree in $gatk_param_type.pedigree:
|
|
25 -p '--pedigree "${pedigree.pedigree_file}"'
|
|
26 #end for
|
|
27 #for $pedigree_string in $gatk_param_type.pedigree_string_repeat:
|
|
28 -p '--pedigreeString "${pedigree_string.pedigree_string}"'
|
|
29 #end for
|
|
30 -p '--pedigreeValidationType "${gatk_param_type.pedigree_validation_type}"'
|
|
31 #set default_read_filters = ['MalformedRead']
|
|
32 #for $read_filter in $gatk_param_type.read_filter:
|
|
33 -p '
|
|
34 #if $read_filter.read_filter_type.read_filter_type_selector not in $default_read_filters:
|
|
35 --read_filter "${read_filter.read_filter_type.read_filter_type_selector}"
|
|
36 #end if
|
|
37 #for $name, $param in $read_filter.read_filter_type.iteritems():
|
|
38 #if $name not in [ "__current_case__", "read_filter_type_selector" ]:
|
|
39 #if hasattr( $param.input, 'truevalue' ):
|
|
40 ${param}
|
|
41 #else:
|
|
42 --${name} "${param}"
|
|
43 #end if
|
|
44 #end if
|
|
45 #end for
|
|
46 '
|
|
47 #end for
|
|
48 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_interval_repeat ):
|
|
49 -d "--intervals" "${input_intervals.input_intervals}" "${input_intervals.input_intervals.ext}" "input_intervals_${interval_count}"
|
|
50 #end for
|
|
51
|
|
52 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_exclude_interval_repeat ):
|
|
53 -d "--excludeIntervals" "${input_intervals.input_exclude_intervals}" "${input_intervals.input_exclude_intervals.ext}" "input_exlude_intervals_${interval_count}"
|
|
54 #end for
|
|
55
|
|
56 -p '--interval_set_rule "${gatk_param_type.interval_set_rule}"'
|
|
57
|
|
58 -p '--downsampling_type "${gatk_param_type.downsampling_type.downsampling_type_selector}"'
|
|
59 #if str( $gatk_param_type.downsampling_type.downsampling_type_selector ) != "NONE":
|
|
60 -p '--${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_type_selector} "${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_value}"'
|
|
61 #end if
|
|
62 -p '
|
|
63 --baq "${gatk_param_type.baq}"
|
|
64 --baqGapOpenPenalty "${gatk_param_type.baq_gap_open_penalty}"
|
|
65 ${gatk_param_type.use_original_qualities}
|
|
66 --defaultBaseQualities "${gatk_param_type.default_base_qualities}"
|
|
67 --validation_strictness "${gatk_param_type.validation_strictness}"
|
|
68 --interval_merging "${gatk_param_type.interval_merging}"
|
|
69 ${gatk_param_type.disable_experimental_low_memory_sharding}
|
|
70 ${gatk_param_type.fix_misencoded_quality_scores}
|
|
71 ${gatk_param_type.non_deterministic_random_seed}
|
|
72 '
|
|
73 #for $rg_black_list_count, $rg_black_list in enumerate( $gatk_param_type.read_group_black_list_repeat ):
|
|
74 #if $rg_black_list.read_group_black_list_type.read_group_black_list_type_selector == "file":
|
|
75 -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}"
|
|
76 #else
|
|
77 -p '--read_group_black_list "${rg_black_list.read_group_black_list_type.read_group_black_list}"'
|
|
78 #end if
|
|
79 #end for
|
|
80 #end if
|
|
81
|
|
82 #if str( $reference_source.reference_source_selector ) == "history":
|
|
83 -d "-R" "${reference_source.ref_file}" "${reference_source.ref_file.ext}" "gatk_input"
|
|
84 #end if
|
|
85 ##end standard gatk options
|
|
86 </template>
|
|
87 <xml name="gatk_param_type_conditional">
|
|
88 <conditional name="gatk_param_type">
|
|
89 <param name="gatk_param_type_selector" type="select" label="Basic or Advanced GATK options">
|
|
90 <option value="basic" selected="True">Basic</option>
|
|
91 <option value="advanced">Advanced</option>
|
|
92 </param>
|
|
93 <when value="basic">
|
|
94 <!-- Do nothing here -->
|
|
95 </when>
|
|
96 <when value="advanced">
|
|
97 <repeat name="pedigree" title="Pedigree file" help="-ped,--pedigree &lt;pedigree&gt;">
|
|
98 <param name="pedigree_file" type="data" format="txt" label="Pedigree files for samples"/>
|
|
99 </repeat>
|
|
100 <repeat name="pedigree_string_repeat" title="Pedigree string" help="-pedString,--pedigreeString &lt;pedigreeString&gt;">
|
|
101 <param name="pedigree_string" type="text" value="" label="Pedigree string for samples"/>
|
|
102 </repeat>
|
|
103 <param name="pedigree_validation_type" type="select" label="How strict should we be in validating the pedigree information" help="-pedValidationType,--pedigreeValidationType &lt;pedigreeValidationType&gt;">
|
|
104 <option value="STRICT" selected="True">STRICT</option>
|
|
105 <option value="SILENT">SILENT</option>
|
|
106 </param>
|
|
107 <repeat name="read_filter" title="Read Filter" help="-rf,--read_filter &lt;read_filter&gt;">
|
|
108 <conditional name="read_filter_type">
|
|
109 <param name="read_filter_type_selector" type="select" label="Read Filter Type">
|
|
110 <option value="BadCigar">BadCigar</option>
|
|
111 <option value="BadMate">BadMate</option>
|
|
112 <option value="DuplicateRead">DuplicateRead</option>
|
|
113 <option value="FailsVendorQualityCheck">FailsVendorQualityCheck</option>
|
|
114 <option value="MalformedRead">MalformedRead</option>
|
|
115 <option value="MappingQuality">MappingQuality</option>
|
|
116 <option value="MappingQualityUnavailable">MappingQualityUnavailable</option>
|
|
117 <option value="MappingQualityZero">MappingQualityZero</option>
|
|
118 <option value="MateSameStrand">MateSameStrand</option>
|
|
119 <option value="MaxInsertSize">MaxInsertSize</option>
|
|
120 <option value="MaxReadLength" selected="True">MaxReadLength</option>
|
|
121 <option value="MissingReadGroup">MissingReadGroup</option>
|
|
122 <option value="NoOriginalQualityScores">NoOriginalQualityScores</option>
|
|
123 <option value="NotPrimaryAlignment">NotPrimaryAlignment</option>
|
|
124 <option value="Platform454">Platform454</option>
|
|
125 <option value="Platform">Platform</option>
|
|
126 <option value="PlatformUnit">PlatformUnit</option>
|
|
127 <option value="ReadGroupBlackList">ReadGroupBlackList</option>
|
|
128 <option value="ReadName">ReadName</option>
|
|
129 <option value="ReadStrand">ReadStrand</option>
|
|
130 <option value="ReassignMappingQuality">ReassignMappingQuality</option>
|
|
131 <option value="Sample">Sample</option>
|
|
132 <option value="SingleReadGroup">SingleReadGroup</option>
|
|
133 <option value="UnmappedRead">UnmappedRead</option>
|
|
134 </param>
|
|
135 <when value="BadCigar">
|
|
136 <!-- no extra options -->
|
|
137 </when>
|
|
138 <when value="BadMate">
|
|
139 <!-- no extra options -->
|
|
140 </when>
|
|
141 <when value="DuplicateRead">
|
|
142 <!-- no extra options -->
|
|
143 </when>
|
|
144 <when value="FailsVendorQualityCheck">
|
|
145 <!-- no extra options -->
|
|
146 </when>
|
|
147 <when value="MalformedRead">
|
|
148 <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"/>
|
|
149 </when>
|
|
150 <when value="MappingQuality">
|
|
151 <param name="min_mapping_quality_score" type="integer" value="10" label="Minimum read mapping quality required to consider a read for calling"/>
|
|
152 </when>
|
|
153 <when value="MappingQualityUnavailable">
|
|
154 <!-- no extra options -->
|
|
155 </when>
|
|
156 <when value="MappingQualityZero">
|
|
157 <!-- no extra options -->
|
|
158 </when>
|
|
159 <when value="MateSameStrand">
|
|
160 <!-- no extra options -->
|
|
161 </when>
|
|
162 <when value="MaxInsertSize">
|
|
163 <param name="maxInsertSize" type="integer" value="1000000" label="Discard reads with insert size greater than the specified value"/>
|
|
164 </when>
|
|
165 <when value="MaxReadLength">
|
|
166 <param name="maxReadLength" type="integer" value="76" label="Max Read Length"/>
|
|
167 </when>
|
|
168 <when value="MissingReadGroup">
|
|
169 <!-- no extra options -->
|
|
170 </when>
|
|
171 <when value="NoOriginalQualityScores">
|
|
172 <!-- no extra options -->
|
|
173 </when>
|
|
174 <when value="NotPrimaryAlignment">
|
|
175 <!-- no extra options -->
|
|
176 </when>
|
|
177 <when value="Platform454">
|
|
178 <!-- no extra options -->
|
|
179 </when>
|
|
180 <when value="Platform">
|
|
181 <param name="PLFilterName" type="text" value="" label="Discard reads with RG:PL attribute containing this string"/>
|
|
182 </when>
|
|
183 <when value="PlatformUnit">
|
|
184 <!-- no extra options -->
|
|
185 </when>
|
|
186 <when value="ReadGroupBlackList">
|
|
187 <!-- no extra options -->
|
|
188 </when>
|
|
189 <when value="ReadName">
|
|
190 <param name="readName" type="text" value="" label="Filter out all reads except those with this read name"/>
|
|
191 </when>
|
|
192 <when value="ReadStrand">
|
|
193 <param name="filterPositive" type="boolean" truevalue="--filterPositive" falsevalue="" label="Discard reads on the forward strand"/>
|
|
194 </when>
|
|
195 <when value="ReassignMappingQuality">
|
|
196 <param name="default_mapping_quality" type="integer" value="60" label="Default read mapping quality to assign to all reads"/>
|
|
197 </when>
|
|
198 <when value="Sample">
|
|
199 <param name="sample_to_keep" type="text" value="" label="The name of the sample(s) to keep, filtering out all others"/>
|
|
200 </when>
|
|
201 <when value="SingleReadGroup">
|
|
202 <param name="read_group_to_keep" type="integer" value="76" label="The name of the read group to keep, filtering out all others"/>
|
|
203 </when>
|
|
204 <when value="UnmappedRead">
|
|
205 <!-- no extra options -->
|
|
206 </when>
|
|
207 </conditional>
|
|
208 </repeat>
|
|
209 <repeat name="input_interval_repeat" title="Operate on Genomic intervals" help="-L,--intervals &lt;intervals&gt;">
|
|
210 <param name="input_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" />
|
|
211 </repeat>
|
|
212 <repeat name="input_exclude_interval_repeat" title="Exclude Genomic intervals" help="-XL,--excludeIntervals &lt;excludeIntervals&gt;">
|
|
213 <param name="input_exclude_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" />
|
|
214 </repeat>
|
|
215
|
|
216 <param name="interval_set_rule" type="select" label="Interval set rule" help="-isr,--interval_set_rule &lt;interval_set_rule&gt;">
|
|
217 <option value="UNION" selected="True">UNION</option>
|
|
218 <option value="INTERSECTION">INTERSECTION</option>
|
|
219 </param>
|
|
220
|
|
221 <conditional name="downsampling_type">
|
|
222 <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;">
|
|
223 <option value="NONE" selected="True">NONE</option>
|
|
224 <option value="ALL_READS">ALL_READS</option>
|
|
225 <option value="BY_SAMPLE">BY_SAMPLE</option>
|
|
226 </param>
|
|
227 <when value="NONE">
|
|
228 <!-- no more options here -->
|
|
229 </when>
|
|
230 <when value="ALL_READS">
|
|
231 <conditional name="downsample_to_type">
|
|
232 <param name="downsample_to_type_selector" type="select" label="Downsample method">
|
|
233 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option>
|
|
234 <option value="downsample_to_coverage">Downsample by Coverage</option>
|
|
235 </param>
|
|
236 <when value="downsample_to_fraction">
|
|
237 <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;"/>
|
|
238 </when>
|
|
239 <when value="downsample_to_coverage">
|
|
240 <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;"/>
|
|
241 </when>
|
|
242 </conditional>
|
|
243 </when>
|
|
244 <when value="BY_SAMPLE">
|
|
245 <conditional name="downsample_to_type">
|
|
246 <param name="downsample_to_type_selector" type="select" label="Downsample method">
|
|
247 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option>
|
|
248 <option value="downsample_to_coverage">Downsample by Coverage</option>
|
|
249 </param>
|
|
250 <when value="downsample_to_fraction">
|
|
251 <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;"/>
|
|
252 </when>
|
|
253 <when value="downsample_to_coverage">
|
|
254 <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;"/>
|
|
255 </when>
|
|
256 </conditional>
|
|
257 </when>
|
|
258 </conditional>
|
|
259 <param name="baq" type="select" label="Type of BAQ calculation to apply in the engine" help="-baq,--baq &lt;baq&gt;">
|
|
260 <option value="OFF" selected="True">OFF</option>
|
|
261 <option value="CALCULATE_AS_NECESSARY">CALCULATE_AS_NECESSARY</option>
|
|
262 <option value="RECALCULATE">RECALCULATE</option>
|
|
263 </param>
|
|
264 <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;" />
|
|
265 <param name="use_original_qualities" type="boolean" truevalue="--useOriginalQualities" falsevalue="" label="Use the original base quality scores from the OQ tag" help="-OQ,--useOriginalQualities" />
|
|
266 <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;"/>
|
|
267 <param name="validation_strictness" type="select" label="How strict should we be with validation" help="-S,--validation_strictness &lt;validation_strictness&gt;">
|
|
268 <option value="STRICT" selected="True">STRICT</option>
|
|
269 <option value="LENIENT">LENIENT</option>
|
|
270 <option value="SILENT">SILENT</option>
|
|
271 <!-- <option value="DEFAULT_STRINGENCY">DEFAULT_STRINGENCY</option> listed in docs, but not valid value...-->
|
|
272 </param>
|
|
273 <param name="interval_merging" type="select" label="Interval merging rule" help="-im,--interval_merging &lt;interval_merging&gt;">
|
|
274 <option value="ALL" selected="True">ALL</option>
|
|
275 <option value="OVERLAPPING_ONLY">OVERLAPPING_ONLY</option>
|
|
276 </param>
|
|
277
|
|
278 <repeat name="read_group_black_list_repeat" title="Read group black list" help="-rgbl,--read_group_black_list &lt;read_group_black_list&gt;">
|
|
279 <conditional name="read_group_black_list_type">
|
|
280 <param name="read_group_black_list_type_selector" type="select" label="Type of reads read group black list">
|
|
281 <option value="file" selected="True">Filters in file</option>
|
|
282 <option value="text">Specify filters as a string</option>
|
|
283 </param>
|
|
284 <when value="file">
|
|
285 <param name="read_group_black_list" type="data" format="txt" label="Read group black list file" />
|
|
286 </when>
|
|
287 <when value="text">
|
|
288 <param name="read_group_black_list" type="text" value="tag:string" label="Read group black list tag:string" />
|
|
289 </when>
|
|
290 </conditional>
|
|
291 </repeat>
|
|
292
|
|
293 <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"/>
|
|
294 <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"/>
|
|
295 <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"/>
|
|
296
|
|
297 </when>
|
|
298 </conditional>
|
|
299 </xml>
|
|
300 <xml name="analysis_type_conditional">
|
|
301 <conditional name="analysis_param_type">
|
|
302 <param name="analysis_param_type_selector" type="select" label="Basic or Advanced Analysis options">
|
|
303 <option value="basic" selected="True">Basic</option>
|
|
304 <option value="advanced">Advanced</option>
|
|
305 </param>
|
|
306 <when value="basic">
|
|
307 <!-- Do nothing here -->
|
|
308 </when>
|
|
309 <when value="advanced">
|
|
310 <yield />
|
|
311 </when>
|
|
312 </conditional>
|
|
313 </xml>
|
|
314 <xml name="reference_source_selector_param">
|
|
315 <param name="reference_source_selector" type="select" label="Choose the source for the reference list">
|
|
316 <option value="cached">Locally cached</option>
|
|
317 <option value="history">History</option>
|
|
318 </param>
|
|
319 </xml>
|
2
|
320 <xml name="dbsnp_param">
|
|
321 <conditional name="dbsnp_rod_bind_type">
|
|
322 <param name="dbsnp_rod_bind_type_selector" type="select" label="Provide a dbSNP Reference-Ordered Data (ROD) file" help="-D,--dbsnp &lt;dbsnp&gt;">
|
|
323 <option value="set_dbsnp" selected="True">Set dbSNP</option>
|
|
324 <option value="exclude_dbsnp">Don't set dbSNP</option>
|
|
325 </param>
|
|
326 <when value="exclude_dbsnp" />
|
|
327 <when value="set_dbsnp">
|
|
328 <param name="dbsnp_input_rod" type="data" format="vcf" label="dbSNP ROD file" />
|
|
329 <param name="dbsnp_rod_name" type="text" value="dbsnp" label="dbsnp ROD name">
|
|
330 <validator type="regex" message="Value must be a not empty string composed by alphanumeric characters and underscores">^\w+$</validator>
|
|
331 </param>
|
|
332 </when>
|
|
333 </conditional>
|
|
334 </xml>
|
0
|
335 <token name="@CITATION_SECTION@">------
|
|
336
|
|
337 **Citation**
|
|
338
|
|
339 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>`_
|
|
340
|
|
341 If you use this tool in Galaxy, please cite Blankenberg D, et al. *In preparation.*
|
|
342
|
|
343 </token>
|
|
344 </macros>
|