Mercurial > repos > jjohnson > gatk2
annotate base_recalibrator.xml @ 21:6e641ee02851 draft
Fix base_recalibrator.xml option: no_standard_covs
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Fri, 28 Dec 2012 11:50:20 -0600 |
parents | 7533db8dfb5b |
children | bc18c5ad280f |
rev | line source |
---|---|
18
7533db8dfb5b
Update tool_dependencies to GATK v 2.3
Jim Johnson <jj@umn.edu>
parents:
16
diff
changeset
|
1 <tool id="gatk2_base_recalibrator" name="Base Recalibrator" version="0.0.5"> |
0 | 2 <description>on BAM files</description> |
3 <requirements> | |
18
7533db8dfb5b
Update tool_dependencies to GATK v 2.3
Jim Johnson <jj@umn.edu>
parents:
16
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 -d "-I" "${reference_source.input_bam}" "${reference_source.input_bam.ext}" "gatk_input" | |
11 #if str( $reference_source.input_bam.metadata.bam_index ) != "None": | |
12 -d "" "${reference_source.input_bam.metadata.bam_index}" "bam_index" "gatk_input" ##hardcode galaxy ext type as bam_index | |
13 #end if | |
14 -p 'java | |
15 -jar "\$GATK2_PATH/GenomeAnalysisTK.jar" | |
16 -T "BaseRecalibrator" | |
17 \$GATK2_SITE_OPTIONS | |
18
7533db8dfb5b
Update tool_dependencies to GATK v 2.3
Jim Johnson <jj@umn.edu>
parents:
16
diff
changeset
|
18 \$GATK2_THREAD_OPTIONS |
0 | 19 ##--num_threads 4 ##hard coded, for now |
20 ##-et "NO_ET" -K "/data/galaxy/appList/GenomeAnalysisTK-2.0-36-gf5c1c1a/gatk2_key_file" ##ET no phone home | |
21 ##-log "${output_log}" ##don't use this to log to file, instead directly capture stdout | |
22 #if $reference_source.reference_source_selector != "history": | |
23 -R "${reference_source.ref_file.fields.path}" | |
24 #end if | |
25 --out "${output_recal}" | |
26 ${standard_covs} | |
27 #if str( $covariates ) != "None": | |
28 #for $cov in str( $covariates ).split( ',' ): | |
29 -cov "${cov}" | |
30 #end for | |
31 #end if | |
32 ' | |
33 | |
34 #set $snp_dataset_provided = False | |
35 #set $rod_binding_names = dict() | |
36 #for $rod_binding in $rod_bind: | |
37 #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'custom': | |
38 #set $rod_bind_name = $rod_binding.rod_bind_type.custom_rod_name | |
39 #else | |
40 #set $rod_bind_name = $rod_binding.rod_bind_type.rod_bind_type_selector | |
41 #end if | |
42 #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'dbsnp': | |
43 #set $snp_dataset_provided = True | |
44 #end if | |
45 #set $rod_binding_names[$rod_bind_name] = $rod_binding_names.get( $rod_bind_name, -1 ) + 1 | |
46 -d "--knownSites:${rod_bind_name},%(file_type)s" "${rod_binding.rod_bind_type.input_rod}" "${rod_binding.rod_bind_type.input_rod.ext}" "input_${rod_bind_name}_${rod_binding_names[$rod_bind_name]}" | |
47 #end for | |
48 | |
49 ##start standard gatk options | |
50 #if $gatk_param_type.gatk_param_type_selector == "advanced": | |
51 #for $pedigree in $gatk_param_type.pedigree: | |
52 -p '--pedigree "${pedigree.pedigree_file}"' | |
53 #end for | |
54 #for $pedigree_string in $gatk_param_type.pedigree_string_repeat: | |
55 -p '--pedigreeString "${pedigree_string.pedigree_string}"' | |
56 #end for | |
57 -p '--pedigreeValidationType "${gatk_param_type.pedigree_validation_type}"' | |
58 #for $read_filter in $gatk_param_type.read_filter: | |
59 -p '--read_filter "${read_filter.read_filter_type.read_filter_type_selector}" | |
60 ###raise Exception( str( dir( $read_filter ) ) ) | |
61 #for $name, $param in $read_filter.read_filter_type.iteritems(): | |
62 #if $name not in [ "__current_case__", "read_filter_type_selector" ]: | |
63 #if hasattr( $param.input, 'truevalue' ): | |
64 ${param} | |
65 #else: | |
66 --${name} "${param}" | |
67 #end if | |
68 #end if | |
69 #end for | |
70 ' | |
71 #end for | |
72 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_interval_repeat ): | |
73 -d "--intervals" "${input_intervals.input_intervals}" "${input_intervals.input_intervals.ext}" "input_intervals_${interval_count}" | |
74 #end for | |
75 | |
76 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_exclude_interval_repeat ): | |
77 -d "--excludeIntervals" "${input_intervals.input_exclude_intervals}" "${input_intervals.input_exclude_intervals.ext}" "input_exlude_intervals_${interval_count}" | |
78 #end for | |
79 | |
80 -p '--interval_set_rule "${gatk_param_type.interval_set_rule}"' | |
81 | |
82 -p '--downsampling_type "${gatk_param_type.downsampling_type.downsampling_type_selector}"' | |
83 #if str( $gatk_param_type.downsampling_type.downsampling_type_selector ) != "NONE": | |
84 -p '--${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_type_selector} "${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_value}"' | |
85 #end if | |
86 -p ' | |
87 --baq "${gatk_param_type.baq}" | |
88 --baqGapOpenPenalty "${gatk_param_type.baq_gap_open_penalty}" | |
89 ${gatk_param_type.use_original_qualities} | |
90 --defaultBaseQualities "${gatk_param_type.default_base_qualities}" | |
91 --validation_strictness "${gatk_param_type.validation_strictness}" | |
92 --interval_merging "${gatk_param_type.interval_merging}" | |
93 ${gatk_param_type.disable_experimental_low_memory_sharding} | |
18
7533db8dfb5b
Update tool_dependencies to GATK v 2.3
Jim Johnson <jj@umn.edu>
parents:
16
diff
changeset
|
94 ${gatk_param_type.fix_misencoded_quality_scores} |
0 | 95 ${gatk_param_type.non_deterministic_random_seed} |
96 ' | |
97 #for $rg_black_list_count, $rg_black_list in enumerate( $gatk_param_type.read_group_black_list_repeat ): | |
98 #if $rg_black_list.read_group_black_list_type.read_group_black_list_type_selector == "file": | |
99 -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}" | |
100 #else | |
101 -p '--read_group_black_list "${rg_black_list.read_group_black_list_type.read_group_black_list}"' | |
102 #end if | |
103 #end for | |
104 #end if | |
105 | |
106 #if str( $reference_source.reference_source_selector ) == "history": | |
107 -d "-R" "${reference_source.ref_file}" "${reference_source.ref_file.ext}" "gatk_input" | |
108 #end if | |
109 ##end standard gatk options | |
110 | |
111 ##start analysis specific options | |
112 #if $analysis_param_type.analysis_param_type_selector == "advanced": | |
113 -p ' | |
114 #if $analysis_param_type.default_read_group_type.default_read_group_type_selector == "set": | |
115 --default_read_group "${analysis_param_type.default_read_group_type.default_read_group}" | |
116 #end if | |
117 #if str( $analysis_param_type.default_platform ) != "default": | |
118 --default_platform "${analysis_param_type.default_platform}" | |
119 #end if | |
120 #if str( $analysis_param_type.force_read_group_type.force_read_group_type_selector ) == "set": | |
121 --force_read_group "${analysis_param_type.force_read_group_type.force_read_group}" | |
122 #end if | |
123 #if str( $analysis_param_type.force_platform ) != "default": | |
124 --force_platform "${analysis_param_type.force_platform}" | |
125 #end if | |
126 ${analysis_param_type.exception_if_no_tile} | |
127 #if str( $analysis_param_type.solid_options_type.solid_options_type_selector ) == "set": | |
128 #if str( $analysis_param_type.solid_options_type.solid_recal_mode ) != "default": | |
129 --solid_recal_mode "${analysis_param_type.solid_options_type.solid_recal_mode}" | |
130 #end if | |
131 #if str( $analysis_param_type.solid_options_type.solid_nocall_strategy ) != "default": | |
132 --solid_nocall_strategy "${analysis_param_type.solid_options_type.solid_nocall_strategy}" | |
133 #end if | |
134 #end if | |
135 --window_size_nqs "${analysis_param_type.window_size_nqs}" | |
136 --homopolymer_nback "${analysis_param_type.homopolymer_nback}" | |
137 ' | |
138 #end if | |
139 #if not $snp_dataset_provided: | |
140 -p '--run_without_dbsnp_potentially_ruining_quality' | |
141 #end if | |
142 </command> | |
143 <inputs> | |
144 <conditional name="reference_source"> | |
145 <param name="reference_source_selector" type="select" label="Choose the source for the reference list"> | |
146 <option value="cached">Locally cached</option> | |
147 <option value="history">History</option> | |
148 </param> | |
149 <when value="cached"> | |
150 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &lt;input_file&gt;"> | |
151 <validator type="unspecified_build" /> | |
152 <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 --> | |
153 </param> | |
154 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;" > | |
155 <options from_data_table="gatk2_picard_indexes"> | |
156 <filter type="data_meta" key="dbkey" ref="input_bam" column="dbkey"/> | |
157 </options> | |
158 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> | |
159 </param> | |
160 </when> | |
161 <when value="history"> | |
162 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &lt;input_file&gt;" /> | |
163 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;"> | |
164 <options> | |
165 <filter type="data_meta" key="dbkey" ref="input_bam" /> | |
166 </options> | |
167 </param> | |
168 </when> | |
169 </conditional> | |
21
6e641ee02851
Fix base_recalibrator.xml option: no_standard_covs
Jim Johnson <jj@umn.edu>
parents:
18
diff
changeset
|
170 <param name="standard_covs" type="boolean" truevalue="" falsevalue="--no_standard_covs" checked="false" label="Do not use the standard set of covariates in addition to the ones selected" help="--no_standard_covs/-noStandard" /> |
0 | 171 <param name="covariates" type="select" multiple="True" display="checkboxes" label="Covariates to be used in the recalibration" help="-cov,--covariate &lt;covariate&gt;" > |
172 <!-- might we want to load the available covariates from an external configuration file, since additional ones can be added to local installs? --> | |
173 <option value="ReadGroupCovariate" /> | |
174 <option value="QualityScoreCovariate" /> | |
175 <option value="CycleCovariate" /> | |
176 <option value="DinucCovariate" /> | |
177 <!-- covariates below were pulled from list option --> | |
178 <option value="HomopolymerCovariate" /> | |
179 <option value="GCContentCovariate" /> | |
180 <option value="MappingQualityCovariate" /> | |
181 <option value="MinimumNQSCovariate" /> | |
182 <option value="PositionCovariate" /> | |
183 <option value="PrimerRoundCovariate" /> | |
184 <option value="TileCovariate" /> | |
185 </param> | |
186 | |
187 <repeat name="rod_bind" title="Binding for reference-ordered data" help="-knownSites,--knownSites &lt;knownSites&gt;"> | |
188 <conditional name="rod_bind_type"> | |
189 <param name="rod_bind_type_selector" type="select" label="Binding Type"> | |
190 <option value="dbsnp" selected="True">dbSNP</option> | |
191 <option value="snps">SNPs</option> | |
192 <option value="indels">INDELs</option> | |
193 <option value="mask">Mask</option> | |
194 <option value="custom">Custom</option> | |
195 </param> | |
196 <when value="dbsnp"> | |
197 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" /> | |
198 </when> | |
199 <when value="snps"> | |
200 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" /> | |
201 </when> | |
202 <when value="indels"> | |
203 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" /> | |
204 </when> | |
205 <when value="mask"> | |
206 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" /> | |
207 </when> | |
208 <when value="custom"> | |
209 <param name="custom_rod_name" type="text" value="Unknown" label="ROD Name"/> | |
210 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" /> | |
211 </when> | |
212 </conditional> | |
213 </repeat> | |
214 | |
215 <conditional name="gatk_param_type"> | |
216 <param name="gatk_param_type_selector" type="select" label="Basic or Advanced GATK options"> | |
217 <option value="basic" selected="True">Basic</option> | |
218 <option value="advanced">Advanced</option> | |
219 </param> | |
220 <when value="basic"> | |
221 <!-- Do nothing here --> | |
222 </when> | |
223 <when value="advanced"> | |
224 <repeat name="pedigree" title="Pedigree file" help="-ped,--pedigree &lt;pedigree&gt;"> | |
225 <param name="pedigree_file" type="data" format="txt" label="Pedigree files for samples"/> | |
226 </repeat> | |
227 <repeat name="pedigree_string_repeat" title="Pedigree string" help="-pedString,--pedigreeString &lt;pedigreeString&gt;"> | |
228 <param name="pedigree_string" type="text" value="" label="Pedigree string for samples"/> | |
229 </repeat> | |
230 <param name="pedigree_validation_type" type="select" label="How strict should we be in validating the pedigree information" help="-pedValidationType,--pedigreeValidationType &lt;pedigreeValidationType&gt;"> | |
231 <option value="STRICT" selected="True">STRICT</option> | |
232 <option value="SILENT">SILENT</option> | |
233 </param> | |
234 <repeat name="read_filter" title="Read Filter" help="-rf,--read_filter &lt;read_filter&gt;"> | |
235 <conditional name="read_filter_type"> | |
236 <param name="read_filter_type_selector" type="select" label="Read Filter Type"> | |
237 <option value="BadCigar">BadCigar</option> | |
238 <option value="BadMate">BadMate</option> | |
239 <option value="DuplicateRead">DuplicateRead</option> | |
240 <option value="FailsVendorQualityCheck">FailsVendorQualityCheck</option> | |
241 <option value="MalformedRead">MalformedRead</option> | |
242 <option value="MappingQuality">MappingQuality</option> | |
243 <option value="MappingQualityUnavailable">MappingQualityUnavailable</option> | |
244 <option value="MappingQualityZero">MappingQualityZero</option> | |
245 <option value="MateSameStrand">MateSameStrand</option> | |
246 <option value="MaxInsertSize">MaxInsertSize</option> | |
247 <option value="MaxReadLength" selected="True">MaxReadLength</option> | |
248 <option value="MissingReadGroup">MissingReadGroup</option> | |
249 <option value="NoOriginalQualityScores">NoOriginalQualityScores</option> | |
250 <option value="NotPrimaryAlignment">NotPrimaryAlignment</option> | |
251 <option value="Platform454">Platform454</option> | |
252 <option value="Platform">Platform</option> | |
253 <option value="PlatformUnit">PlatformUnit</option> | |
254 <option value="ReadGroupBlackList">ReadGroupBlackList</option> | |
255 <option value="ReadName">ReadName</option> | |
256 <option value="ReadStrand">ReadStrand</option> | |
257 <option value="ReassignMappingQuality">ReassignMappingQuality</option> | |
258 <option value="Sample">Sample</option> | |
259 <option value="SingleReadGroup">SingleReadGroup</option> | |
260 <option value="UnmappedRead">UnmappedRead</option> | |
261 </param> | |
262 <when value="BadCigar"> | |
263 <!-- no extra options --> | |
264 </when> | |
265 <when value="BadMate"> | |
266 <!-- no extra options --> | |
267 </when> | |
268 <when value="DuplicateRead"> | |
269 <!-- no extra options --> | |
270 </when> | |
271 <when value="FailsVendorQualityCheck"> | |
272 <!-- no extra options --> | |
273 </when> | |
274 <when value="MalformedRead"> | |
275 <!-- no extra options --> | |
276 </when> | |
277 <when value="MappingQuality"> | |
278 <param name="min_mapping_quality_score" type="integer" value="10" label="Minimum read mapping quality required to consider a read for calling"/> | |
279 </when> | |
280 <when value="MappingQualityUnavailable"> | |
281 <!-- no extra options --> | |
282 </when> | |
283 <when value="MappingQualityZero"> | |
284 <!-- no extra options --> | |
285 </when> | |
286 <when value="MateSameStrand"> | |
287 <!-- no extra options --> | |
288 </when> | |
289 <when value="MaxInsertSize"> | |
290 <param name="maxInsertSize" type="integer" value="1000000" label="Discard reads with insert size greater than the specified value"/> | |
291 </when> | |
292 <when value="MaxReadLength"> | |
293 <param name="maxReadLength" type="integer" value="76" label="Max Read Length"/> | |
294 </when> | |
295 <when value="MissingReadGroup"> | |
296 <!-- no extra options --> | |
297 </when> | |
298 <when value="NoOriginalQualityScores"> | |
299 <!-- no extra options --> | |
300 </when> | |
301 <when value="NotPrimaryAlignment"> | |
302 <!-- no extra options --> | |
303 </when> | |
304 <when value="Platform454"> | |
305 <!-- no extra options --> | |
306 </when> | |
307 <when value="Platform"> | |
308 <param name="PLFilterName" type="text" value="" label="Discard reads with RG:PL attribute containing this string"/> | |
309 </when> | |
310 <when value="PlatformUnit"> | |
311 <!-- no extra options --> | |
312 </when> | |
313 <when value="ReadGroupBlackList"> | |
314 <!-- no extra options --> | |
315 </when> | |
316 <when value="ReadName"> | |
317 <param name="readName" type="text" value="" label="Filter out all reads except those with this read name"/> | |
318 </when> | |
319 <when value="ReadStrand"> | |
320 <param name="filterPositive" type="boolean" truevalue="--filterPositive" falsevalue="" label="Discard reads on the forward strand"/> | |
321 </when> | |
322 <when value="ReassignMappingQuality"> | |
323 <param name="default_mapping_quality" type="integer" value="60" label="Default read mapping quality to assign to all reads"/> | |
324 </when> | |
325 <when value="Sample"> | |
326 <param name="sample_to_keep" type="text" value="" label="The name of the sample(s) to keep, filtering out all others"/> | |
327 </when> | |
328 <when value="SingleReadGroup"> | |
329 <param name="read_group_to_keep" type="integer" value="76" label="The name of the read group to keep, filtering out all others"/> | |
330 </when> | |
331 <when value="UnmappedRead"> | |
332 <!-- no extra options --> | |
333 </when> | |
334 </conditional> | |
335 </repeat> | |
336 <repeat name="input_interval_repeat" title="Operate on Genomic intervals" help="-L,--intervals &lt;intervals&gt;"> | |
337 <param name="input_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" /> | |
338 </repeat> | |
339 <repeat name="input_exclude_interval_repeat" title="Exclude Genomic intervals" help="-XL,--excludeIntervals &lt;excludeIntervals&gt;"> | |
340 <param name="input_exclude_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" /> | |
341 </repeat> | |
342 | |
343 <param name="interval_set_rule" type="select" label="Interval set rule" help="-isr,--interval_set_rule &lt;interval_set_rule&gt;"> | |
344 <option value="UNION" selected="True">UNION</option> | |
345 <option value="INTERSECTION">INTERSECTION</option> | |
346 </param> | |
347 | |
348 <conditional name="downsampling_type"> | |
349 <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;"> | |
350 <option value="NONE" selected="True">NONE</option> | |
351 <option value="ALL_READS">ALL_READS</option> | |
352 <option value="BY_SAMPLE">BY_SAMPLE</option> | |
353 </param> | |
354 <when value="NONE"> | |
355 <!-- no more options here --> | |
356 </when> | |
357 <when value="ALL_READS"> | |
358 <conditional name="downsample_to_type"> | |
359 <param name="downsample_to_type_selector" type="select" label="Downsample method"> | |
360 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option> | |
361 <option value="downsample_to_coverage">Downsample by Coverage</option> | |
362 </param> | |
363 <when value="downsample_to_fraction"> | |
364 <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;"/> | |
365 </when> | |
366 <when value="downsample_to_coverage"> | |
367 <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;"/> | |
368 </when> | |
369 </conditional> | |
370 </when> | |
371 <when value="BY_SAMPLE"> | |
372 <conditional name="downsample_to_type"> | |
373 <param name="downsample_to_type_selector" type="select" label="Downsample method"> | |
374 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option> | |
375 <option value="downsample_to_coverage">Downsample by Coverage</option> | |
376 </param> | |
377 <when value="downsample_to_fraction"> | |
378 <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;"/> | |
379 </when> | |
380 <when value="downsample_to_coverage"> | |
381 <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;"/> | |
382 </when> | |
383 </conditional> | |
384 </when> | |
385 </conditional> | |
386 <param name="baq" type="select" label="Type of BAQ calculation to apply in the engine" help="-baq,--baq &lt;baq&gt;"> | |
387 <option value="OFF" selected="True">OFF</option> | |
388 <option value="CALCULATE_AS_NECESSARY">CALCULATE_AS_NECESSARY</option> | |
389 <option value="RECALCULATE">RECALCULATE</option> | |
390 </param> | |
391 <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;" /> | |
392 <param name="use_original_qualities" type="boolean" truevalue="--useOriginalQualities" falsevalue="" label="Use the original base quality scores from the OQ tag" help="-OQ,--useOriginalQualities" /> | |
393 <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;"/> | |
394 <param name="validation_strictness" type="select" label="How strict should we be with validation" help="-S,--validation_strictness &lt;validation_strictness&gt;"> | |
395 <option value="STRICT" selected="True">STRICT</option> | |
396 <option value="LENIENT">LENIENT</option> | |
397 <option value="SILENT">SILENT</option> | |
398 <!-- <option value="DEFAULT_STRINGENCY">DEFAULT_STRINGENCY</option> listed in docs, but not valid value...--> | |
399 </param> | |
400 <param name="interval_merging" type="select" label="Interval merging rule" help="-im,--interval_merging &lt;interval_merging&gt;"> | |
401 <option value="ALL" selected="True">ALL</option> | |
402 <option value="OVERLAPPING_ONLY">OVERLAPPING_ONLY</option> | |
403 </param> | |
404 | |
405 <repeat name="read_group_black_list_repeat" title="Read group black list" help="-rgbl,--read_group_black_list &lt;read_group_black_list&gt;"> | |
406 <conditional name="read_group_black_list_type"> | |
407 <param name="read_group_black_list_type_selector" type="select" label="Type of reads read group black list"> | |
408 <option value="file" selected="True">Filters in file</option> | |
409 <option value="text">Specify filters as a string</option> | |
410 </param> | |
411 <when value="file"> | |
412 <param name="read_group_black_list" type="data" format="txt" label="Read group black list file" /> | |
413 </when> | |
414 <when value="text"> | |
415 <param name="read_group_black_list" type="text" value="tag:string" label="Read group black list tag:string" /> | |
416 </when> | |
417 </conditional> | |
418 </repeat> | |
419 | |
420 <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"/> | |
421 <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:
16
diff
changeset
|
422 <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 | 423 </when> |
424 </conditional> | |
425 | |
426 <conditional name="analysis_param_type"> | |
427 <param name="analysis_param_type_selector" type="select" label="Basic or Advanced Analysis options"> | |
428 <option value="basic" selected="True">Basic</option> | |
429 <option value="advanced">Advanced</option> | |
430 </param> | |
431 <when value="basic"> | |
432 <!-- Do nothing here --> | |
433 </when> | |
434 <when value="advanced"> | |
435 <conditional name="default_read_group_type"> | |
436 <param name="default_read_group_type_selector" type="select" label="Set default Read Group" help="--default_read_group"> | |
437 <option value="default" selected="True">Don't Set</option> | |
438 <option value="set">Set</option> | |
439 </param> | |
440 <when value="default"> | |
441 <!-- do nothing here --> | |
442 </when> | |
443 <when value="set"> | |
444 <param name="default_read_group" type="text" value="Unknown" label="If a read has no read group then default to the provided String"/> | |
445 </when> | |
446 </conditional> | |
447 <param name="default_platform" type="select" label="Set default Platform" help="--default_platform"> | |
448 <option value="default" selected="True">Don't Set</option> | |
449 <option value="illumina">illumina</option> | |
450 <option value="454">454</option> | |
451 <option value="solid">solid</option> | |
452 </param> | |
453 <conditional name="force_read_group_type"> | |
454 <param name="force_read_group_type_selector" type="select" label="Force Read Group" help="--force_read_group"> | |
455 <option value="default" selected="True">Don't Force</option> | |
456 <option value="set">Force</option> | |
457 </param> | |
458 <when value="default"> | |
459 <!-- do nothing here --> | |
460 </when> | |
461 <when value="set"> | |
462 <param name="force_read_group" type="text" value="Unknown" label="If provided, the read group ID of EVERY read will be forced to be the provided String."/> | |
463 </when> | |
464 </conditional> | |
465 <param name="force_platform" type="select" label="Force Platform" help="--force_platform"> | |
466 <option value="default" selected="True">Don't Force</option> | |
467 <option value="illumina">illumina</option> | |
468 <option value="454">454</option> | |
469 <option value="solid">solid</option> | |
470 </param> | |
471 <param name="exception_if_no_tile" type="boolean" checked="False" truevalue="--exception_if_no_tile" falsevalue="" label="Throw an exception when no tile can be found" help="--exception_if_no_tile"/> | |
472 <conditional name="solid_options_type"> | |
473 <param name="solid_options_type_selector" type="select" label="Set SOLiD specific options"> | |
474 <option value="default" selected="True">Don't Set</option> | |
475 <option value="set">Set</option> | |
476 </param> | |
477 <when value="default"> | |
478 <!-- do nothing here --> | |
479 </when> | |
480 <when value="set"> | |
481 <param name="solid_recal_mode" type="select" label="How should we recalibrate solid bases in which the reference was inserted" help="-sMode,--solid_recal_mode &lt;solid_recal_mode&gt;"> | |
482 <option value="default" selected="True">Don't set</option> | |
483 <option value="DO_NOTHING">DO_NOTHING</option> | |
484 <option value="SET_Q_ZERO">SET_Q_ZERO</option> | |
485 <option value="SET_Q_ZERO_BASE_N">SET_Q_ZERO_BASE_N</option> | |
486 <option value="REMOVE_REF_BIAS">REMOVE_REF_BIAS</option> | |
487 </param> | |
488 <param name="solid_nocall_strategy" type="select" label="Behavior of the recalibrator when it encounters no calls" help="-solid_nocall_strategy,--solid_nocall_strategy &lt;solid_nocall_strategy&gt;"> | |
489 <option value="default" selected="True">Don't set</option> | |
490 <option value="THROW_EXCEPTION">THROW_EXCEPTION</option> | |
491 <option value="LEAVE_READ_UNRECALIBRATED">LEAVE_READ_UNRECALIBRATED</option> | |
492 <option value="PURGE_READ">PURGE_READ</option> | |
493 </param> | |
494 </when> | |
495 </conditional> | |
496 <param name="window_size_nqs" type="integer" value="5" label="Window size used by MinimumNQSCovariate" help="window_size_nqs"/> | |
497 <param name="homopolymer_nback" type="integer" value="7" label="number of previous bases to look at in HomopolymerCovariate" help="-nback,--homopolymer_nback &lt;homopolymer_nback&gt;" /> | |
498 </when> | |
499 </conditional> | |
500 </inputs> | |
501 <outputs> | |
16
d56503a12975
base_recalibrator out_puts gatk_report
Jim Johnson <jj@umn.edu>
parents:
0
diff
changeset
|
502 <data format="gatk_report" name="output_recal" label="${tool.name} on ${on_string} (Covariate File)" /> |
0 | 503 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" /> |
504 </outputs> | |
505 <tests> | |
506 <test> | |
507 <param name="reference_source_selector" value="history" /> | |
508 <param name="ref_file" value="phiX.fasta" ftype="fasta" /> | |
509 <param name="input_bam" value="gatk/gatk_indel_realigner/gatk_indel_realigner_out_1.bam" ftype="bam" /> | |
510 <param name="rod_bind_type_selector" value="dbsnp" /> | |
511 <param name="input_rod" value="gatk/fake_phiX_variant_locations.bed" ftype="bed" /> | |
512 <param name="standard_covs" value="True" /> | |
513 <param name="covariates" value="ReadGroupCovariate,HomopolymerCovariate,MinimumNQSCovariate,PositionCovariate" /> | |
514 <param name="gatk_param_type_selector" value="basic" /> | |
515 <param name="analysis_param_type_selector" value="basic" /> | |
516 <output name="output_recal" file="gatk/gatk_count_covariates/gatk_count_covariates_out_1.csv" /> | |
517 <output name="output_log" file="gatk/gatk_count_covariates/gatk_count_covariates_out_1.log.contains" compare="contains" /> | |
518 </test> | |
519 </tests> | |
520 <help> | |
521 .. class:: warningmark | |
522 | |
523 "This calculation is critically dependent on being able to skip over known variant sites. Please provide a dbSNP ROD or a VCF file containing known sites of genetic variation." | |
524 However, if you do not provide this file, the '--run_without_dbsnp_potentially_ruining_quality' flag will be automatically used, and the command will be allowed to run. | |
525 | |
526 **What it does** | |
527 | |
528 This walker is designed to work as the first pass in a two-pass processing step. It does a by-locus traversal operating only at sites that are not in dbSNP. We assume that all reference mismatches we see are therefore errors and indicative of poor base quality. This walker generates tables based on various user-specified covariates (such as read group, reported quality score, cycle, and dinucleotide) Since there is a large amount of data one can then calculate an empirical probability of error given the particular covariates seen at this site, where p(error) = num mismatches / num observations The output file is a CSV list of (the several covariate values, num observations, num mismatches, empirical quality score) The first non-comment line of the output file gives the name of the covariates that were used for this calculation. Note: ReadGroupCovariate and QualityScoreCovariate are required covariates and will be added for the user regardless of whether or not they were specified Note: This walker is designed to be used in conjunction with TableRecalibrationWalker. | |
529 | |
530 For more information on base quality score recalibration using the GATK, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_bqsr_BaseRecalibrator.html>`_. | |
531 | |
532 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_. | |
533 | |
534 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_. | |
535 | |
536 ------ | |
537 | |
538 **Inputs** | |
539 | |
540 GenomeAnalysisTK: BaseRecalibrator accepts an aligned BAM input file. | |
541 | |
542 | |
543 **Outputs** | |
544 | |
545 The output is in CSV format. | |
546 | |
547 | |
548 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats. | |
549 | |
550 ------- | |
551 | |
552 **Settings**:: | |
553 | |
554 | |
555 default_read_group If a read has no read group then default to the provided String. | |
556 default_platform If a read has no platform then default to the provided String. Valid options are illumina, 454, and solid. | |
557 force_read_group If provided, the read group ID of EVERY read will be forced to be the provided String. This is useful to collapse all data into a single read group. | |
558 force_platform If provided, the platform of EVERY read will be forced to be the provided String. Valid options are illumina, 454, and solid. | |
559 window_size_nqs The window size used by MinimumNQSCovariate for its calculation | |
560 homopolymer_nback The number of previous bases to look at in HomopolymerCovariate | |
561 exception_if_no_tile If provided, TileCovariate will throw an exception when no tile can be found. The default behavior is to use tile = -1 | |
562 solid_recal_mode How should we recalibrate solid bases in whichthe reference was inserted? Options = DO_NOTHING, SET_Q_ZERO, SET_Q_ZERO_BASE_N, or REMOVE_REF_BIAS (DO_NOTHING|SET_Q_ZERO|SET_Q_ZERO_BASE_N|REMOVE_REF_BIAS) | |
563 solid_nocall_strategy Defines the behavior of the recalibrator when it encounters no calls in the color space. Options = THROW_EXCEPTION, LEAVE_READ_UNRECALIBRATED, or PURGE_READ (THROW_EXCEPTION|LEAVE_READ_UNRECALIBRATED|PURGE_READ) | |
564 recal_file Filename for the input covariates table recalibration .csv file | |
565 out The output CSV file | |
566 standard_covs Use the standard set of covariates in addition to the ones listed using the -cov argument | |
567 run_without_dbsnp_potentially_ruining_quality If specified, allows the recalibrator to be used without a dbsnp rod. Very unsafe and for expert users only. | |
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> |