1. ## step 1: Call candidate variants
    2. # 配对样本
    3. gatk Mutect2 \
    4. -R ref.fasta \
    5. -L intervals.interval_list \
    6. -I tumor.bam -tumor tumor\
    7. -I normal.bam -norma normal\
    8. -germline-resource af-only-gnomad.vcf \
    9. -pon panel_of_normals.vcf \
    10. --f1r2-tar-gz f1r2.tar.gz \
    11. -O unfiltered.vcf
    12. # 仅有肿瘤样本
    13. gatk Mutect2 \
    14. -R ref.fasta \
    15. -L intervals.interval_list \
    16. -I tumor.bam -tumor tumor\
    17. -germline-resource af-only-gnomad.vcf \
    18. -pon panel_of_normals.vcf \
    19. --f1r2-tar-gz f1r2.tar.gz \
    20. -O unfiltered.vcf
    21. ## step 2: Calculate Contamination
    22. gatk GetPileupSummaries \
    23. -I tumor.bam \
    24. -V chr17_small_exac_common_3_grch38.vcf.gz \
    25. -L chr17_small_exac_common_3_grch38.vcf.gz \
    26. -O tumor.getpileupsummaries.table
    27. gatk GetPileupSummaries \
    28. -I normal.bam \
    29. -V chr17_small_exac_common_3_grch38.vcf.gz \
    30. -L chr17_small_exac_common_3_grch38.vcf.gz \
    31. -O normal.getpileupsummaries.table
    32. gatk CalculateContamination \
    33. -I tumor.getpileupsummaries.table \
    34. -matched normal.getpileupsummaries.table
    35. -O calculatecontamination.table
    36. ## step 3: Learn Orientation Bias Artifacts
    37. gatk LearnReadOrientationModel \
    38. -I f1r2.tar.gz \
    39. -O read-orientation-model.tar.gz
    40. ## step 4: Filter Variants
    41. gatk FilterMutectCalls \
    42. -V unfiltered.vcf \
    43. --contamination-table calculatecontamination.table \
    44. --ob-priors read-orientation-model.tar.gz \
    45. -O filtered.vcf

    https://docs.gdc.cancer.gov/Data/Bioinformatics_Pipelines/DNA_Seq_Variant_Calling_Pipeline/

    https://www.jianshu.com/p/cfd72e478039

    https://www.jianshu.com/p/002daa39ded9