11
|
1 <tool id="gatk2_haplotype_caller" name="Haplotype Caller" version="0.0.4">
|
|
2 <description>Call SNPs and indels simultaneously via local de-novo assembly of haplotypes in an active region</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="2.2">gatk</requirement>
|
|
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 "HaplotypeCaller"
|
|
17 -o "${output_vcf}"
|
|
18 ## \$GATK2_SITE_OPTIONS
|
|
19 ##-et "NO_ET" -K "/data/galaxy/appList/GenomeAnalysisTK-2.0-36-gf5c1c1a/gatk2_key_file" ##ET no phone home
|
|
20 ##--num_threads 4 ##not supported yet
|
|
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 #if str($input_recal) != 'None':
|
|
26 --BQSR "${input_recal}"
|
|
27 #end if
|
|
28 '
|
|
29 ##start standard gatk options
|
|
30 #if $gatk_param_type.gatk_param_type_selector == "advanced":
|
|
31 #for $pedigree in $gatk_param_type.pedigree:
|
|
32 -p '--pedigree "${pedigree.pedigree_file}"'
|
|
33 #end for
|
|
34 #for $pedigree_string in $gatk_param_type.pedigree_string_repeat:
|
|
35 -p '--pedigreeString "${pedigree_string.pedigree_string}"'
|
|
36 #end for
|
|
37 -p '--pedigreeValidationType "${gatk_param_type.pedigree_validation_type}"'
|
|
38 #for $read_filter in $gatk_param_type.read_filter:
|
|
39 -p '--read_filter "${read_filter.read_filter_type.read_filter_type_selector}"
|
|
40 ###raise Exception( str( dir( $read_filter ) ) )
|
|
41 #for $name, $param in $read_filter.read_filter_type.iteritems():
|
|
42 #if $name not in [ "__current_case__", "read_filter_type_selector" ]:
|
|
43 #if hasattr( $param.input, 'truevalue' ):
|
|
44 ${param}
|
|
45 #else:
|
|
46 --${name} "${param}"
|
|
47 #end if
|
|
48 #end if
|
|
49 #end for
|
|
50 '
|
|
51 #end for
|
|
52 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_interval_repeat ):
|
|
53 -d "--intervals" "${input_intervals.input_intervals}" "${input_intervals.input_intervals.ext}" "input_intervals_${interval_count}"
|
|
54 #end for
|
|
55
|
|
56 #for $interval_count, $input_intervals in enumerate( $gatk_param_type.input_exclude_interval_repeat ):
|
|
57 -d "--excludeIntervals" "${input_intervals.input_exclude_intervals}" "${input_intervals.input_exclude_intervals.ext}" "input_exlude_intervals_${interval_count}"
|
|
58 #end for
|
|
59
|
|
60 -p '--interval_set_rule "${gatk_param_type.interval_set_rule}"'
|
|
61
|
|
62 -p '--downsampling_type "${gatk_param_type.downsampling_type.downsampling_type_selector}"'
|
|
63 #if str( $gatk_param_type.downsampling_type.downsampling_type_selector ) != "NONE":
|
|
64 -p '--${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_type_selector} "${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_value}"'
|
|
65 #end if
|
|
66 -p '
|
|
67 --baq "${gatk_param_type.baq}"
|
|
68 --baqGapOpenPenalty "${gatk_param_type.baq_gap_open_penalty}"
|
|
69 ${gatk_param_type.use_original_qualities}
|
|
70 --defaultBaseQualities "${gatk_param_type.default_base_qualities}"
|
|
71 --validation_strictness "${gatk_param_type.validation_strictness}"
|
|
72 --interval_merging "${gatk_param_type.interval_merging}"
|
|
73 ${gatk_param_type.non_deterministic_random_seed}
|
|
74 '
|
|
75 #for $rg_black_list_count, $rg_black_list in enumerate( $gatk_param_type.read_group_black_list_repeat ):
|
|
76 #if $rg_black_list.read_group_black_list_type.read_group_black_list_type_selector == "file":
|
|
77 -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}"
|
|
78 #else
|
|
79 -p '--read_group_black_list "${rg_black_list.read_group_black_list_type.read_group_black_list}"'
|
|
80 #end if
|
|
81 #end for
|
|
82 #end if
|
|
83
|
|
84 #if str( $reference_source.reference_source_selector ) == "history":
|
|
85 -d "-R" "${reference_source.ref_file}" "${reference_source.ref_file.ext}" "gatk_input"
|
|
86 #end if
|
|
87 ##end standard gatk options
|
|
88
|
|
89 ##start analysis specific options
|
|
90 #if $analysis_param_type.analysis_param_type_selector == "advanced":
|
|
91 -p '
|
|
92 ## files
|
|
93 #if str($analysis_param_type.activeRegionIn) != 'None':
|
|
94 --activeRegionIn "$analysis_param_type.activeRegionIn"
|
|
95 #end if
|
|
96 #if str($analysis_param_type.alleles) != 'None':
|
|
97 --alleles "$analysis_param_type.alleles"
|
|
98 #end if
|
|
99 #if str($analysis_param_type.comp) != 'None':
|
|
100 --comp "$analysis_param_type.comp"
|
|
101 #end if
|
|
102 #if str($analysis_param_type.dbsnp) != 'None':
|
|
103 --dbsnp "$analysis_param_type.dbsnp"
|
|
104 #end if
|
|
105 ## text
|
|
106 #if len($analysis_param_type.annotation.__str__) > 0:
|
|
107 --annotation $analysis_param_type.annotation
|
|
108 #end if
|
|
109 #if len($analysis_param_type.excludeAnnotation.__str__) > 0:
|
|
110 --excludeAnnotation $analysis_param_type.excludeAnnotation
|
|
111 #end if
|
|
112 #if len($analysis_param_type.group.__str__) > 0:
|
|
113 --group $analysis_param_type.group
|
|
114 #end if
|
|
115 ## value setings
|
|
116 #if $analysis_param_type.contamination_fraction_to_filter.__str__.strip() != '':
|
|
117 --contamination_fraction_to_filter $analysis_param_type.contamination_fraction_to_filter
|
|
118 #end if
|
|
119 #if $analysis_param_type.downsampleRegion.__str__.strip() != '':
|
|
120 --downsampleRegion $analysis_param_type.downsampleRegion
|
|
121 #end if
|
|
122 #if $analysis_param_type.heterozygosity.__str__.strip() != '':
|
|
123 --heterozygosity $analysis_param_type.heterozygosity
|
|
124 #end if
|
|
125 #if $analysis_param_type.minPruning.__str__.strip() != '':
|
|
126 --minPruning $analysis_param_type.minPruning
|
|
127 #end if
|
|
128 #if $analysis_param_type.standard_min_confidence_threshold_for_calling.__str__.strip() != '':
|
|
129 --standard_min_confidence_threshold_for_calling $analysis_param_type.standard_min_confidence_threshold_for_calling
|
|
130 #end if
|
|
131 #if $analysis_param_type.standard_min_confidence_threshold_for_emitting.__str__.strip() != '':
|
|
132 --standard_min_confidence_threshold_for_emitting $analysis_param_type.standard_min_confidence_threshold_for_emitting
|
|
133 #end if
|
|
134 #if $analysis_param_type.gcpHMM.__str__.strip() != '':
|
|
135 --gcpHMM $analysis_param_type.gcpHMM
|
|
136 #end if
|
|
137 #if $analysis_param_type.max_alternate_alleles.__str__.strip() != '':
|
|
138 --max_alternate_alleles $analysis_param_type.max_alternate_alleles
|
|
139 #end if
|
|
140 ## mode selections
|
|
141 #if $analysis_param_type.genotyping_mode.__str__ != "None" and len($analysis_param_type.genotyping_mode.__str__) > 0:
|
|
142 --genotyping_mode $analysis_param_type.genotyping_mode
|
|
143 #end if
|
|
144 #if $analysis_param_type.output_mode.__str__ != "None" and len($analysis_param_type.output_mode.__str__) > 0:
|
|
145 --output_mode $analysis_param_type.output_mode
|
|
146 #end if
|
|
147 #if $analysis_param_type.pair_hmm_implementation.__str__ != "None" and len($analysis_param_type.pair_hmm_implementation.__str__) > 0:
|
|
148 --pair_hmm_implementation $analysis_param_type.pair_hmm_implementation
|
|
149 #end if
|
|
150 #if $analysis_param_type.p_nonref_model.__str__ != "None" and len($analysis_param_type.p_nonref_model.__str__) > 0:
|
|
151 --p_nonref_model $analysis_param_type.p_nonref_model
|
|
152 #end if
|
|
153 ## optional outputs
|
|
154 #if $analysis_param_type.activeRegionOut:
|
|
155 --activeRegionOut $active_region_out
|
|
156 #end if
|
|
157 #if $analysis_param_type.graphOutput:
|
|
158 --graphOutput $graph_out
|
|
159 #end if
|
|
160 ## flags
|
|
161 $analysis_param_type.useAllelesTrigger
|
|
162 $analysis_param_type.fullHaplotype
|
|
163 $analysis_param_type.genotypeFullActiveRegion
|
|
164 $analysis_param_type.debug
|
|
165 '
|
|
166 #end if
|
|
167 </command>
|
|
168 <inputs>
|
|
169 <param name="input_recal" type="data" format="csv" optional="true" label="Covariates table recalibration file" help="-BQSR,--BQSR &lt;recal_file&gt;" >
|
|
170 <help>The input covariates table file which enables on-the-fly base quality score recalibration.
|
|
171 Enables on-the-fly recalibrate of base qualities. The covariates tables are produced by the BaseQualityScoreRecalibrator tool.
|
|
172 Please be aware that one should only run recalibration with the covariates file created on the same input bam(s).
|
|
173 </help>
|
|
174 </param>
|
|
175 <conditional name="reference_source">
|
|
176 <param name="reference_source_selector" type="select" label="Choose the source for the reference list">
|
|
177 <option value="cached">Locally cached</option>
|
|
178 <option value="history">History</option>
|
|
179 </param>
|
|
180 <when value="cached">
|
|
181 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &lt;input_file&gt;">
|
|
182 <validator type="unspecified_build" />
|
|
183 <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 -->
|
|
184 </param>
|
|
185 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;" >
|
|
186 <options from_data_table="gatk2_picard_indexes">
|
|
187 <filter type="data_meta" key="dbkey" ref="input_bam" column="dbkey"/>
|
|
188 </options>
|
|
189 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
190 </param>
|
|
191 </when>
|
|
192 <when value="history">
|
|
193 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &lt;input_file&gt;" />
|
|
194 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;">
|
|
195 <options>
|
|
196 <filter type="data_meta" key="dbkey" ref="input_bam" />
|
|
197 </options>
|
|
198 </param>
|
|
199 </when>
|
|
200 </conditional>
|
|
201
|
|
202 <conditional name="gatk_param_type">
|
|
203 <param name="gatk_param_type_selector" type="select" label="Basic or Advanced GATK options">
|
|
204 <option value="basic" selected="True">Basic</option>
|
|
205 <option value="advanced">Advanced</option>
|
|
206 </param>
|
|
207 <when value="basic">
|
|
208 <!-- Do nothing here -->
|
|
209 </when>
|
|
210 <when value="advanced">
|
|
211 <repeat name="pedigree" title="Pedigree file" help="-ped,--pedigree &lt;pedigree&gt;">
|
|
212 <param name="pedigree_file" type="data" format="txt" label="Pedigree files for samples"/>
|
|
213 </repeat>
|
|
214 <repeat name="pedigree_string_repeat" title="Pedigree string" help="-pedString,--pedigreeString &lt;pedigreeString&gt;">
|
|
215 <param name="pedigree_string" type="text" value="" label="Pedigree string for samples"/>
|
|
216 </repeat>
|
|
217 <param name="pedigree_validation_type" type="select" label="How strict should we be in validating the pedigree information" help="-pedValidationType,--pedigreeValidationType &lt;pedigreeValidationType&gt;">
|
|
218 <option value="STRICT" selected="True">STRICT</option>
|
|
219 <option value="SILENT">SILENT</option>
|
|
220 </param>
|
|
221 <repeat name="read_filter" title="Read Filter" help="-rf,--read_filter &lt;read_filter&gt;">
|
|
222 <conditional name="read_filter_type">
|
|
223 <param name="read_filter_type_selector" type="select" label="Read Filter Type">
|
|
224 <option value="BadCigar">BadCigar</option>
|
|
225 <option value="BadMate">BadMate</option>
|
|
226 <option value="DuplicateRead">DuplicateRead</option>
|
|
227 <option value="FailsVendorQualityCheck">FailsVendorQualityCheck</option>
|
|
228 <option value="MalformedRead">MalformedRead</option>
|
|
229 <option value="MappingQuality">MappingQuality</option>
|
|
230 <option value="MappingQualityUnavailable">MappingQualityUnavailable</option>
|
|
231 <option value="MappingQualityZero">MappingQualityZero</option>
|
|
232 <option value="MateSameStrand">MateSameStrand</option>
|
|
233 <option value="MaxInsertSize">MaxInsertSize</option>
|
|
234 <option value="MaxReadLength" selected="True">MaxReadLength</option>
|
|
235 <option value="MissingReadGroup">MissingReadGroup</option>
|
|
236 <option value="NoOriginalQualityScores">NoOriginalQualityScores</option>
|
|
237 <option value="NotPrimaryAlignment">NotPrimaryAlignment</option>
|
|
238 <option value="Platform454">Platform454</option>
|
|
239 <option value="Platform">Platform</option>
|
|
240 <option value="PlatformUnit">PlatformUnit</option>
|
|
241 <option value="ReadGroupBlackList">ReadGroupBlackList</option>
|
|
242 <option value="ReadName">ReadName</option>
|
|
243 <option value="ReadStrand">ReadStrand</option>
|
|
244 <option value="ReassignMappingQuality">ReassignMappingQuality</option>
|
|
245 <option value="Sample">Sample</option>
|
|
246 <option value="SingleReadGroup">SingleReadGroup</option>
|
|
247 <option value="UnmappedRead">UnmappedRead</option>
|
|
248 </param>
|
|
249 <when value="BadCigar">
|
|
250 <!-- no extra options -->
|
|
251 </when>
|
|
252 <when value="BadMate">
|
|
253 <!-- no extra options -->
|
|
254 </when>
|
|
255 <when value="DuplicateRead">
|
|
256 <!-- no extra options -->
|
|
257 </when>
|
|
258 <when value="FailsVendorQualityCheck">
|
|
259 <!-- no extra options -->
|
|
260 </when>
|
|
261 <when value="MalformedRead">
|
|
262 <!-- no extra options -->
|
|
263 </when>
|
|
264 <when value="MappingQuality">
|
|
265 <param name="min_mapping_quality_score" type="integer" value="10" label="Minimum read mapping quality required to consider a read for calling"/>
|
|
266 </when>
|
|
267 <when value="MappingQualityUnavailable">
|
|
268 <!-- no extra options -->
|
|
269 </when>
|
|
270 <when value="MappingQualityZero">
|
|
271 <!-- no extra options -->
|
|
272 </when>
|
|
273 <when value="MateSameStrand">
|
|
274 <!-- no extra options -->
|
|
275 </when>
|
|
276 <when value="MaxInsertSize">
|
|
277 <param name="maxInsertSize" type="integer" value="1000000" label="Discard reads with insert size greater than the specified value"/>
|
|
278 </when>
|
|
279 <when value="MaxReadLength">
|
|
280 <param name="maxReadLength" type="integer" value="76" label="Max Read Length"/>
|
|
281 </when>
|
|
282 <when value="MissingReadGroup">
|
|
283 <!-- no extra options -->
|
|
284 </when>
|
|
285 <when value="NoOriginalQualityScores">
|
|
286 <!-- no extra options -->
|
|
287 </when>
|
|
288 <when value="NotPrimaryAlignment">
|
|
289 <!-- no extra options -->
|
|
290 </when>
|
|
291 <when value="Platform454">
|
|
292 <!-- no extra options -->
|
|
293 </when>
|
|
294 <when value="Platform">
|
|
295 <param name="PLFilterName" type="text" value="" label="Discard reads with RG:PL attribute containing this string"/>
|
|
296 </when>
|
|
297 <when value="PlatformUnit">
|
|
298 <!-- no extra options -->
|
|
299 </when>
|
|
300 <when value="ReadGroupBlackList">
|
|
301 <!-- no extra options -->
|
|
302 </when>
|
|
303 <when value="ReadName">
|
|
304 <param name="readName" type="text" value="" label="Filter out all reads except those with this read name"/>
|
|
305 </when>
|
|
306 <when value="ReadStrand">
|
|
307 <param name="filterPositive" type="boolean" truevalue="--filterPositive" falsevalue="" label="Discard reads on the forward strand"/>
|
|
308 </when>
|
|
309 <when value="ReassignMappingQuality">
|
|
310 <param name="default_mapping_quality" type="integer" value="60" label="Default read mapping quality to assign to all reads"/>
|
|
311 </when>
|
|
312 <when value="Sample">
|
|
313 <param name="sample_to_keep" type="text" value="" label="The name of the sample(s) to keep, filtering out all others"/>
|
|
314 </when>
|
|
315 <when value="SingleReadGroup">
|
|
316 <param name="read_group_to_keep" type="integer" value="76" label="The name of the read group to keep, filtering out all others"/>
|
|
317 </when>
|
|
318 <when value="UnmappedRead">
|
|
319 <!-- no extra options -->
|
|
320 </when>
|
|
321 </conditional>
|
|
322 </repeat>
|
|
323 <repeat name="input_interval_repeat" title="Operate on Genomic intervals" help="-L,--intervals &lt;intervals&gt;">
|
|
324 <param name="input_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" />
|
|
325 </repeat>
|
|
326 <repeat name="input_exclude_interval_repeat" title="Exclude Genomic intervals" help="-XL,--excludeIntervals &lt;excludeIntervals&gt;">
|
|
327 <param name="input_exclude_intervals" type="data" format="bed,gatk_interval,picard_interval_list,vcf" label="Genomic intervals" />
|
|
328 </repeat>
|
|
329
|
|
330 <param name="interval_set_rule" type="select" label="Interval set rule" help="-isr,--interval_set_rule &lt;interval_set_rule&gt;">
|
|
331 <option value="UNION" selected="True">UNION</option>
|
|
332 <option value="INTERSECTION">INTERSECTION</option>
|
|
333 </param>
|
|
334
|
|
335 <conditional name="downsampling_type">
|
|
336 <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;">
|
|
337 <option value="NONE" selected="True">NONE</option>
|
|
338 <option value="ALL_READS">ALL_READS</option>
|
|
339 <option value="BY_SAMPLE">BY_SAMPLE</option>
|
|
340 </param>
|
|
341 <when value="NONE">
|
|
342 <!-- no more options here -->
|
|
343 </when>
|
|
344 <when value="ALL_READS">
|
|
345 <conditional name="downsample_to_type">
|
|
346 <param name="downsample_to_type_selector" type="select" label="Downsample method">
|
|
347 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option>
|
|
348 <option value="downsample_to_coverage">Downsample by Coverage</option>
|
|
349 </param>
|
|
350 <when value="downsample_to_fraction">
|
|
351 <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;"/>
|
|
352 </when>
|
|
353 <when value="downsample_to_coverage">
|
|
354 <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;"/>
|
|
355 </when>
|
|
356 </conditional>
|
|
357 </when>
|
|
358 <when value="BY_SAMPLE">
|
|
359 <conditional name="downsample_to_type">
|
|
360 <param name="downsample_to_type_selector" type="select" label="Downsample method">
|
|
361 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option>
|
|
362 <option value="downsample_to_coverage">Downsample by Coverage</option>
|
|
363 </param>
|
|
364 <when value="downsample_to_fraction">
|
|
365 <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;"/>
|
|
366 </when>
|
|
367 <when value="downsample_to_coverage">
|
|
368 <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;"/>
|
|
369 </when>
|
|
370 </conditional>
|
|
371 </when>
|
|
372 </conditional>
|
|
373 <param name="baq" type="select" label="Type of BAQ calculation to apply in the engine" help="-baq,--baq &lt;baq&gt;">
|
|
374 <option value="OFF" selected="True">OFF</option>
|
|
375 <option value="CALCULATE_AS_NECESSARY">CALCULATE_AS_NECESSARY</option>
|
|
376 <option value="RECALCULATE">RECALCULATE</option>
|
|
377 </param>
|
|
378 <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;" />
|
|
379 <param name="use_original_qualities" type="boolean" truevalue="--useOriginalQualities" falsevalue="" label="Use the original base quality scores from the OQ tag" help="-OQ,--useOriginalQualities" />
|
|
380 <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;"/>
|
|
381 <param name="validation_strictness" type="select" label="How strict should we be with validation" help="-S,--validation_strictness &lt;validation_strictness&gt;">
|
|
382 <option value="STRICT" selected="True">STRICT</option>
|
|
383 <option value="LENIENT">LENIENT</option>
|
|
384 <option value="SILENT">SILENT</option>
|
|
385 <!-- <option value="DEFAULT_STRINGENCY">DEFAULT_STRINGENCY</option> listed in docs, but not valid value...-->
|
|
386 </param>
|
|
387 <param name="interval_merging" type="select" label="Interval merging rule" help="-im,--interval_merging &lt;interval_merging&gt;">
|
|
388 <option value="ALL" selected="True">ALL</option>
|
|
389 <option value="OVERLAPPING_ONLY">OVERLAPPING_ONLY</option>
|
|
390 </param>
|
|
391
|
|
392 <repeat name="read_group_black_list_repeat" title="Read group black list" help="-rgbl,--read_group_black_list &lt;read_group_black_list&gt;">
|
|
393 <conditional name="read_group_black_list_type">
|
|
394 <param name="read_group_black_list_type_selector" type="select" label="Type of reads read group black list">
|
|
395 <option value="file" selected="True">Filters in file</option>
|
|
396 <option value="text">Specify filters as a string</option>
|
|
397 </param>
|
|
398 <when value="file">
|
|
399 <param name="read_group_black_list" type="data" format="txt" label="Read group black list file" />
|
|
400 </when>
|
|
401 <when value="text">
|
|
402 <param name="read_group_black_list" type="text" value="tag:string" label="Read group black list tag:string" />
|
|
403 </when>
|
|
404 </conditional>
|
|
405 </repeat>
|
|
406
|
|
407 <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"/>
|
|
408
|
|
409 </when>
|
|
410 </conditional>
|
|
411
|
|
412 <conditional name="analysis_param_type">
|
|
413 <param name="analysis_param_type_selector" type="select" label="Basic or Advanced Analysis options">
|
|
414 <option value="basic" selected="True">Basic</option>
|
|
415 <option value="advanced">Advanced</option>
|
|
416 </param>
|
|
417 <when value="basic">
|
|
418 <!-- Do nothing here -->
|
|
419 </when>
|
|
420 <when value="advanced">
|
|
421
|
|
422 <param name="activeRegionIn" type="data" format="bed,gatk_interval,picard_interval_list,vcf" optional="true" label="activeRegionIn" help="--activeRegionIn / -AR Use this interval list file as the active regions to process"/>
|
|
423 <param name="activeRegionOut" type="boolean" checked="False" truevalue="" falsevalue="" label="activeRegionOut" help="--activeRegionOut / -ARO Output the active region to an interval list file"/>
|
|
424 <param name="alleles" type="data" format="vcf" optional="true" label="alleles" help="--alleles / -alleles The set of alleles at which to genotype when --genotyping_mode is GENOTYPE_GIVEN_ALLELES"/>
|
|
425 <param name="annotation" type="text" value="" optional="true" label="annotation" help="--annotation / -A One or more specific annotations to apply to variant calls default: ClippingRankSumTest"/>
|
|
426 <param name="comp" type="data" format="vcf" optional="true" label="comp" help="--comp / -comp comparison VCF file"/>
|
|
427 <param name="contamination_fraction_to_filter" type="float" value="0.05" optional="true" label="contamination_fraction_to_filter" help="--contamination_fraction_to_filter / -contamination Fraction of contamination in sequencing data (for all samples) to aggressively remove">
|
|
428 <validator type="in_range" message="value between 0.00 and 1.00" min="0" max="1"/>
|
|
429 </param>
|
|
430 <param name="dbsnp" type="data" format="vcf" optional="true" label="dbsnp" help="--dbsnp / -D dbSNP file"/>
|
|
431 <param name="debug" type="boolean" checked="False" truevalue="-debug" falsevalue="" label="debug" help="--debug / -debug If specified, print out very verbose debug information about each triggering active region"/>
|
|
432 <param name="downsampleRegion" type="integer" value="1000" optional="true" label="downsampleRegion" help="--downsampleRegion / -dr coverage, per-sample, to downsample each active region to"/>
|
|
433 <param name="excludeAnnotation" type="text" optional="true" label="excludeAnnotation" help="--excludeAnnotation / -XA One or more specific annotations to exclude"/>
|
|
434 <param name="genotyping_mode" type="select" optional="true" label="genotyping_mode" help="--genotyping_mode / -gt_mode Specifies how to determine the alternate alleles to use for genotyping">
|
|
435 <option value="DISCOVERY" selected="True">DISCOVERY</option>
|
|
436 <option value="GENOTYPE_GIVEN_ALLELES">GENOTYPE_GIVEN_ALLELES</option>
|
|
437 </param>
|
|
438 <param name="graphOutput" type="boolean" checked="False" truevalue="" falsevalue="" label="graphOutput" help="--graphOutput / -graph File to which debug assembly graph information should be written"/>
|
|
439 <param name="group" type="text" optional="true" label="group" help="--group / -G One or more classes/groups of annotations to apply to variant calls"/>
|
|
440 <param name="heterozygosity" type="float" value="0.0010" optional="true" label="heterozygosity" help="--heterozygosity / -hets Heterozygosity value used to compute prior likelihoods for any locus"/>
|
13
|
441 <param name="minPruning" type="integer" value="1" optional="true" label="minPruning" help="--minPruning / -minPruning The minimum allowed pruning factor in assembly graph. Paths with >= X supporting kmers are pruned from the graph">
|
11
|
442 <validator type="in_range" message="value between 0 and 127" min="0" max="127"/>
|
|
443 </param>
|
|
444 <param name="output_mode" type="select" optional="true" label="output_mode" help="--output_mode / -out_mode Specifies which type of calls we should output">
|
|
445 <option value="EMIT_VARIANTS_ONLY" selected="True">EMIT_VARIANTS_ONLY</option>
|
|
446 <option value="EMIT_ALL_CONFIDENT_SITES">EMIT_ALL_CONFIDENT_SITES</option>
|
|
447 <option value="EMIT_ALL_SITES">EMIT_ALL_SITES</option>
|
|
448 </param>
|
|
449 <param name="pair_hmm_implementation" type="select" optional="true" label="pair_hmm_implementation" help="--pair_hmm_implementation / -pairHMM The PairHMM implementation to use for genotype likelihood calculations">
|
|
450 <option value="EXACT">EXACT</option>
|
|
451 <option value="ORIGINAL">ORIGINAL</option>
|
|
452 <option value="CACHING">CACHING</option>
|
|
453 <option value="LOGLESS_CACHING" selected="True">LOGLESS_CACHING</option>
|
|
454 </param>
|
|
455 <param name="standard_min_confidence_threshold_for_calling" type="float" value="30.0" optional="true" label="standard_min_confidence_threshold_for_calling" help="--standard_min_confidence_threshold_for_calling / -stand_call_conf The minimum phred-scaled confidence threshold at which variants should be called"/>
|
|
456 <param name="standard_min_confidence_threshold_for_emitting" type="float" value="30.0" optional="true" label="standard_min_confidence_threshold_for_emitting" help="--standard_min_confidence_threshold_for_emitting / -stand_emit_conf The minimum phred-scaled confidence threshold at which variants should be emitted (and filtered with LowQual if less than the calling threshold)"/>
|
|
457 <param name="useAllelesTrigger" type="boolean" checked="False" truevalue="-allelesTrigger" falsevalue="" label="useAllelesTrigger" help="--useAllelesTrigger / -allelesTrigger If specified, use additional trigger on variants found in an external alleles file"/>
|
|
458 <param name="fullHaplotype" type="boolean" checked="False" truevalue="-fullHaplotype" falsevalue="" label="fullHaplotype" help="--fullHaplotype / -fullHaplotype If specified, output the full haplotype sequence instead of converting to individual variants w.r.t. the reference"/>
|
|
459 <param name="gcpHMM" type="integer" value="10" optional="true" label="gcpHMM" help="--gcpHMM / -gcpHMM Flat gap continuation penalty for use in the Pair HMM"/>
|
|
460 <param name="genotypeFullActiveRegion" type="boolean" checked="False" truevalue="-genotypeFullActiveRegion" falsevalue="" label="genotypeFullActiveRegion" help="--genotypeFullActiveRegion / -genotypeFullActiveRegion If specified, alternate alleles are considered to be the full active region for the purposes of genotyping"/>
|
|
461 <param name="max_alternate_alleles" type="integer" value="6" optional="true" label="max_alternate_alleles" help="--max_alternate_alleles / -maxAltAlleles Maximum number of alternate alleles to genotype"/>
|
|
462 <param name="p_nonref_model" type="select" optional="true" label="p_nonref_model" help="--p_nonref_model / -pnrm Non-reference probability calculation model to employ">
|
|
463 <option value="EXACT_INDEPENDENT" selected="True">EXACT_INDEPENDENT experimental implementation - for testing only</option>
|
|
464 <option value="EXACT_REFERENCE">EXACT_REFERENCE reference implementation of multi-allelic EXACT model. Extremely slow for many alternate alleles</option>
|
|
465 <option value="EXACT_ORIGINAL">EXACT_ORIGINAL original biallelic exact model, for testing only</option>
|
|
466 <option value="EXACT_GENERAL_PLOIDY">implementation that supports any sample ploidy</option>
|
|
467 </param>
|
|
468
|
|
469 </when>
|
13
|
470 </conditional>
|
11
|
471 </inputs>
|
|
472 <outputs>
|
|
473 <data format="vcf" name="output_vcf" label="${tool.name} on ${on_string} (VCF)" />
|
|
474 <data format="vcf" name="graph_out" label="${tool.name} on ${on_string} graph" >
|
13
|
475 <filter>analysis_param_type['analysis_param_type_selector'] == "advanced" and analysis_param_type['graphOutput'] == True</filter>
|
11
|
476 </data>
|
|
477 <data format="vcf" name="active_region_out" label="${tool.name} on ${on_string} activeRegion" >
|
13
|
478 <filter>analysis_param_type['analysis_param_type_selector'] == "advanced" and analysis_param_type['activeRegionOut'] == True</filter>
|
11
|
479 </data>
|
|
480 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
|
|
481 </outputs>
|
|
482 <tests>
|
|
483 <test>
|
|
484 <param name="input_recal" value="gatk/gatk_count_covariates/gatk_count_covariates_out_1.csv" ftype="csv" />
|
|
485 <param name="reference_source_selector" value="history" />
|
|
486 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
|
|
487 <param name="input_bam" value="gatk/gatk_indel_realigner/gatk_indel_realigner_out_1.bam" ftype="bam" />
|
|
488 <param name="gatk_param_type_selector" value="basic" />
|
|
489 <param name="analysis_param_type_selector" value="basic" />
|
|
490 <output name="output_bam" file="gatk/gatk_table_recalibration/gatk_table_recalibration_out_1.bam" ftype="bam" lines_diff="4" />
|
|
491 <output name="output_log" file="gatk/gatk_table_recalibration/gatk_table_recalibration_out_1.log.contains" compare="contains" />
|
|
492 </test>
|
|
493 </tests>
|
|
494 <help>
|
|
495 **What it does**
|
|
496
|
14
|
497 **HaplotypeCaller**
|
|
498 calls SNPs and indels simultaneously via local de-novo assembly of haplotypes in an active region.
|
11
|
499 Haplotypes are evaluated using an affine gap penalty Pair HMM.
|
|
500
|
|
501 For more information on using read based compression in the GATK, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_haplotypecaller_HaplotypeCaller.html>`_.
|
|
502
|
|
503 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_.
|
|
504
|
|
505 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_.
|
|
506
|
|
507 ------
|
|
508
|
|
509 **Inputs**
|
|
510
|
14
|
511 GenomeAnalysisTK: PrintReads accepts aligned BAM files.
|
11
|
512
|
|
513
|
|
514 **Outputs**
|
|
515
|
|
516 The output is a VCF file with raw, unrecalibrated SNP and indel calls.
|
|
517
|
|
518
|
|
519 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats.
|
|
520
|
|
521 -------
|
|
522
|
|
523 **Settings**::
|
|
524
|
12
|
525 activeRegionIn Use this interval list file as the active regions to process
|
|
526 activeRegionOut Output the active region to this interval list file
|
|
527 alleles The set of alleles at which to genotype when --genotyping_mode is GENOTYPE_GIVEN_ALLELES
|
|
528 annotation One or more specific annotations to apply to variant calls
|
|
529 comp comparison VCF file
|
|
530 contamination Fraction of contamination in sequencing data (for all samples) to aggressively remove
|
|
531 dbsnp dbSNP file
|
|
532 debug If specified, print out very verbose debug information about each triggering active region
|
|
533 downsampleRegion coverage, per-sample, to downsample each active region to
|
|
534 excludeAnnotation One or more specific annotations to exclude
|
|
535 genotyping_mode Specifies how to determine the alternate alleles to use for genotyping
|
|
536 graphOutput File to which debug assembly graph information should be written
|
|
537 group One or more classes/groups of annotations to apply to variant calls
|
|
538 heterozygosity Heterozygosity value used to compute prior likelihoods for any locus
|
|
539 minPruning The minimum allowed pruning factor in assembly graph. Paths with less than or equal supporting kmers are pruned from the graph
|
|
540 output_mode Specifies which type of calls we should output
|
|
541 pair_hmm_implementation The PairHMM implementation to use for genotype likelihood calculations
|
|
542 stand_call_conf The minimum phred-scaled confidence threshold at which variants should be called
|
|
543 stand_emit_conf The minimum phred-scaled confidence threshold at which variants should be emitted (and filtered with LowQual if less than the calling threshold)
|
|
544 useAllelesTrigger If specified, use additional trigger on variants found in an external alleles file
|
|
545 fullHaplotype If specified, output the full haplotype sequence instead of converting to individual variants w.r.t. the reference
|
|
546 gcpHMM Flat gap continuation penalty for use in the Pair HMM
|
|
547 genotypeFullActiveRegion If specified, alternate alleles are considered to be the full active region for the purposes of genotyping
|
|
548 max_alternate_alleles Maximum number of alternate alleles to genotype
|
|
549 p_nonref_model Non-reference probability calculation model to employ
|
|
550
|
11
|
551 ------
|
|
552
|
|
553 **Citation**
|
|
554
|
|
555 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>`_
|
|
556
|
|
557 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>`_
|
|
558
|
|
559 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>`_
|
|
560
|
|
561 </help>
|
|
562 </tool>
|