mutectcaller
This tool is an accelerated version of the GATK somatic variant caller, Mutect2, which takes aligned BAMs from the FQ2BAM tool, and outputs a VCF file. This can take as input either a single (“tumor-only”) BAM, or a pair of BAMs (“tumor-normal”) to provide a baseline to call somatic variants against.
The figure below shows the high-level functionality of mutectcaller. All dotted boxes indicate optional data, with some constraints.
The names of the tumor sample (for the --tumor-name option) and the normal sample (for the --normal-name option)
can be extracted from the headers of their respective BAM files with samtools, which can be installed through apt-get:
Or you can build it from source codes by following the instructions in samtools repo.
Once you have samtools installed on your system you can run this command to get the sample name (SM) field:
The sample name is the value after “SM:” (NA12878, in this example)
If there are multiple read group (@RG) lines and all of them have the same sample name you may safely
use the common sample name. If there are multiple read group lines with multiple sample names,
choose one sample name as the input. All reads with that sample name will be processed by
mutectcaller and all other reads will be ignored. Currently only one sample name per BAM file is supported.
If there are no read group lines in the BAM header, or there is no sample name in the read group line, you will need to add read group information to the BAM file. This may be done by running this command:
This will update the sample name of all reads in this BAM file to “sample_sm”, and you can pass “sample_sm” as
the sample name of this BAM file. Make sure you use the updated_file.bam as input to mutectcaller.
Refer to the mutectcaller Reference section for a detailed listing of all available options.
Quick Start
You can download the mutect sample dataset from here. Extract all files by running:
Inside the mutect_sample folder you will find the necessary input files including:
- One reference FASTA (GCA_000001405.15_GRCh38_no_alt_analysis_set.fa)
- One tumor BAM (tumor.bam)
- One normal BAM (normal.bam)
- One force_calling.vcf.gz VCF file
- One germline_resource.vcf.gz VCF file
with all necessary indexes.
Compatible GATK4 Command
The command below is the GATK4 counterpart of the Parabricks command above. The output from this command will be identical to the output from the above command. Refer to the Output Comparison page for comparing the results.
Mutect2 with Panel of Normals
Parabricks Mutect2 from version 3.7.0-1 has started supporting Panel of Normals to process variants. There are three steps involved:
- prepon
- running mutectcaller with the index generated by prepon
- postpon, updating the VCF with PON information
Source of Mismatches
While Parabricks MutectCaller does not lose any accuracy in functionality when compared with the GATK MutectCaller, there are a few implementation differences that can result in slightly different output files.
- Log10 implementation
The log10 operation is used to compute the haplotype penalty score. The Java implementation
java.lang.Math.log10() is slightly different from the C++ `cmath library, giving rise to small
mismatches in computed scores. Different haplotypes might be selected because of this.
- AVX
GATK calls Intel GKL (Genomics Kernel Library) which contains optimized versions of compute kernels (e.g. Smith-Waterman, PairHMM) to run on Intel Architecture (AVX, AVX2, AVX-512, and multicore). However, some SIMD intrinsics such as mm512_mul_ps` can generate a slightly different output when compared with the serial operations which our GPU implementation is based on.
- HashMap, HashSet iteration
GATK can give non-deterministic outputs because iterating over a Java HashMap or HashSet does not preserve
order. Parabricks always gives deterministic output by using
a hash table that preserves the insertion order (similar to LinkedHashMap in Java).