Bayesian Variant Calling — Probabilistic SNP and Indel Detection

Statistics
Introduced by
Mark DePristo, Eric Banks, and the Broad Institute GATK team
Year
2010 (GATK framework); Bayesian genotyping principles preceded by Samtools/MAQ ~2008–2009
Type
Probabilistic genomic inference pipeline
Family
Bioinformatics / omics

What does it do?

Bayesian variant calling is a computational pipeline that uses probabilistic inference to identify single-nucleotide polymorphisms (SNPs), insertions, and deletions from aligned sequencing reads.

It treats the reads as noisy evidence and computes posterior probabilities over candidate genotypes at each site. Because sequencing error and mapping uncertainty enter the model explicitly, the output is a set of genotype likelihoods and quality scores that downstream filtering and association analyses can use, rather than a bare presence or absence call.

The intuition behind the method

Think of each genomic position as a question: which nucleotides does this individual carry? The reads covering that position are noisy reports, and each base call has some chance of being wrong. A Bayesian caller weighs each report by its base quality and mapping quality, then combines them with a prior expectation of how common each genotype is in the population. The result is a probability distribution over genotypes such as homozygous reference, heterozygous, and homozygous alternate, not a simple yes or no. A variant is reported when the evidence for a non-reference genotype is strong enough under the caller's settings, which makes the decision criterion explicit and adjustable.

History

Bayesian genotyping approaches were implemented in the MAQ (2008) and SAMtools (2009) software by Heng Li and colleagues, which popularised phred-scaled genotype likelihoods and the probabilistic framework still widely used. The Genome Analysis Toolkit (GATK), described by McKenna et al. (2010) with co-authors including Eric Banks and Mark DePristo at the Broad Institute, provided a scalable MapReduce framework, and its HaplotypeCaller later added local haplotype assembly to the inference. Later developments include GATK4 (2018) and the deep-learning caller DeepVariant (2018), which estimates genotype likelihoods with convolutional neural networks while keeping a probabilistic output format.

When to use it

Use Bayesian variant calling when you need to identify germline or somatic SNPs and indels from short-read or long-read DNA sequencing and want per-genotype confidence values rather than binary calls. It is the usual approach for whole-genome, whole-exome, and targeted panel sequencing in human genetics and clinical genomics. Coverage is a key constraint: germline calls are most reliable at the whole-genome depths recommended in the FAQ, and heterozygous calls are increasingly missed as depth falls. Somatic calling from tumor-normal pairs needs higher depth and a somatic-mode pipeline such as Mutect2, because its priors and error model differ from germline calling. Standard germline DNA settings should not be applied to RNA-seq data without RNA-specific preprocessing and workflow, and the RNA-seq workflow is less validated than DNA pipelines (see the FAQ). Do not use VQSR when the cohort is too small or suitable training resources are unavailable; use hard filtering instead.

Limitations and considerations

  • Computationally intensive: whole-genome analysis of a single human sample can take hours to days on a typical compute cluster unless the work is parallelised.
  • Default genotype priors assume a specific population genetic model; calling in inbred lines, polyploids, or non-human species requires adjusted ploidy settings and priors.
  • VQSR needs a large set of validated variant sites for training. As a rule of thumb, it is considered unreliable with about 30 samples or fewer, and larger cohorts, ideally hundreds of samples, are preferred. Organisms without curated variant databases also cannot use it, and hard filtering is needed in these cases.
  • SNP and indel callers are not designed to detect structural variants or copy number variants, which need specialist callers.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Genotype likelihoods, PL values, and GQ scores give downstream tools a per-sample confidence measure that can be used to filter or weight calls.
  • Base and mapping qualities enter the likelihood directly, so unreliable bases and poorly placed reads carry less weight than they would in a simple read-count rule.
  • Local haplotype assembly lets the caller evaluate nearby variants jointly, which helps with complex indels and clustered variants that a site-by-site pileup approach handles separately.
  • Population allele frequency priors, such as those from gnomAD, shift posteriors where the reads alone are weak, which can help for common variants at lower coverage.
  • The approach is implemented in widely used, documented toolkits, most notably GATK.

Applications

  • Germline SNP and indel discovery in population-scale WGS cohorts for genome-wide association studies (GWAS).
  • Clinical diagnostic sequencing for rare disease gene panels and exome sequencing to identify pathogenic variants.
  • Somatic mutation cataloguing in cancer genomics to identify driver mutations and construct tumor mutational burden (TMB) signatures.
  • Variant calling in non-human model organisms (mouse, zebrafish, Arabidopsis) for forward and reverse genetic screens.
  • Pharmacogenomic studies requiring accurate genotyping of drug-metabolising enzyme loci (CYP2D6, CYP2C19, etc.).

How it works

How it works

1

Raw reads are aligned to a reference genome (for example with BWA-MEM), and the BAM file is then processed with base quality score recalibration (BQSR) and duplicate marking. These steps aim to correct systematic sequencing errors so that the per-base quality scores used by the model better reflect actual error rates.

2

Instead of evaluating each position in isolation, some modern Bayesian callers, including GATK HaplotypeCaller, re-assemble the reads in active regions into candidate haplotypes. Plausible combinations of nearby variants are then evaluated together as haplotypes, which helps with clustered variants and complex indels.

3

For each candidate haplotype or genotype, the probability of the observed reads is computed from a likelihood model that uses per-base quality scores and mapping qualities. The result is a likelihood for each genotype, P(reads | genotype), in which low-quality bases and poorly placed reads contribute less weight.

Formula
P(reads | genotype) via per-base quality scores
4

Bayes' theorem combines each likelihood with a genotype prior, typically derived from population allele frequencies such as those in gnomAD, to give a posterior probability for each genotype: P(genotype | reads) is proportional to P(reads | genotype) times P(genotype). The highest-posterior genotype is reported together with phred-scaled genotype likelihoods (PL) and a genotype quality (GQ) score. PL values are phred-scaled likelihoods normalised so that the most likely genotype has a value of 0, and larger values indicate less support for that genotype. GQ is the phred-scaled confidence that the reported genotype is correct, equal to the difference between the second-smallest and the smallest PL values. It is a relative measure against the next-best genotype and depends on the model and priors, so it should be checked against a benchmark.

Formula
P(genotype | reads) \propto P(reads | genotype) \cdot P(genotype)
5

Raw calls are refined either by variant quality score recalibration (VQSR), which fits a Gaussian mixture model on known variant sites to separate likely true variants from artefacts, or by hard filters on annotation values such as QD, FS, and MQ. The output is a filtered VCF suitable for association testing or functional annotation.

Common pitfalls

  • Skipping base quality score recalibration (BQSR): systematic sequencing errors inflate false-positive rates, and BQSR is intended to correct them before likelihoods are computed. How much it helps depends on the platform and its error profile.
  • Using germline priors for somatic calling: tumor cells may carry many low-frequency variants present in only a fraction of cells, and somatic callers use very different error models, so standard germline pipelines should not be substituted.
  • Reporting all genotype calls regardless of GQ: low-GQ calls add false positives, so a GQ cut-off should be chosen deliberately, ideally checked against a benchmark dataset, and reported.
  • Applying hard filters when VQSR is appropriate: fixed thresholds are less powerful than the learned VQSR model when enough training data are available.
  • Comparing callsets from different callers without harmonisation: callers represent complex variants differently, so VCF files should be normalised (for example with bcftools norm) before merging to avoid spurious discordance.

Frequently asked questions

What is the difference between GATK HaplotypeCaller and DeepVariant?

Both produce Bayesian-style genotype likelihoods. HaplotypeCaller uses a hand-engineered probabilistic model that combines read likelihoods with Bayes' theorem, while DeepVariant trains a convolutional neural network on images of read pileups to estimate genotype probabilities. HaplotypeCaller remains more flexible for custom priors and non-standard applications, and the relative accuracy of the two depends on the data, so it should be checked on your own benchmark. Both output VCF files with phred-scaled likelihoods.

How much sequencing depth do I need?

For germline WGS, 30x mean coverage is the usual recommendation; lower depth, such as 20x, is often used but increases false negatives for heterozygous variants. For somatic calling from tumor-normal pairs, 50–100x on the tumor is typical. Targeted panels often run at 200–500x to ensure sensitivity at clinically relevant loci.

Can I use Bayesian variant calling for RNA-seq data?

Standard DNA-seq variant callers require modification for RNA-seq because splicing creates read-alignment artefacts at exon boundaries, and allelic expression imbalance mimics somatic mutations. GATK provides an RNA-seq variant calling workflow that includes SplitNCigarReads preprocessing, but it is less validated than DNA-seq pipelines and should not be used interchangeably.

What is VQSR and when should I use hard-filtering instead?

Variant Quality Score Recalibration (VQSR) trains a Gaussian mixture model on high-confidence variant sites to distinguish true variants from artifacts. It requires a reasonably large cohort (as a rule of thumb, at least about 30 samples, with hundreds preferred) and validated reference resources (HapMap, 1000 Genomes, dbSNP). For small cohorts, non-human organisms, or targeted panels without suitable training data, hard-filtering using fixed annotation thresholds (QD, FS, SOR, MQ) is the recommended fallback.

My samples are from a non-human polyploid organism. Can I still use Bayesian variant calling?

Yes, but default tools assume diploidy. For polyploids you must specify the ploidy level (GATK supports this via --sample-ploidy) and adjust the genotype priors accordingly. Population-level resources for non-model organisms are rarely available, so VQSR is usually not feasible; rely on hard-filtering and manual inspection of high-priority calls.

Related methods

Sources

  1. McKenna, A., Hanna, M., Banks, E., Sivachenko, A., Cibulskis, K., Kernytsky, A., ... & DePristo, M. A. (2010). The Genome Analysis Toolkit: A MapReduce framework for analyzing next-generation DNA sequencing data. Genome Research, 20(9), 1297–1303.

    Open DOI reference
  2. Rimmer, A., Phan, H., Mathieson, I., Iqbal, Z., Twigg, S. R., WGS500 Consortium, ... & McVean, G. (2014). Integrating mapping-, assembly- and haplotype-based approaches for calling variants in clinical sequencing applications. Nature Genetics, 46(8), 912–918.

    Open DOI reference