comparison Mutect2.xml @ 0:c51c08cc9fcc draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/gatk4 commit 408454e8d10befcc76f38ab446091778537d4f31"
author artbio
date Wed, 29 Dec 2021 01:36:41 +0000
parents
children 646e6943bcd2
comparison
equal deleted inserted replaced
-1:000000000000 0:c51c08cc9fcc
1 <tool id="mutect2" name="gatk4 Mutect2" version="@WRAPPER_VERSION@" profile="18.05">
2 <description>- Call somatic SNVs and indels via local assembly of haplotypes</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="version_cmd"/>
8 <command detect_errors="exit_code">
9 <![CDATA[
10 #include source=$set_sections#
11 #include source=$pre_gatk_excl_ints_chth#
12 #include source=$pre_gatk_ints_chth#
13
14 #set ref_flag='--reference="reference.fa"'
15
16 #if str($reference_source.reference_source_selector) == 'history'
17 ln -s '$reference_source.reference_sequence' reference.fa &&
18 samtools faidx reference.fa &&
19 gatk CreateSequenceDictionary --REFERENCE="reference.fa" --OUTPUT="reference.dict" &&
20 #else if str($reference_source.reference_source_selector) == 'cached'
21 ln -s '$reference_source.reference_sequence.fields.path' reference.fa &&
22 samtools faidx reference.fa &&
23 gatk CreateSequenceDictionary --REFERENCE="reference.fa" --OUTPUT="reference.dict" &&
24 #else
25 #set ref_flag=''
26 #end if
27
28 #if str($mode.mode_parameters) == 'tumor_only'
29 ln -s $mode.tumor tumor.bam &&
30 ln -s $mode.tumor.metadata.bam_index tumor.bam.bai &&
31 #else
32 ln -s $mode.tumor tumor.bam &&
33 ln -s $mode.tumor.metadata.bam_index tumor.bam.bai &&
34 ln -s $mode.normal normal.bam &&
35 ln -s $mode.normal.metadata.bam_index normal.bam.bai &&
36 #end if
37
38 #if str($outputs.output_parameters) == 'yes'
39 #if str($outputs.debug_assembly) == 'yes'
40 ln -s '$assembly_region_out' assembly-region.tab &&
41 #end if
42 #if str($outputs.debug_bam) == 'yes'
43 ln -s '$bam_output' debug.bam &&
44 #end if
45 #end if
46
47 gatk GetSampleName --input="tumor.bam" --output="samplename.txt" &&
48 sample=`cat samplename.txt | sed 's/"//g'` &&
49
50 #if str($optional.optional_parameters) == 'yes'
51 #if $optional.panel_of_normals
52 #set datatype = $optional.panel_of_normals.datatype
53 #if $optional.panel_of_normals.is_of_type("vcf_bgzip")
54 ln -s '$optional.panel_of_normals' panel_of_normals.vcf.gz &&
55 tabix panel_of_normals.vcf.gz &&
56 #else
57 ln -s '$optional.panel_of_normals' panel_of_normals.vcf &&
58 #end if
59 #end if
60
61 #if $optional.germline_resource
62 #set datatype = $optional.germline_resource.datatype
63 #if $optional.germline_resource.is_of_type("vcf_bgzip")
64 ln -s '$optional.germline_resource' germline_resource.vcf.gz &&
65 tabix germline_resource.vcf.gz &&
66 #else
67 ln -s '$optional.germline_resource' germline_resource.vcf &&
68 #end if
69 #end if
70
71 #if $optional.alleles
72 #set datatype = $optional.alleles.datatype
73 #if $optional.alleles.is_of_type("vcf_bgzip")
74 ln -s '$optional.alleles' alleles.vcf.gz &&
75 tabix alleles.vcf.gz &&
76 @CMD_BEGIN@ IndexFeatureFile --feature-file alleles.vcf.gz &&
77 #else
78 ln -s '$optional.alleles' alleles.vcf &&
79 @CMD_BEGIN@ IndexFeatureFile --feature-file alleles.vcf &&
80 #end if
81 #end if
82
83 #end if
84
85 gatk Mutect2 --QUIET $ref_flag --tumor-sample "\$sample"
86
87 #if str($mode.mode_parameters) == 'tumor_only'
88 --input tumor.bam
89 #else
90 --input tumor.bam
91 --input normal.bam
92 #end if
93
94 ## OPTIONAL PARAMETERS ##
95
96 #if str($optional.optional_parameters) == 'yes'
97
98 #if $optional.panel_of_normals
99 #if $optional.panel_of_normals.is_of_type("vcf_bgzip")
100 --panel-of-normals panel_of_normals.vcf.gz
101 #else
102 --panel-of-normals panel_of_normals.vcf
103 #end if
104 #end if
105
106 #if $optional.pedigree
107 --pedigree="$optional.pedigree"
108 #end if
109
110 #if $optional.germline_resource
111 #if $optional.germline_resource.is_of_type("vcf_bgzip")
112 --germline-resource germline_resource.vcf.gz
113 #else
114 --germline-resource germline_resource.vcf
115 #end if
116 #end if
117
118 #if $optional.annotation
119 #for $annot in str($optional.annotation).split(',')
120 --annotation="$annot"
121 #end for
122 #end if
123
124 #if $optional.annotation_group
125 #for $annot in str($optional.annotation_group).split(',')
126 --annotation-group="$annot"
127 #end for
128 #end if
129
130 #if $optional.annotations_to_exclude
131 #for $annot in str($optional.annotations_to_exclude).split(',')
132 --annotations-to-exclude="$annot"
133 #end for
134 #end if
135
136 #if $optional.founder_id
137 --founder-id="$optional.founder_id"
138 #end if
139
140 #if $optional.normal_sample
141 --normal-sample="$optional.normal_sample"
142 #end if
143
144 #if $optional.alleles
145 --alleles alleles.vcf
146 #end if
147
148 #if $optional.f1r2_max_depth:
149 --f1r2-max-depth="$optional.f1r2_max_depth"
150 #end if
151
152 #if $optional.f1r2_max_depth:
153 --f1r2-median-mq="$optional.f1r2_median_mq"
154 #end if
155
156 #if $optional.f1r2_max_depth:
157 --f1r2-min-bq="$optional.f1r2_min_bq"
158 #end if
159
160 #if $optional.interval_merging_rule:
161 --interval-merging-rule="$optional.interval_merging_rule"
162 #end if
163
164 #if $optional.interval_set_rule:
165 --interval-set-rule="$optional.interval_set_rule"
166 #end if
167
168 #if $optional.pcr_indel_qual:
169 --pcr-indel-qual="$optional.pcr_indel_qual"
170 #end if
171
172 #if $optional.pcr_snv_qual:
173 --pcr-snv-qual="$optional.pcr_snv_qual"
174 #end if
175
176 #if $optional.read_filter
177 #for $filter in str($optional.read_filter).split(',')
178 --read-filter="$filter"
179 #end for
180 #end if
181
182 #if $optional.disable_read_filter
183 #for $filter in str($optional.disable_read_filter).split(',')
184 --disable-read-filter="$filter"
185 #end for
186 #end if
187
188 --base-quality-score-threshold="$optional.base_quality_score_threshold"
189 --af-of-alleles-not-in-resource="$optional.af_of_alleles_not_in_resource"
190 --downsampling-stride="$optional.downsampling_stride"
191 --gcs-max-retries="$optional.gcs_max_retries"
192 --initial-tumor-lod="$optional.initial_tumor_lod"
193 --max-population-af="$optional.max_population_af"
194 --max-reads-per-alignment-start="$optional.max_reads_per_alignment_start"
195 --min-base-quality-score="$optional.min_base_quality_score"
196 --native-pair-hmm-threads="\${GALAXY_SLOTS:-1}"
197 --normal-lod="$optional.normal_lod"
198 --read-validation-stringency="$optional.read_validation_stringency"
199 --tumor-lod-to-emit="$optional.tumor_lod_to_emit"
200 --verbosity="ERROR"
201 $optional.lenient
202 $optional.annotate_with_num_discovered_alleles
203 $optional.add_output_sam_program_record
204 $optional.disable_bam_index_caching
205 $optional.disable_sequence_dictionary_validation
206 $optional.genotype_germline_sites
207 $optional.genotype_pon_sites
208 $optional.ignore_itr_artifacts
209 $optional.mitochondria_mode
210 $optional.native_pair_hmm_use_double_precision
211 $optional.sites_only_vcf_output
212 $optional.add_output_vcf_command_line
213 #end if
214
215 ## END OPTIONAL PARAMETERS ##
216
217 ## ADVANCED PARAMETERS ##
218
219 #if str($advanced.advanced_parameters) == 'yes'
220
221 #if $advanced.kmer_size
222 --kmer-size="$advanced.kmer_size"
223 #end if
224
225 #if $advanced.gvcf_lod_band
226 --gvcf-lod-band="$advanced.gvcf_lod_band"
227 #end if
228
229 #if $advanced.emit_ref_confidence
230 --emit-ref-confidence="$advanced.emit_ref_confidence"
231 #end if
232
233 #if $advanced.max_unpruned_variants
234 --max-unpruned-variants="$advanced.max_unpruned_variants"
235 #end if
236 --allele-informative-reads-overlap-margin="$advanced.allele_informative_reads_overlap_margin"
237 --active-probability-threshold="$advanced.active_probability_threshold"
238 --assembly-region-padding="$advanced.assembly_region_padding"
239 --bam-writer-type="$advanced.bam_writer_type"
240 --max-assembly-region-size="$advanced.max_assembly_region_size"
241 --max-mnp-distance="$advanced.max_mnp_distance"
242 --max-num-haplotypes-in-population="$advanced.max_num_haplotypes_in_population"
243 --max-prob-propagation-distance="$advanced.max_prob_propagation_distance"
244 --max-suspicious-reads-per-alignment-start="$advanced.max_suspicious_reads_per_alignment_start"
245 --min-assembly-region-size="$advanced.min_assembly_region_size"
246 --min-dangling-branch-length="$advanced.min_dangling_branch_length"
247 --min-pruning="$advanced.min_pruning"
248 --minimum-allele-fraction="$advanced.minimum_allele_fraction"
249 --num-pruning-samples="$advanced.num_pruning_samples"
250 --pair-hmm-gap-continuation-penalty="$advanced.pair_hmm_gap_continuation_penalty"
251 --pair-hmm-implementation="$advanced.pair_hmm_implementation"
252 --pcr-indel-model="$advanced.pcr_indel_model"
253 --phred-scaled-global-read-mismapping-rate="$advanced.phred_scaled_global_read_mismapping_rate"
254 --pruning-lod-threshold="$advanced.pruning_lod_threshold"
255 --smith-waterman="$advanced.smith_waterman"
256 $advanced.allow_non_unique_kmers_in_ref
257 $advanced.disable_adaptive_pruning
258 $advanced.disable_tool_default_annotations
259 $advanced.disable_tool_default_read_filters
260 $advanced.dont_increase_kmer_sizes_for_cycles
261 $advanced.dont_use_soft_clipped_bases
262 $advanced.enable_all_annotations
263 $advanced.force_active
264 $advanced.force_call_filtered_alleles
265 $advanced.independent_mates
266 $advanced.recover_all_dangling_branches
267 $advanced.use_filtered_reads_for_annotations
268
269 #end if
270
271 ## END ADVANCED PARAMETERS ##
272
273 ## ADDITIONAL OUTPUT PARAMETERS ##
274
275 #if str($outputs.output_parameters) == 'yes'
276 #if str($outputs.debug_assembly) == 'yes'
277 --assembly-region-out="assembly-region.tab"
278 #end if
279 #if str($outputs.debug_bam) == 'yes'
280 --bam-output="debug.bam"
281 #end if
282 #end if
283
284 #include source=$gatk_excl_ints_chth#
285 #include source=$gatk_ints_chth#
286 #include source=$vcf_output_opts#
287 #include source=$gatk_seqdict#
288 ]]>
289 </command>
290 <inputs>
291 <conditional name="mode">
292 <param name="mode_parameters" type="select" label="Type of analysis">
293 <option value="tumor_only">Tumor-only</option>
294 <option value="somatic">Somatic</option>
295 </param>
296 <when value="tumor_only">
297 <param name="tumor" argument="--tumor" type="data" format="bam" label="Input Tumor BAM file" />
298 </when>
299 <when value="somatic">
300 <param name="tumor" argument="--tumor" type="data" format="bam" label="Input Tumor BAM file" />
301 <param name="normal" argument="--normal" type="data" format="bam" label="Input Normal BAM file" />
302 </when>
303 </conditional>
304 <expand macro="gzip_vcf_params"/>
305 <expand macro="ref_sel"/>
306 <conditional name="optional">
307 <param name="optional_parameters" type="select" label="Optional parameters">
308 <option value="no">Use internal defaults</option>
309 <option value="yes">Specify parameters</option>
310 </param>
311 <when value="yes">
312 <expand macro="gatk_excl_ints"/>
313 <expand macro="gatk_ints"/>
314 <expand macro="seq_dict_sel"/>
315 <param name="add_output_sam_program_record" argument="--add-output-sam-program-record" type="boolean" truevalue="--add-output-sam-program-record" falsevalue="" optional="true" checked="true" label="Add Output Sam Program Record" help="If true, adds a PG tag to created SAM/BAM/CRAM files."/>
316 <param name="add_output_vcf_command_line" argument="--add-output-vcf-command-line" type="boolean" truevalue="--add-output-vcf-command-line" falsevalue="" optional="true" checked="true" label="Add Output Vcf Command Line" help="If true, adds a command line header line to created VCF files."/>
317 <param name="af_of_alleles_not_in_resource" argument="--af-of-alleles-not-in-resource" type="float" optional="true" value="-1.0" label="Af Of Alleles Not In Resource" help="Population allele fraction assigned to alleles not found in germline resource. Please see docs/mutect/mutect2.pdf fora derivation of the default value."/>
318 <param name="annotate_with_num_discovered_alleles" argument="--annotate-with-num-discovered-alleles" type="boolean" truevalue="--annotate-with-num-discovered-alleles" falsevalue="" optional="true" checked="false" label="Annotate With Num Discovered Alleles" help="If provided, we will annotate records with the number of alternate alleles that were discovered (but not necessarily genotyped) at a given site"/>
319 <param argument="--annotation" type="select" multiple="true" label="Annotations" help="One or more specific annotations to add to variant calls">
320 <option value="AlleleFraction">AlleleFraction</option>
321 <option value="AS_BaseQualityRankSumTest">AS_BaseQualityRankSumTest</option>
322 <option value="AS_FisherStrand">AS_FisherStrand</option>
323 <option value="AS_InbreedingCoeff">AS_InbreedingCoeff</option>
324 <option value="AS_MappingQualityRankSumTest">AS_MappingQualityRankSumTest</option>
325 <option value="AS_QualByDepth">AS_QualByDepth</option>
326 <option value="AS_ReadPosRankSumTest">AS_ReadPosRankSumTest</option>
327 <option value="AS_RMSMappingQuality">AS_RMSMappingQuality</option>
328 <option value="AS_StrandOddsRatio">AS_StrandOddsRatio</option>
329 <option value="BaseQuality">BaseQuality</option>
330 <option value="BaseQualityHistogram">BaseQualityHistogram</option>
331 <option value="BaseQualityRankSumTest">BaseQualityRankSumTest</option>
332 <option value="ChromosomeCounts">ChromosomeCounts</option>
333 <option value="ClippingRankSumTest">ClippingRankSumTest</option>
334 <option value="CountNs">CountNs</option>
335 <option value="Coverage">Coverage</option>
336 <option value="DepthPerAlleleBySample">DepthPerAlleleBySample</option>
337 <option value="DepthPerSampleHC">DepthPerSampleHC</option>
338 <option value="ExcessHet">ExcessHet</option>
339 <option value="FisherStrand">FisherStrand</option>
340 <option value="FragmentLength">FragmentLength</option>
341 <option value="GenotypeSummaries">GenotypeSummaries</option>
342 <option value="InbreedingCoeff">InbreedingCoeff</option>
343 <option value="LikelihoodRankSumTest">LikelihoodRankSumTest</option>
344 <option value="MappingQuality">MappingQuality</option>
345 <option value="MappingQualityRankSumTest">MappingQualityRankSumTest</option>
346 <option value="MappingQualityZero">MappingQualityZero</option>
347 <option value="OrientationBiasReadCounts">OrientationBiasReadCounts</option>
348 <option value="OriginalAlignment">OriginalAlignment</option>
349 <option value="PossibleDeNovo">PossibleDeNovo</option>
350 <option value="QualByDepth">QualByDepth</option>
351 <option value="ReadPosition">ReadPosition</option>
352 <option value="ReadPosRankSumTest">ReadPosRankSumTest</option>
353 <option value="ReferenceBases">ReferenceBases</option>
354 <option value="RMSMappingQuality">RMSMappingQuality</option>
355 <option value="SampleList">SampleList</option>
356 <option value="StrandBiasBySample">StrandBiasBySample</option>
357 <option value="StrandOddsRatio">StrandOddsRatio</option>
358 <option value="TandemRepeat">TandemRepeat</option>
359 <option value="UniqueAltReadCount">UniqueAltReadCount</option>
360 </param>
361 <param name="annotation_group" argument="--annotation-group" type="select" multiple="true" label="Annotation groups" help="One or more annotation groups to add to variant calls">
362 <option value="AlleleSpecificAnnotation">AlleleSpecificAnnotation</option>
363 <option value="AS_StandardAnnotation">AS_StandardAnnotation</option>
364 <option value="ReducibleAnnotation">ReducibleAnnotation</option>
365 <option value="StandardAnnotation">StandardAnnotation</option>
366 <option value="StandardHCAnnotation">StandardHCAnnotation</option>
367 <option value="StandardMutectAnnotation">StandardMutectAnnotation</option>
368 </param>
369 <param name="annotations_to_exclude" argument="--annotations-to-exclude" type="select" multiple="true" label="Annotations to exclude" help="Specific annotations to exclude from variant calls">
370 <option value="AlleleFraction">AlleleFraction</option>
371 <option value="AS_BaseQualityRankSumTest">AS_BaseQualityRankSumTest</option>
372 <option value="AS_FisherStrand">AS_FisherStrand</option>
373 <option value="AS_InbreedingCoeff">AS_InbreedingCoeff</option>
374 <option value="AS_MappingQualityRankSumTest">AS_MappingQualityRankSumTest</option>
375 <option value="AS_QualByDepth">AS_QualByDepth</option>
376 <option value="AS_ReadPosRankSumTest">AS_ReadPosRankSumTest</option>
377 <option value="AS_RMSMappingQuality">AS_RMSMappingQuality</option>
378 <option value="AS_StrandOddsRatio">AS_StrandOddsRatio</option>
379 <option value="BaseQuality">BaseQuality</option>
380 <option value="BaseQualityHistogram">BaseQualityHistogram</option>
381 <option value="BaseQualityRankSumTest">BaseQualityRankSumTest</option>
382 <option value="ChromosomeCounts">ChromosomeCounts</option>
383 <option value="ClippingRankSumTest">ClippingRankSumTest</option>
384 <option value="CountNs">CountNs</option>
385 <option value="Coverage">Coverage</option>
386 <option value="DepthPerAlleleBySample">DepthPerAlleleBySample</option>
387 <option value="DepthPerSampleHC">DepthPerSampleHC</option>
388 <option value="ExcessHet">ExcessHet</option>
389 <option value="FisherStrand">FisherStrand</option>
390 <option value="FragmentLength">FragmentLength</option>
391 <option value="GenotypeSummaries">GenotypeSummaries</option>
392 <option value="InbreedingCoeff">InbreedingCoeff</option>
393 <option value="LikelihoodRankSumTest">LikelihoodRankSumTest</option>
394 <option value="MappingQuality">MappingQuality</option>
395 <option value="MappingQualityRankSumTest">MappingQualityRankSumTest</option>
396 <option value="MappingQualityZero">MappingQualityZero</option>
397 <option value="OrientationBiasReadCounts">OrientationBiasReadCounts</option>
398 <option value="OriginalAlignment">OriginalAlignment</option>
399 <option value="PossibleDeNovo">PossibleDeNovo</option>
400 <option value="QualByDepth">QualByDepth</option>
401 <option value="ReadPosition">ReadPosition</option>
402 <option value="ReadPosRankSumTest">ReadPosRankSumTest</option>
403 <option value="ReferenceBases">ReferenceBases</option>
404 <option value="RMSMappingQuality">RMSMappingQuality</option>
405 <option value="SampleList">SampleList</option>
406 <option value="StrandBiasBySample">StrandBiasBySample</option>
407 <option value="StrandOddsRatio">StrandOddsRatio</option>
408 <option value="TandemRepeat">TandemRepeat</option>
409 <option value="UniqueAltReadCount">UniqueAltReadCount</option>
410 </param>
411 <param name="pedigree" argument="--pedigree" type="data" optional="true" format="vcf,vcf_bgzip" label="Pedigree" help="Pedigree file for determining the population &quot;founders&quot;. If a file is provided here, a pedigree-based annotation must be added above."/>
412 <param name="base_quality_score_threshold" argument="--base-quality-score-threshold" type="integer" optional="true" value="18" label="Base Quality Score Threshold" help="Base qualities below this threshold will be reduced to the minimum (6)"/>
413 <param name="callable_depth" argument="--callable-depth" type="integer" optional="true" value="10" label="Minimum depth to be considered callable" help="Does not affect genotyping"/>
414 <param name="contamination_fraction_to_filter" argument="--contamination-fraction-to-filter" type="float" optional="true" value="0.0" label="Contamination Fraction To Filter" help="Fraction of contamination in sequencing data (for all samples) to aggressively remove"/>
415 <param name="disable_bam_index_caching" argument="--disable-bam-index-caching" type="boolean" truevalue="--disable-bam-index-caching" falsevalue="" optional="true" checked="false" label="Disable Bam Index Caching" help="If true, don&amp;apos;t cache bam indexes, this will reduce memory requirements but may harm performance if many intervals are specified. Caching is automatically disabled if there are no intervals specified."/>
416 <param name="disable_read_filter" argument="--disable-read-filter" type="select" multiple="true" value="" label="Disable Read Filter" help="Read filters to be disabled before analysis">
417 <option value="GoodCigarReadFilter">Good cigar string</option>
418 <option value="MappedReadFilter">Mapped read</option>
419 <option value="MappingQualityAvailableReadFilter">Mapping quality available</option>
420 <option value="MappingQualityNotZeroReadFilter">Mapping quality not zero</option>
421 <option value="NonChimericOriginalAlignmentReadFilter">Non-chimeric original alignment</option>
422 <option value="NonZeroReferenceLengthAlignmentReadFilter">Non-zero reference length alignment</option>
423 <option value="NotDuplicateReadFilter">Not a duplicate read</option>
424 <option value="NotSecondaryAlignmentReadFilter">Not a secondary alignment</option>
425 <option value="PassesVendorQualityCheckReadFilter">Passes vendor quality check</option>
426 <option value="WellformedReadFilter">Well-formed read</option>
427 </param>
428 <param name="read_filter" argument="--read-filter" type="select" multiple="true" value="" label="Read Filter" help="Read filters to be applied before analysis">
429 <option value="AlignmentAgreesWithHeaderReadFilter">Alignment agrees with header</option>
430 <option value="AllowAllReadsReadFilter">Allow all reads</option>
431 <option value="AmbiguousBaseReadFilter">Ambiguous base</option>
432 <option value="CigarContainsNoNOperator">Cigar contains no NO operator</option>
433 <option value="FirstOfPairReadFilter">First of pair</option>
434 <option value="GoodCigarReadFilter">Good cigar string</option>
435 <option value="HasReadGroupReadFilter">Has read group</option>
436 <option value="MappedReadFilter">Mapped read</option>
437 <option value="MappingQualityAvailableReadFilter">Mapping quality available</option>
438 <option value="MappingQualityNotZeroReadFilter">Mapping quality not zero</option>
439 <option value="MatchingBasesAndQualsReadFilter">Matching bases and quals</option>
440 <option value="MateDifferentStrandReadFilter">Mate different strand</option>
441 <option value="MateOnSameContigOrNoMappedMateReadFilter">Mate on same contig or no mapped mate</option>
442 <option value="MateUnmappedAndUnmappedReadFilter">Mate unmapped and mapped</option>
443 <option value="MetricsReadFilter">Metrics</option>
444 <option value="NonChimericOriginalAlignmentReadFilter">Non-chimeric original alignment</option>
445 <option value="NonZeroFragmentLengthReadFilter">Non-zero fragment length</option>
446 <option value="NonZeroReferenceLengthAlignmentReadFilter">Non-zero reference length alignment</option>
447 <option value="NotDuplicateReadFilter">Not duplicate</option>
448 <option value="NotOpticalDuplicateReadFilter">Not optical duplicate</option>
449 <option value="NotSecondaryAlignmentReadFilter">Not a secondary alignment</option>
450 <option value="NotSupplementaryAlignmentReadFilter">Not a supplementary alignment</option>
451 <option value="OverclippedReadFilter">Overclipped</option>
452 <option value="PairedReadFilter">Paired</option>
453 <option value="PassesVendorQualityCheckReadFilter">Passes vendor quality check</option>
454 <option value="PrimaryLineReadFilter">Primary line</option>
455 <option value="ProperlyPairedReadFilter">Properly paired</option>
456 <option value="ReadLengthEqualsCigarLengthReadFilter">Read length equals cigar length</option>
457 <option value="SecondOfPairReadFilter">Second of pair</option>
458 <option value="SeqIsStoredReadFilter">Sequence is stored</option>
459 <option value="SoftClippedReadFilter">Soft clipped</option>
460 <option value="ValidAlignmentStartReadFilter">Valid alignment start</option>
461 <option value="ValidAlignmentEndReadFilter">Valid alignment end</option>
462 <option value="WellformedReadFilter">Well-formed read</option>
463 </param>
464 <param name="disable_sequence_dictionary_validation" argument="--disable-sequence-dictionary-validation" type="boolean" truevalue="--disable-sequence-dictionary-validation" falsevalue="" optional="true" checked="false" label="Disable Sequence Dictionary Validation" help="If specified, do not check the sequence dictionaries from our inputs for compatibility. Use at your own risk!"/>
465 <param name="downsampling_stride" argument="--downsampling-stride" type="integer" optional="true" value="1" label="Downsampling Stride" help="Downsample a pool of reads starting within a range of one or more bases."/>
466 <param name="f1r2_max_depth" argument="--f1r2-max-depth" type="integer" optional="true" value="200" label="Sites with depth higher than this value will be grouped" />
467 <param name="f1r2_median_mq" argument="--f1r2-median-mq" type="integer" optional="true" value="50" label="Skip sites with median mapping quality below this value" />
468 <param name="f1r2_min_bq" argument="--base-quality-score-threshold" type="integer" optional="true" value="20" label="Exclude bases below this quality from pileup" />
469 <param name="founder_id" argument="--founder-id" type="text" optional="true" value="" label="Founder Id" help="Samples representing the population &amp;quot;founders&amp;quot;"/>
470 <param name="gcs_max_retries" argument="--gcs-max-retries" type="integer" optional="true" value="20" label="Gcs Max Retries" help="If the GCS bucket channel errors out, how many times it will attempt to re-initiate the connection"/>
471 <param name="genotype_germline_sites" argument="--genotype-germline-sites" type="boolean" truevalue="--genotype-germline-sites" falsevalue="" optional="true" checked="false" label="Genotype Germline Sites" help="(EXPERIMENTAL) Call all apparent germline site even though they will ultimately be filtered."/>
472 <param name="genotype_pon_sites" argument="--genotype-pon-sites" type="boolean" truevalue="--genotype-pon-sites" falsevalue="" optional="true" checked="false" label="Genotype PoN Sites" help="Call sites in the PoN even though they will ultimately be filtered."/>
473 <param name="alleles" argument="--alleles" type="data" optional="true" format="vcf" label="Alleles" help="The set of alleles at which to genotype"/>
474 <param name="germline_resource" argument="--germline-resource" type="data" optional="true" format="vcf,vcf_bgzip" label="Germline Resource" help="Population vcf of germline sequencing containing allele fractions."/>
475 <param name="heterozygosity" argument="--heterozygosity" type="float" optional="true" value="0.001" label="Heterozygosity" help="The expected heterozygosity value used to compute prior probability that a locus is non-reference. The default priors are for provided for humans: het = 1e-3 which means that the probability of N samples being hom-ref at a site is: 1 - sum_i_2N (het / i) Note that heterozygosity as used here is the population genetics concept: http://en.wikipedia.org/wiki/Zygosity#Heterozygosity_in_population_genetics That is, a hets value of 0.01 implies that two randomly chosen chromosomes from the population of organisms would differ from each other (one being A and the other B) at a rate of 1 in 100 bp. Note that this quantity has nothing to do with the likelihood of any given sample having a heterozygous genotype, which in the GATK is purely determined by the probability of the observed data P(D | AB) under the model that there may be a AB het genotype. The posterior probability of this AB genotype would use the het prior, but the GATK only uses this posterior probability in determining the prob. that a site is polymorphic. So changing the het parameters only increases the chance that a site will be called non-reference across all samples, but doesn't actually change the output genotype likelihoods at all, as these aren't posterior probabilities at all. The quantity that changes whether the GATK considers the possibility of a het genotype at all is the ploidy, which determines how many chromosomes each individual in the species carries."/>
476 <param name="heterozygosity_stdev" argument="--heterozygosity-stdev" type="float" optional="true" value="0.01" label="Heterozygosity Stdev" help="Standard deviation of heterozygosity for SNP and indel calling."/>
477 <param name="ignore_itr_artifacts" argument="--ignore-itr-artifacts" type="boolean" truevalue="--ignore-itr-artifacts" falsevalue="" optional="true" checked="false" label="Turn off read transformer that clips artifacts associated with end repair insertions near inverted tandem repeats" />
478 <param name="indel_heterozygosity" argument="--indel-heterozygosity" type="float" optional="true" value="0.000125" label="Indel Heterozygosity" help="Heterozygosity for indel calling. See the GATKDocs for heterozygosity for full details on the meaning of this population genetics concept"/>
479 <param name="initial_tumor_lod" argument="--initial-tumor-lod" type="float" optional="true" value="2.0" label="Initial Tumor Lod" help="LOD threshold to consider pileup active."/>
480 <param name="interval_exclusion_padding" argument="--interval-exclusion-padding" type="integer" value="0" label="Interval exclusion padding" help="Amount of padding (in bp) to add to each interval you are excluding" />
481 <param name="interval_padding" argument="--interval-padding" type="integer" value="0" label="Interval padding" help="Amount of padding (in bp) to add to each interval you are including" />
482 <param name="interval_merging_rule" argument="--interval-merging-rule" type="select" optional="true" label="Interval Merging Rule" help="Interval merging rule for abutting intervals">
483 <option selected="true" value="ALL">All</option>
484 <option value="OVERLAPPING_ONLY">Overlapping only</option>
485 </param>
486 <param name="interval_set_rule" argument="--interval-set-rule" type="select" optional="true" label="Interval Set Rule" help="Set merging approach to use for combining interval inputs">
487 <option selected="true" value="UNION">Union</option>
488 <option value="INTERSECTION">Intersection</option>
489 </param>
490 <param name="lenient" argument="--lenient" type="boolean" truevalue="--lenient" falsevalue="" optional="true" checked="false" label="Lenient" help="Lenient processing of VCF files"/>
491 <param name="max_population_af" argument="--max-population-af" type="float" optional="true" value="0.01" label="Max Population Af" help="Maximum population allele frequency in tumor-only mode."/>
492 <param name="max_reads_per_alignment_start" argument="--max-reads-per-alignment-start" type="integer" optional="true" value="50" label="Max Reads Per Alignment Start" help="Maximum number of reads to retain per alignment start position. Reads above this threshold will be downsampled. Set to 0 to disable."/>
493 <param name="min_base_quality_score" argument="--min-base-quality-score" type="integer" optional="true" value="10" label="Min Base Quality Score" help="Minimum base quality required to consider a base for calling"/>
494 <param name="mitochondria_mode" argument="--mitochondria-mode" type="boolean" truevalue="--mitochondria-mode" falsevalue="" label="Mitochondria mode sets emission and initial LODs to 0" />
495 <param name="native_pair_hmm_use_double_precision" argument="--native-pair-hmm-use-double-precision" type="boolean" truevalue="--native-pair-hmm-use-double-precision" falsevalue="" optional="true" checked="false" label="Native Pair Hmm Use Double Precision" help="use double precision in the native pairHmm. This is slower but matches the java implementation better"/>
496 <param name="normal_lod" argument="--normal-lod" type="float" optional="true" value="2.2" label="Normal Lod" help="LOD threshold for calling normal variant non-germline."/>
497 <param name="normal_sample" argument="--normal-sample" type="text" optional="true" value="" label="Normal Sample" help="BAM sample name of normal. May be URL-encoded as output by GetSampleName with -encode argument."/>
498 <param name="panel_of_normals" argument="--panel-of-normals" type="data" optional="true" format="vcf,vcf_bgzip" label="Panel Of Normals" help="VCF file of sites observed in normal."/>
499 <param name="pcr_indel_qual" argument="--pcr-indel-qual" type="integer" optional="true" value="40" label="Phred-scaled PCR indel qual for overlapping fragments" />
500 <param name="pcr_snv_qual" argument="--pcr-snv-qual" type="integer" optional="true" value="40" label="Phred-scaled PCR SNV qual for overlapping fragments" />
501 <param name="sites_only_vcf_output" argument="--sites-only-vcf-output" type="boolean" truevalue="--sites-only-vcf-output" falsevalue="" optional="true" checked="false" label="Sites Only Vcf Output" help="If true, don&apos;t emit genotype fields when writing vcf file output."/>
502 <param name="read_validation_stringency" argument="--read-validation-stringency" type="select" optional="true" label="Read Validation Stringency" help="Validation stringency for all SAM/BAM/CRAM/SRA files read by this program. The default stringency value SILENT can improve performance when processing a BAM file in which variable-length data (read, qualities, tags) do not otherwise need to be decoded.">
503 <option selected="true" value="SILENT">Silent</option>
504 <option value="STRICT">Strict</option>
505 <option value="LENIENT">Lenient</option>
506 </param>
507 <param name="sites_only_vcf_output" argument="--sites-only-vcf-output" type="boolean" truevalue="--sites-only-vcf-output" falsevalue="" optional="true" checked="false" label="Sites Only Vcf Output" help="If true, don&amp;apos;t emit genotype fields when writing vcf file output."/>
508 <param name="tumor_lod_to_emit" argument="--tumor-lod-to-emit" type="float" optional="true" value="3.0" label="Tumor Lod To Emit" help="LOD threshold to emit tumor variant to VCF."/>
509 </when>
510 <when value="no" />
511 </conditional>
512 <conditional name="advanced">
513 <param name="advanced_parameters" type="select" label="Advanced parameters">
514 <option value="no">Use internal defaults</option>
515 <option value="yes">Specify parameters</option>
516 </param>
517 <when value="yes">
518 <param name="allele_informative_reads_overlap_margin" argument="--allele-informative-reads-overlap-margin" type="integer" optional="true" value="2" label="Likelihood and read-based annotations will only take into consideration reads that overlap the variant or any base no further than this distance expressed in base pairs" help="Number of overlapping bases around the variant."/>
519 <param name="active_probability_threshold" argument="--active-probability-threshold" type="float" optional="true" value="0.002" label="Active Probability Threshold" help="Minimum probability for a locus to be considered active."/>
520 <param name="allow_non_unique_kmers_in_ref" argument="--allow-non-unique-kmers-in-ref" type="boolean" truevalue="--allow-non-unique-kmers-in-ref" falsevalue="" optional="true" checked="false" label="Allow Non Unique Kmers In Ref" help="Allow graphs that have non-unique kmers in the reference"/>
521 <param name="assembly_region_padding" argument="--assembly-region-padding" type="integer" optional="true" value="100" label="Assembly Region Padding" help="Number of additional bases of context to include around each assembly region"/>
522 <param name="bam_writer_type" argument="--bam-writer-type" type="select" optional="true" label="Bam Writer Type" help="Which haplotypes should be written to the BAM">
523 <option selected="true" value="CALLED_HAPLOTYPES">Called haplotypes</option>
524 <option value="ALL_POSSIBLE_HAPLOTYPES">All possible haplotypes</option>
525 </param>
526
527 <param name="disable_adaptive_pruning" argument="--disable-adaptive-pruning" type="boolean" truevalue="--disable-adaptive-pruning" falsevalue="" optional="true" checked="false" label="Disable adaptive pruning" help="Disable the adaptive algorithm for pruning paths in the graph"/>
528 <param name="disable_tool_default_annotations" argument="--disable-tool-default-annotations" type="boolean" truevalue="--disable-tool-default-annotations" falsevalue="" optional="true" checked="false" label="Disable Default Annotations" help="Disable all tool default annotations"/>
529 <param name="disable_tool_default_read_filters" argument="--disable-tool-default-read-filters" type="boolean" truevalue="--disable-tool-default-read-filters" falsevalue="" optional="true" checked="false" label="Disable default read filters" help="WARNING: many tools will not function correctly without their default read filters on"/>
530 <param name="dont_increase_kmer_sizes_for_cycles" argument="--dont-increase-kmer-sizes-for-cycles" type="boolean" truevalue="--dont-increase-kmer-sizes-for-cycles" falsevalue="" optional="true" checked="false" label="Dont Increase Kmer Sizes For Cycles" help="Disable iterating over kmer sizes when graph cycles are detected"/>
531 <param name="dont_use_soft_clipped_bases" argument="--dont-use-soft-clipped-bases" type="boolean" truevalue="--dont-use-soft-clipped-bases" falsevalue="" optional="true" checked="false" label="Dont Use Soft Clipped Bases" help="Do not analyze soft clipped bases in the reads"/>
532 <param name="emit_ref_confidence" argument="--emit-ref-confidence" type="select" label="Mode for emitting reference confidence scores" help="NOTE: This is a beta feature in Mutect2">
533 <option value="NONE">None</option>
534 <option value="BP_RESOLUTION">Basepair resolution</option>
535 <option value="GVCF">Genomic VCF</option>
536 </param>
537 <param name="enable_all_annotations" argument="--enable-all-annotations" type="boolean" truevalue="--enable-all-annotations" falsevalue="" optional="true" checked="false" label="Enable All Annotations" help="Use all possible annotations (not for the faint of heart)"/>
538 <param name="force_active" argument="--force-active" type="boolean" truevalue="--force-active" falsevalue="" optional="true" checked="false" label="Mark all regions active" help="If selected, all regions will be marked as active"/>
539 <param name="force_call_filtered_alleles" argument="--force-call-filtered-alleles" type="boolean" truevalue="--force-call-filtered-alleles" falsevalue="" optional="true" checked="false" label="Force-call filtered alleles" help="Force-call filtered alleles included in the resource specified by --alleles"/>
540 <param name="gvcf_lod_band" argument="--gvcf-lod-band" type="float" optional="true" label="Upper bounds for reference confidence" help="Exclusive upper bounds for reference confidence LOD bands (must be specified in increasing order)" />
541 <param name="independent_mates" argument="--independent-mates" type="boolean" truevalue="--independent-mates" falsevalue="" label="Independent mates" help="Allow paired reads to independently support different haplotypes. Useful for validations with ill-designed synthetic data" />
542 <param name="kmer_size" argument="--kmer-size" type="integer" optional="true" value="" label="Kmer Size" help="Kmer size to use in the read threading assembler"/>
543 <param name="max_assembly_region_size" argument="--max-assembly-region-size" type="integer" optional="true" value="300" label="Max Assembly Region Size" help="Maximum size of an assembly region"/>
544 <param name="max_mnp_distance" argument="--max-mnp-distance" type="integer" optional="true" value="1" label="Max Mnp Distance" help="Two or more phased substitutions separated by this distance or less are merged into MNPs."/>
545 <param name="max_num_haplotypes_in_population" argument="--max-num-haplotypes-in-population" type="integer" optional="true" value="128" label="Max Num Haplotypes In Population" help="Maximum number of haplotypes to consider for your population"/>
546 <param name="max_prob_propagation_distance" argument="--max-prob-propagation-distance" type="integer" optional="true" value="50" label="Max Prob Propagation Distance" help="Upper limit on how many bases away probability mass can be moved around when calculating the boundaries between active and inactive assembly regions"/>
547 <param name="max_suspicious_reads_per_alignment_start" argument="--max-suspicious-reads-per-alignment-start" type="integer" optional="true" value="0" label="Max Suspicious Reads Per Alignment Start" help="Maximum number of suspicious reads (mediocre mapping quality or too many substitutions) allowed in a downsampling stride. Set to 0 to disable."/>
548 <param name="max_unpruned_variants" argument="--max-unpruned-variants" type="integer" optional="true" value="100" label="Maximum number of variants" help="Maximum number of variants in graph the adaptive pruner will allow"/>
549 <param name="min_assembly_region_size" argument="--min-assembly-region-size" type="integer" optional="true" value="50" label="Min Assembly Region Size" help="Minimum size of an assembly region"/>
550 <param name="min_dangling_branch_length" argument="--min-dangling-branch-length" type="integer" optional="true" value="4" label="Min Dangling Branch Length" help="Minimum length of a dangling branch to attempt recovery"/>
551 <param name="min_pruning" argument="--min-pruning" type="integer" optional="true" value="2" label="Min Pruning" help="Minimum support to not prune paths in the graph"/>
552 <param name="minimum_allele_fraction" argument="--minimum-allele-fraction" type="float" optional="true" value="0.0" label="Fractions to consider" help="Lower bound of variant allele fractions to consider when calculating variant LOD"/>
553 <param name="num_pruning_samples" argument="--num-pruning-samples" type="integer" optional="true" value="1" label="Num Pruning Samples" help="Number of samples that must pass the minPruning threshold"/>
554 <param name="pair_hmm_gap_continuation_penalty" argument="--pair-hmm-gap-continuation-penalty" type="integer" optional="true" value="10" label="Pair Hmm Gap Continuation Penalty" help="Flat gap continuation penalty for use in the Pair HMM"/>
555 <param name="pair_hmm_implementation" argument="--pair-hmm-implementation" type="select" optional="true" label="Pair Hmm Implementation" help="The PairHMM implementation to use for genotype likelihood calculations">
556 <option selected="true" value="FASTEST_AVAILABLE">Fastest Available</option>
557 <option value="EXACT">Exact</option>
558 <option value="ORIGINAL">Original</option>
559 <option value="LOGLESS_CACHING">Logless Caching</option>
560 <option value="AVX_LOGLESS_CACHING">Logless Caching (AVX)</option>
561 <option value="AVX_LOGLESS_CACHING_OMP">Logless Caching (AVX+OMP)</option>
562 <option value="EXPERIMENTAL_FPGA_LOGLESS_CACHING">Logless Caching (FPGA, Experimental)</option>
563 </param>
564 <param name="pcr_indel_model" argument="--pcr-indel-model" type="select" optional="true" label="Pcr Indel Model" help="The PCR indel model to use">
565 <option selected="true" value="CONSERVATIVE">Conservative</option>
566 <option value="NONE">None</option>
567 <option value="HOSTILE">Hostile</option>
568 <option value="AGGRESSIVE">Aggressive</option>
569 </param>
570 <param name="phred_scaled_global_read_mismapping_rate" argument="--phred-scaled-global-read-mismapping-rate" type="integer" optional="true" value="45" label="Phred Scaled Global Read Mismapping Rate" help="The global assumed mismapping rate for reads"/>
571 <param name="pruning_lod_threshold" argument="--pruning-lod-threshold" type="float" optional="true" value="2.302585092994046" label="Pruning LOD threshold" help="Likelihood ratio threshold for adaptive pruning algorithm" />
572 <param name="recover_all_dangling_branches" argument="--recover-all-dangling-branches" type="boolean" truevalue="--recover-all-dangling-branches" falsevalue="" label="Recover all dangling branches" />
573 <param name="smith_waterman" argument="--smith-waterman" type="select" optional="true" label="Smith Waterman" help="Which Smith-Waterman implementation to use, generally 'Fastest available' is the right choice">
574 <option selected="true" value="FASTEST_AVAILABLE">Fastest available</option>
575 <option value="AVX_ENABLED">AVX-Enabled</option>
576 <option value="JAVA">JAVA</option>
577 </param>
578 <param name="use_filtered_reads_for_annotations" argument="--use-filtered-reads-for-annotations" type="boolean" truevalue="--use-filtered-reads-for-annotations" falsevalue="" optional="true" checked="false" label="Use Filtered Reads For Annotations" help="Use the contamination-filtered read maps for the purposes of annotating variants"/>
579 </when>
580 <when value="no" />
581 </conditional>
582 <conditional name="outputs">
583 <param name="output_parameters" type="select" label="Output parameters" help="Additional outputs for debugging purposes">
584 <option value="no">Output only variants</option>
585 <option value="yes">Generate debugging information</option>
586 </param>
587 <when value="yes">
588 <param name="debug_activity" argument="--activity-profile-out" type="boolean" checked="false" truevalue="yes" falsevalue="" label="Activity Profile Out" help="Output the raw activity profile results in IGV format"/>
589 <param name="debug_assembly" argument="--assembly-region-out" type="boolean" checked="false" truevalue="yes" falsevalue="" label="Assembly Region Out" help="Output the assembly region to this IGV formatted file"/>
590 <param name="debug_bam" argument="--bam-output" type="boolean" checked="false" truevalue="yes" falsevalue="" label="Bam Output" help="The assembled haplotypes and locally realigned reads will be written as BAM to this file if requested. This is intended to be used only for troubleshooting purposes, in specific areas where you want to better understand why the caller is making specific calls"/>
591 </when>
592 <when value="no" />
593 </conditional>
594 </inputs>
595 <outputs>
596 <expand macro="gzip_vcf_output_params"/>
597 <data format="tabular" name="assembly_region_out" label="${tool.name} on ${on_string}: Assembly region">
598 <filter>str(outputs['output_parameters']) == 'yes' and outputs['debug_assembly']</filter>
599 </data>
600 <data format="bam" name="bam_output" label="${tool.name} on ${on_string}: Debug BAM output">
601 <filter>str(outputs['output_parameters']) == 'yes' and outputs['debug_bam']</filter>
602 </data>
603 </outputs>
604 <tests>
605 <test>
606 <conditional name="mode">
607 <param name="mode_parameters" value="tumor_only"/>
608 <param name="tumor" ftype="bam" value="Mutect2-in1.bam" />
609 </conditional>
610 <param name="reference_sequence" ftype="fasta" value="reference.fa" />
611 <param name="gzipped_output" value="false" />
612 <param name="reference_source_selector" value="history" />
613 <param name="optional_parameters" value="no" />
614 <param name="advanced_parameters" value="no" />
615 <param name="output_parameters" value="no" />
616 <output name="output_vcf" file="Mutect2-out1.vcf" lines_diff="2" />
617 <output name="output_vcf_stats" file="Mutect2-out1.vcf.stats" />
618 </test>
619 <test>
620 <conditional name="mode">
621 <param name="mode_parameters" value="tumor_only"/>
622 <param name="tumor" ftype="bam" value="Mutect2-in2.bam" />
623 </conditional>
624 <param name="reference_sequence" ftype="fasta" value="reference.fa" />
625 <param name="gzipped_output" value="false" />
626 <param name="reference_source_selector" value="history" />
627 <param name="read_filter" value="AmbiguousBaseReadFilter,FirstOfPairReadFilter,GoodCigarReadFilter" />
628 <param name="seqdict_source" value="history" />
629 <param name="seqdict_sequence" value="Mutect2-in2.dict" />
630 <param name="optional_parameters" value="no" />
631 <param name="advanced_parameters" value="no" />
632 <param name="output_parameters" value="no" />
633 <output name="output_vcf" file="Mutect2-out2.vcf" lines_diff="2" />
634 </test>
635 <test>
636 <conditional name="mode">
637 <param name="mode_parameters" value="tumor_only"/>
638 <param name="tumor" ftype="bam" value="Mutect2-in3.bam" />
639 </conditional>
640 <param name="reference_sequence" ftype="fasta" value="reference.fa" />
641 <param name="gzipped_output" value="false" />
642 <param name="reference_source_selector" value="history" />
643 <param name="optional_parameters" value="yes" />
644 <param name="annotation" value="StrandBiasBySample,BaseQualityHistogram,OrientationBiasReadCounts" />
645 <param name="annotation_group" value="StandardMutectAnnotation" />
646 <param name="advanced_parameters" value="no" />
647 <param name="output_parameters" value="no" />
648 <output name="output_vcf" file="Mutect2-out3.vcf" lines_diff="4" />
649 </test>
650 <test>
651 <conditional name="mode">
652 <param name="mode_parameters" value="tumor_only"/>
653 <param name="tumor" ftype="bam" value="Mutect2-in4.bam" />
654 </conditional>
655 <param name="reference_sequence" value="hg38"/>
656 <param name="gzipped_output" value="false" />
657 <param name="reference_source_selector" value="cached" />
658 <param name="reference_sequence" value="hg38"/>
659 <param name="optional_parameters" value="no" />
660 <param name="advanced_parameters" value="no" />
661 <param name="output_parameters" value="no" />
662 <output name="output_vcf" file="Mutect2-out4.vcf" lines_diff="2" />
663 </test>
664 <test>
665 <conditional name="mode">
666 <param name="mode_parameters" value="tumor_only"/>
667 <param name="tumor" ftype="bam" value="Mutect2-in5.bam" />
668 </conditional>
669 <param name="reference_sequence" ftype="fasta" value="reference.fa" />
670 <param name="gzipped_output" value="false" />
671 <param name="reference_source_selector" value="history" />
672 <param name="optional_parameters" value="no" />
673 <param name="advanced_parameters" value="no" />
674 <param name="output_parameters" value="yes" />
675 <param name="debug_activity" value="true" />
676 <param name="debug_assembly" value="true" />
677 <param name="debug_bam" value="true" />
678 <output name="output_vcf" file="Mutect2-out5.vcf" lines_diff="2" />
679 <output name="assembly_region_out" file="Mutect2-out5-1.tabular" />
680 <output name="bam_output" file="Mutect2-out5.bam" />
681 </test>
682 <test>
683 <conditional name="mode">
684 <param name="mode_parameters" value="somatic"/>
685 <param name="tumor" ftype="bam" value="tumor.bam" />
686 <param name="normal" ftype="bam" value="normal.bam" />
687 </conditional>
688 <param name="reference_sequence" ftype="fasta" value="chr20.fa" />
689 <param name="gzipped_output" value="false" />
690 <param name="reference_source_selector" value="history" />
691 <param name="optional_parameters" value="no" />
692 <param name="advanced_parameters" value="no" />
693 <param name="output_parameters" value="no" />
694 <output name="output_vcf" file="Mutect2-out6.vcf" lines_diff="2" />
695 </test>
696 </tests>
697 <help><![CDATA[Call somatic short variants via local assembly of haplotypes. Short
698 variants include single nucleotide (SNV) and insertion and deletion
699 (indel) variants. The caller combines the DREAM challenge-winning
700 somatic genotyping engine of the original MuTect (`Cibulskis et al.,
701 2013 <http://www.nature.com/nbt/journal/v31/n3/full/nbt.2514.html>`__)
702 with the assembly-based machinery of
703 `HaplotypeCaller <https://gatk.broadinstitute.org/hc/en-us/articles/360035531412-HaplotypeCaller-in-a-nutshell>`__.
704
705 This tool is featured in the *Somatic Short Mutation calling Best
706 Practice Workflow*. See `this article <https://gatk.broadinstitute.org/hc/en-us/articles/360035531132>`__
707 for an overview of what traditional somatic calling entails, with usage examples. For the
708 latest pipeline scripts, see the `Mutect2 WDL scripts
709 directory <https://github.com/broadinstitute/gatk/tree/master/scripts/mutect2_wdl>`__.
710 Although we present the tool for somatic calling, it may apply to other
711 contexts, such as mitochondrial variant calling.
712
713 Usage examples
714 ~~~~~~~~~~~~~~
715
716 Example commands show how to run Mutect2 for typical scenarios. The two
717 modes are (i) *somatic mode* where a tumor sample is matched with a
718 normal sample in analysis and (ii) *tumor-only mode* where a single
719 sample's alignment data undergoes analysis.
720
721 (i) Tumor with matched normal
722 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
723
724 Given a matched normal, Mutect2 is designed to call somatic variants
725 only. The tool includes logic to skip emitting variants that are clearly
726 present in the germline based on provided evidence, e.g. in the matched
727 normal. This is done at an early stage to avoid spending computational
728 resources on germline events. If the variant's germline status is
729 borderline, then Mutect2 will emit the variant to the callset for
730 subsequent filtering and review.
731
732 ::
733
734 gatk Mutect2 \
735 -R reference.fa \
736 -I tumor.bam \
737 -tumor tumor_sample_name \
738 -I normal.bam \
739 -normal normal_sample_name \
740 --germline-resource af-only-gnomad.vcf.gz \
741 --af-of-alleles-not-in-resource 0.00003125 \
742 --panel-of-normals pon.vcf.gz \
743 -O somatic.vcf.gz
744
745
746 The --af-of-alleles-not-in-resource argument value should match
747 expectations for alleles not found in the provided germline resource.
748 Note the tool does not require a germline resource nor a panel of
749 normals (PoN) to run. The tool prefilters sites for the matched normal
750 and the PoN. For the germline resource, the tool prefilters on the
751 allele. Below is an excerpt of a known variants resource with population
752 allele frequencies
753
754 ::
755
756 #CHROM POS ID REF ALT QUAL FILTER INFO
757 1 10067 . T TAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCC 30.35 PASS AC=3;AF=7.384E-5
758 1 10108 . CAACCCT C 46514.32 PASS AC=6;AF=1.525E-4
759 1 10109 . AACCCTAACCCT AAACCCT,* 89837.27 PASS AC=48,5;AF=0.001223,1.273E-4
760 1 10114 . TAACCCTAACCCTAACCCTAACCCTAACCCTAACCCCTAACCCTAACCCTAACCCTAACCCTAACCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCCTAACCCTAACCCTAAACCCTA *,CAACCCTAACCCTAACCCTAACCCTAACCCTAACCCCTAACCCTAACCCTAACCCTAACCCTAACCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCCTAACCCTAACCCTAAACCCTA,T 36728.97 PASS AC=55,9,1;AF=0.001373,2.246E-4,2.496E-5
761 1 10119 . CT C,* 251.23 PASS AC=5,1;AF=1.249E-4,2.498E-5
762 1 10120 . TA CA,* 14928.74 PASS AC=10,6;AF=2.5E-4,1.5E-4
763 1 10128 . ACCCTAACCCTAACCCTAAC A,* 285.71 PASS AC=3,1;AF=7.58E-5,2.527E-5
764 1 10131 . CT C,* 378.93 PASS AC=7,5;AF=1.765E-4,1.261E-4
765 1 10132 . TAACCC *,T 18025.11 PASS AC=12,2;AF=3.03E-4,5.049E-5
766
767
768 (ii) Tumor-only mode
769 ^^^^^^^^^^^^^^^^^^^^
770
771 This mode runs on a single sample, e.g. single tumor or single normal
772 sample. To create a PoN, call on each normal sample in this mode, then
773 use CreateSomaticPanelOfNormals to generate the PoN.
774
775 ::
776
777 gatk Mutect2 \
778 -R reference.fa \
779 -I sample.bam \
780 -tumor sample_name \
781 -O single_sample.vcf.gz
782
783
784 Further points of interest
785 ~~~~~~~~~~~~~~~~~~~~~~~~~~
786
787 Additional parameters that factor towards filtering, including
788 normal-artifact-lod (default threshold 0.0) and tumor-lod (default
789 threshold 5.3), are available in FilterMutectCalls. While the tool
790 calculates normal-lod assuming a diploid genotype, it calculates
791 normal-artifact-lod with the same approach it uses for tumor-lod, i.e.
792 with a variable ploidy assumption.
793
794 - If the normal artifact log odds becomes large, then FilterMutectCalls applies the artifact-in-normal filter. For matched normal samples with tumor contamination, consider increasing the normal-artifact-lod threshold.
795
796 - The tumor log odds, which is calculated independently of any matched normal, determines whether to filter a tumor variant. Variants with tumor LODs exceeding the threshold pass filtering.
797
798
799 If a variant is absent from a given germline resource, then the value
800 for --af-of-alleles-not-in-resource applies. For example, gnomAD's
801 16,000 samples (~32,000 homologs per locus) becomes a probability of one
802 in 32,000 or less. Thus, an allele's absence from the germline resource
803 becomes evidence that it is not a germline variant.
804
805 Caveats
806 ~~~~~~~
807
808 Although GATK4 Mutect2 accomodates varying coverage depths, further
809 optimization of parameters may improve calling for extreme high depths,
810 e.g. 1000X.
811 ]]></help>
812 <citations>
813 <expand macro="citations"/>
814 </citations>
815 </tool>