Mercurial > repos > artbio > gatk4
comparison Mutect2.xml @ 2:646e6943bcd2 draft default tip
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/gatk4 commit 9c42369510cce59bf0dcb0edb440322d17b18339
author | artbio |
---|---|
date | Sun, 15 Oct 2023 12:06:24 +0000 |
parents | c51c08cc9fcc |
children |
comparison
equal
deleted
inserted
replaced
1:b040adcfeefd | 2:646e6943bcd2 |
---|---|
1 <tool id="mutect2" name="gatk4 Mutect2" version="@WRAPPER_VERSION@" profile="18.05"> | 1 <tool id="mutect2" name="gatk4 Mutect2" version="@WRAPPER_VERSION@" profile="21.01"> |
2 <description>- Call somatic SNVs and indels via local assembly of haplotypes</description> | 2 <description>- Call somatic SNVs and indels via local assembly of haplotypes</description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="requirements"/> | 6 <expand macro="requirements"/> |
23 gatk CreateSequenceDictionary --REFERENCE="reference.fa" --OUTPUT="reference.dict" && | 23 gatk CreateSequenceDictionary --REFERENCE="reference.fa" --OUTPUT="reference.dict" && |
24 #else | 24 #else |
25 #set ref_flag='' | 25 #set ref_flag='' |
26 #end if | 26 #end if |
27 | 27 |
28 #if str($mode.mode_parameters) == 'tumor_only' | 28 ln -s $tumor tumor.bam && |
29 ln -s $mode.tumor tumor.bam && | 29 ln -s $tumor.metadata.bam_index tumor.bam.bai && |
30 ln -s $mode.tumor.metadata.bam_index tumor.bam.bai && | 30 |
31 #else | 31 #if str($mode.mode_parameters) == 'somatic' |
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 && | 32 ln -s $mode.normal normal.bam && |
35 ln -s $mode.normal.metadata.bam_index normal.bam.bai && | 33 ln -s $mode.normal.metadata.bam_index normal.bam.bai && |
36 #end if | 34 #end if |
37 | 35 |
38 #if str($outputs.output_parameters) == 'yes' | 36 #if str($outputs.output_parameters) == 'yes' |
286 #include source=$vcf_output_opts# | 284 #include source=$vcf_output_opts# |
287 #include source=$gatk_seqdict# | 285 #include source=$gatk_seqdict# |
288 ]]> | 286 ]]> |
289 </command> | 287 </command> |
290 <inputs> | 288 <inputs> |
289 <param name="tumor" argument="--tumor" type="data" format="bam" label="Input Tumor BAM file" /> | |
291 <conditional name="mode"> | 290 <conditional name="mode"> |
292 <param name="mode_parameters" type="select" label="Type of analysis"> | 291 <param name="mode_parameters" type="select" label="Type of analysis"> |
293 <option value="tumor_only">Tumor-only</option> | 292 <option value="tumor_only">Tumor-only</option> |
294 <option value="somatic">Somatic</option> | 293 <option value="somatic">Somatic</option> |
295 </param> | 294 </param> |
296 <when value="tumor_only"> | 295 <when value="tumor_only"> |
297 <param name="tumor" argument="--tumor" type="data" format="bam" label="Input Tumor BAM file" /> | |
298 </when> | 296 </when> |
299 <when value="somatic"> | 297 <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" /> | 298 <param name="normal" argument="--normal" type="data" format="bam" label="Input Normal BAM file" /> |
302 </when> | 299 </when> |
303 </conditional> | 300 </conditional> |
304 <expand macro="gzip_vcf_params"/> | 301 <expand macro="gzip_vcf_params"/> |
305 <expand macro="ref_sel"/> | 302 <expand macro="ref_sel"/> |
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."> | 499 <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> | 500 <option selected="true" value="SILENT">Silent</option> |
504 <option value="STRICT">Strict</option> | 501 <option value="STRICT">Strict</option> |
505 <option value="LENIENT">Lenient</option> | 502 <option value="LENIENT">Lenient</option> |
506 </param> | 503 </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&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."/> | 504 <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> | 505 </when> |
510 <when value="no" /> | 506 <when value="no" /> |
511 </conditional> | 507 </conditional> |
512 <conditional name="advanced"> | 508 <conditional name="advanced"> |
600 <data format="bam" name="bam_output" label="${tool.name} on ${on_string}: Debug BAM output"> | 596 <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> | 597 <filter>str(outputs['output_parameters']) == 'yes' and outputs['debug_bam']</filter> |
602 </data> | 598 </data> |
603 </outputs> | 599 </outputs> |
604 <tests> | 600 <tests> |
605 <test> | 601 <test expect_num_outputs="2"> |
602 <param name="tumor" ftype="bam" value="Mutect2-in1.bam" /> | |
606 <conditional name="mode"> | 603 <conditional name="mode"> |
607 <param name="mode_parameters" value="tumor_only"/> | 604 <param name="mode_parameters" value="tumor_only"/> |
608 <param name="tumor" ftype="bam" value="Mutect2-in1.bam" /> | |
609 </conditional> | 605 </conditional> |
610 <param name="reference_sequence" ftype="fasta" value="reference.fa" /> | 606 <param name="reference_sequence" ftype="fasta" value="reference.fa" /> |
611 <param name="gzipped_output" value="false" /> | 607 <param name="gzipped_output" value="false" /> |
612 <param name="reference_source_selector" value="history" /> | 608 <param name="reference_source_selector" value="history" /> |
613 <param name="optional_parameters" value="no" /> | 609 <param name="optional_parameters" value="no" /> |
614 <param name="advanced_parameters" value="no" /> | 610 <param name="advanced_parameters" value="no" /> |
615 <param name="output_parameters" value="no" /> | 611 <param name="output_parameters" value="no" /> |
616 <output name="output_vcf" file="Mutect2-out1.vcf" lines_diff="2" /> | 612 <output name="output_vcf" file="Mutect2-out1.vcf" lines_diff="2" /> |
617 <output name="output_vcf_stats" file="Mutect2-out1.vcf.stats" /> | 613 <output name="output_vcf_stats" file="Mutect2-out1.vcf.stats" /> |
618 </test> | 614 </test> |
619 <test> | 615 <test expect_num_outputs="2"> |
616 <param name="tumor" ftype="bam" value="Mutect2-in2.bam" /> | |
620 <conditional name="mode"> | 617 <conditional name="mode"> |
621 <param name="mode_parameters" value="tumor_only"/> | 618 <param name="mode_parameters" value="tumor_only"/> |
622 <param name="tumor" ftype="bam" value="Mutect2-in2.bam" /> | |
623 </conditional> | 619 </conditional> |
624 <param name="reference_sequence" ftype="fasta" value="reference.fa" /> | 620 <param name="reference_sequence" ftype="fasta" value="reference.fa" /> |
625 <param name="gzipped_output" value="false" /> | 621 <param name="gzipped_output" value="false" /> |
626 <param name="reference_source_selector" value="history" /> | 622 <param name="reference_source_selector" value="history" /> |
627 <param name="read_filter" value="AmbiguousBaseReadFilter,FirstOfPairReadFilter,GoodCigarReadFilter" /> | 623 <param name="read_filter" value="AmbiguousBaseReadFilter,FirstOfPairReadFilter,GoodCigarReadFilter" /> |
628 <param name="seqdict_source" value="history" /> | |
629 <param name="seqdict_sequence" value="Mutect2-in2.dict" /> | 624 <param name="seqdict_sequence" value="Mutect2-in2.dict" /> |
630 <param name="optional_parameters" value="no" /> | 625 <param name="optional_parameters" value="no" /> |
631 <param name="advanced_parameters" value="no" /> | 626 <param name="advanced_parameters" value="no" /> |
632 <param name="output_parameters" value="no" /> | 627 <param name="output_parameters" value="no" /> |
633 <output name="output_vcf" file="Mutect2-out2.vcf" lines_diff="2" /> | 628 <output name="output_vcf" file="Mutect2-out2.vcf" lines_diff="2" /> |
634 </test> | 629 </test> |
635 <test> | 630 <test expect_num_outputs="2"> |
631 <param name="tumor" ftype="bam" value="Mutect2-in3.bam" /> | |
636 <conditional name="mode"> | 632 <conditional name="mode"> |
637 <param name="mode_parameters" value="tumor_only"/> | 633 <param name="mode_parameters" value="tumor_only"/> |
638 <param name="tumor" ftype="bam" value="Mutect2-in3.bam" /> | |
639 </conditional> | 634 </conditional> |
640 <param name="reference_sequence" ftype="fasta" value="reference.fa" /> | 635 <param name="reference_sequence" ftype="fasta" value="reference.fa" /> |
641 <param name="gzipped_output" value="false" /> | 636 <param name="gzipped_output" value="false" /> |
642 <param name="reference_source_selector" value="history" /> | 637 <param name="reference_source_selector" value="history" /> |
643 <param name="optional_parameters" value="yes" /> | 638 <param name="optional_parameters" value="yes" /> |
645 <param name="annotation_group" value="StandardMutectAnnotation" /> | 640 <param name="annotation_group" value="StandardMutectAnnotation" /> |
646 <param name="advanced_parameters" value="no" /> | 641 <param name="advanced_parameters" value="no" /> |
647 <param name="output_parameters" value="no" /> | 642 <param name="output_parameters" value="no" /> |
648 <output name="output_vcf" file="Mutect2-out3.vcf" lines_diff="4" /> | 643 <output name="output_vcf" file="Mutect2-out3.vcf" lines_diff="4" /> |
649 </test> | 644 </test> |
650 <test> | 645 <test expect_num_outputs="2"> |
646 <param name="tumor" ftype="bam" value="Mutect2-in4.bam" /> | |
651 <conditional name="mode"> | 647 <conditional name="mode"> |
652 <param name="mode_parameters" value="tumor_only"/> | 648 <param name="mode_parameters" value="tumor_only"/> |
653 <param name="tumor" ftype="bam" value="Mutect2-in4.bam" /> | |
654 </conditional> | 649 </conditional> |
655 <param name="reference_sequence" value="hg38"/> | 650 <param name="reference_sequence" value="hg38"/> |
656 <param name="gzipped_output" value="false" /> | 651 <param name="gzipped_output" value="false" /> |
657 <param name="reference_source_selector" value="cached" /> | 652 <param name="reference_source_selector" value="cached" /> |
658 <param name="reference_sequence" value="hg38"/> | 653 <param name="reference_sequence" value="hg38"/> |
659 <param name="optional_parameters" value="no" /> | 654 <param name="optional_parameters" value="no" /> |
660 <param name="advanced_parameters" value="no" /> | 655 <param name="advanced_parameters" value="no" /> |
661 <param name="output_parameters" value="no" /> | 656 <param name="output_parameters" value="no" /> |
662 <output name="output_vcf" file="Mutect2-out4.vcf" lines_diff="2" /> | 657 <output name="output_vcf" file="Mutect2-out4.vcf" lines_diff="2" /> |
663 </test> | 658 </test> |
664 <test> | 659 <test expect_num_outputs="4"> |
660 <param name="tumor" ftype="bam" value="Mutect2-in5.bam" /> | |
665 <conditional name="mode"> | 661 <conditional name="mode"> |
666 <param name="mode_parameters" value="tumor_only"/> | 662 <param name="mode_parameters" value="tumor_only"/> |
667 <param name="tumor" ftype="bam" value="Mutect2-in5.bam" /> | |
668 </conditional> | 663 </conditional> |
669 <param name="reference_sequence" ftype="fasta" value="reference.fa" /> | 664 <param name="reference_sequence" ftype="fasta" value="reference.fa" /> |
670 <param name="gzipped_output" value="false" /> | 665 <param name="gzipped_output" value="false" /> |
671 <param name="reference_source_selector" value="history" /> | 666 <param name="reference_source_selector" value="history" /> |
672 <param name="optional_parameters" value="no" /> | 667 <param name="optional_parameters" value="no" /> |
677 <param name="debug_bam" value="true" /> | 672 <param name="debug_bam" value="true" /> |
678 <output name="output_vcf" file="Mutect2-out5.vcf" lines_diff="2" /> | 673 <output name="output_vcf" file="Mutect2-out5.vcf" lines_diff="2" /> |
679 <output name="assembly_region_out" file="Mutect2-out5-1.tabular" /> | 674 <output name="assembly_region_out" file="Mutect2-out5-1.tabular" /> |
680 <output name="bam_output" file="Mutect2-out5.bam" /> | 675 <output name="bam_output" file="Mutect2-out5.bam" /> |
681 </test> | 676 </test> |
682 <test> | 677 <test expect_num_outputs="2"> |
678 <param name="tumor" ftype="bam" value="tumor.bam" /> | |
683 <conditional name="mode"> | 679 <conditional name="mode"> |
684 <param name="mode_parameters" value="somatic"/> | 680 <param name="mode_parameters" value="somatic"/> |
685 <param name="tumor" ftype="bam" value="tumor.bam" /> | |
686 <param name="normal" ftype="bam" value="normal.bam" /> | 681 <param name="normal" ftype="bam" value="normal.bam" /> |
687 </conditional> | 682 </conditional> |
688 <param name="reference_sequence" ftype="fasta" value="chr20.fa" /> | 683 <param name="reference_sequence" ftype="fasta" value="chr20.fa" /> |
689 <param name="gzipped_output" value="false" /> | 684 <param name="gzipped_output" value="false" /> |
690 <param name="reference_source_selector" value="history" /> | 685 <param name="reference_source_selector" value="history" /> |
695 </test> | 690 </test> |
696 </tests> | 691 </tests> |
697 <help><![CDATA[Call somatic short variants via local assembly of haplotypes. Short | 692 <help><![CDATA[Call somatic short variants via local assembly of haplotypes. Short |
698 variants include single nucleotide (SNV) and insertion and deletion | 693 variants include single nucleotide (SNV) and insertion and deletion |
699 (indel) variants. The caller combines the DREAM challenge-winning | 694 (indel) variants. The caller combines the DREAM challenge-winning |
700 somatic genotyping engine of the original MuTect (`Cibulskis et al., | 695 somatic genotyping engine of the original MuTect_ (Cibulskis et al. 2013) |
701 2013 <http://www.nature.com/nbt/journal/v31/n3/full/nbt.2514.html>`__) | 696 with the assembly-based machinery of HaplotypeCaller (see |
702 with the assembly-based machinery of | 697 gatk.broadinstitute.org/hc/en-us/articles/360035531412-HaplotypeCaller-in-a-nutshell). |
703 `HaplotypeCaller <https://gatk.broadinstitute.org/hc/en-us/articles/360035531412-HaplotypeCaller-in-a-nutshell>`__. | 698 |
699 .. _MuTect: http://www.nature.com/nbt/journal/v31/n3/full/nbt.2514.html | |
704 | 700 |
705 This tool is featured in the *Somatic Short Mutation calling Best | 701 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>`__ | 702 Practice Workflow*. See gatk.broadinstitute.org/hc/en-us/articles/360035531132 |
707 for an overview of what traditional somatic calling entails, with usage examples. For the | 703 for an overview of what traditional somatic calling entails, with usage examples. For the |
708 latest pipeline scripts, see the `Mutect2 WDL scripts | 704 latest pipeline scripts, see the Mutect2 WDL scripts directory (see |
709 directory <https://github.com/broadinstitute/gatk/tree/master/scripts/mutect2_wdl>`__. | 705 github.com/broadinstitute/gatk/tree/master/scripts/mutect2_wdl). |
710 Although we present the tool for somatic calling, it may apply to other | 706 Although we present the tool for somatic calling, it may apply to other |
711 contexts, such as mitochondrial variant calling. | 707 contexts, such as mitochondrial variant calling. |
712 | 708 |
713 Usage examples | 709 Usage examples |
714 ~~~~~~~~~~~~~~ | 710 ~~~~~~~~~~~~~~ |