Machine Learning-Assisted Variant Calling — ML-Based Genomic Variant Detection

Research
Introduced by
Ryan Poplin, Mark DePristo and colleagues at Google Brain / Verily (DeepVariant)
Year
2018 (DeepVariant publication); broader ML approaches from ~2014 onward
Type
Computational genomics pipeline
Family
Bioinformatics / omics

What does it do?

Machine learning-assisted variant calling uses statistical learning models, most often convolutional neural networks, to distinguish genuine genomic variants (SNPs and small indels) from sequencing artifacts in aligned short- or long-read data.

Unlike heuristic callers that rely on hand-tuned filters, these approaches learn from labeled examples of variants, and their accuracy depends on how well the training data match the sequencing platform and coverage of the data being analysed. Google's DeepVariant (2018) is the landmark implementation that brought deep learning into mainstream variant calling.

The intuition behind the method

Imagine scanning many positions in a genome where the sequenced reads disagree with the reference. Traditional callers apply fixed rules: if enough reads show a change and the base quality is high enough, call it a variant. Machine learning callers instead convert each candidate site into a small image or feature matrix that encodes read depth, strand, mapping quality and base quality, and then ask a model trained on confirmed variants: does this pattern look like a real variant or like noise? Because the model learns combinations of evidence rather than applying single thresholds, it can weigh signals that no single hand-set cut-off captures. Relative to some heuristic callers, this may reduce false positives and missed variants, but the size of any gain depends on the benchmark, platform and variant type. The model is only as reliable as the examples it was trained on.

History

Machine learning was used in variant processing before deep learning, but the specific early methods are not covered in this entry. The paradigm shift came with DeepVariant, published by Poplin et al. in 2018, which framed variant calling as image classification using a convolutional neural network; the original study compared it with GATK HaplotypeCaller on GIAB benchmark data. Later work extended the approach to long-read platforms and to somatic variant calling, including PEPPER-Margin-DeepVariant and DeepSomatic.

When to use it

Use ML-assisted variant calling when both sensitivity and specificity matter, for example in clinical whole-genome or whole-exome sequencing, population cohorts, or cancer studies where false positives have consequences. It is relevant for non-Illumina long-read platforms (PacBio HiFi, Oxford Nanopore), whose error profiles differ from those that traditional short-read heuristics were designed for, provided a model matched to that platform is available. Do not use a germline-tuned model for somatic calling in low-purity tumors; dedicated somatic ML callers such as DeepSomatic are designed for that case. A heuristic caller may be sufficient for a targeted amplicon panel with high, uniform coverage, especially where compute is limited. Where every filter decision must be explained for regulatory reasons, the opacity of a neural network may make it unsuitable.

Limitations and considerations

  • Computationally heavier than heuristic callers; GPU acceleration is commonly used to make whole-genome throughput practical.
  • Performance can degrade when the data differ from the training set in sequencer chemistry, library preparation or coverage.
  • Somatic and structural variants require separate, purpose-built models; germline SNP/indel models are not substitutes for them.
  • The network is difficult to inspect, so it is hard to explain why a particular variant was called or filtered, which can complicate clinical and regulatory validation.

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

Strengths

  • In the original 2018 study, DeepVariant was compared with GATK HaplotypeCaller on GIAB benchmark samples and reported higher accuracy on that benchmark; results vary with the benchmark, platform and variant type.
  • Separate models exist for different sequencing platforms (Illumina short reads, PacBio HiFi, Oxford Nanopore), so the same framework can be applied across technologies.
  • Reduces reliance on hand-tuned, platform-specific filter thresholds, because the classifier learns the decision boundary from labeled examples.
  • Can be benchmarked against GIAB truth sets with standard precision, recall and F1 metrics, which makes its performance comparable to other callers.
  • Can be used as a replacement for the germline SNP/indel calling step in a standard NGS pipeline, while other parts of the pipeline stay unchanged.

Applications

  • Clinical whole-genome and whole-exome sequencing for rare disease diagnosis, where missed pathogenic variants have direct consequences for patients.
  • Large population genomics cohorts (e.g., UK Biobank, All of Us) that need consistent calling across many samples.
  • Long-read sequencing studies on PacBio HiFi or Oxford Nanopore platforms, where short-read callers were not designed for the error profile.
  • Cancer genomics pipelines detecting somatic SNVs and indels in tumor-normal pairs, using dedicated somatic models.
  • Benchmarking and methods development, where caller output is compared against GIAB truth sets.

How it works

How it works

1

Raw sequencing reads (FASTQ) are aligned to a reference genome using a short-read aligner such as BWA-MEM or a long-read aligner such as Minimap2, producing a sorted, indexed BAM or CRAM file. Duplicate marking is commonly applied before calling. Base quality score recalibration (BQSR) is a GATK-style preprocessing step; whether it is needed depends on the requirements of the chosen caller, so its use should follow that caller's documentation.

2

The aligned BAM is scanned to identify candidate loci where observed read bases deviate from the reference genome above a minimal allele-frequency or read-count threshold. This step is deliberately permissive: it casts a wide net so that the ML model, not a hard filter, makes the final accept/reject decision.

3

For each candidate locus, a multi-channel pileup image or feature tensor is constructed. Each row encodes one read; columns represent reference position; channels encode base identity, base quality, mapping quality, strand, and other per-read attributes. This representation converts a variant site into a format suitable for image-classification models.

4

A pre-trained convolutional neural network (e.g., InceptionV3 in DeepVariant) classifies each pileup image into one of three genotype classes: homozygous reference, heterozygous variant, or homozygous variant. The model outputs a probability vector; the highest-probability class is the genotype call. Models trained on Illumina short-read data are typically retrained or fine-tuned for PacBio or ONT long-read data.

5

The per-locus genotype probabilities are converted to VCF records with a GQ (genotype quality) score and a QUAL score derived from the model's confidence. GQ is conventionally a Phred-scaled estimate of the probability that the assigned genotype is wrong, so higher values indicate lower estimated error, on a logarithmic scale. The exact scale and reading guidance are caller-specific and should be taken from the caller's documentation. These scores express the model's own confidence; they are not calibrated error rates for new data and should be checked against a truth set before they are relied on. Phased genotype information can optionally be added at this stage using statistical phasing tools.

6

Called variants are assessed in two ways. First, model-based callers such as DeepVariant report confidence through their genotype and quality scores (GQ and QUAL) and do not apply VQSR. VQSR (variant quality score recalibration) is a GATK-specific filter that applies only when the workflow uses GATK's joint-genotyping route. Second, accuracy is assessed by comparing calls with a truth set such as a GIAB benchmark, computing precision (the fraction of called variants that appear in the truth set), recall (the fraction of truth-set variants that are called) and F1 (the harmonic mean of precision and recall). Joint genotyping across samples or population allele-frequency priors may further refine calls.

Common pitfalls

  • Applying a model trained on one platform (e.g., Illumina short reads) to another (e.g., ONT long reads) without retraining or fine-tuning can substantially reduce accuracy.
  • Preprocessing errors can propagate into the model's input: systematic read-level artifacts from poor duplicate handling or alignment can look like biological signal. Follow the preprocessing recommended for the chosen caller rather than assuming any single step is universally required.
  • Using germline-tuned models for somatic calling in tumor-normal pairs: somatic variants at low allele frequencies need dedicated somatic callers designed for that task.
  • Deploying without benchmarking on your own data: the model's quality scores reflect agreement with its training distribution, so they should be checked against a truth set for the sample type and platform in use before they are relied on. Benchmarking practice is described in Krusche et al. (2019).

Frequently asked questions

Is DeepVariant the same as ML-assisted variant calling?

DeepVariant is the best-known ML-based variant caller, but it is not the only one. Other tools such as Clair3, NanoCaller and PEPPER-Margin-DeepVariant also use neural network architectures. The term 'ML-assisted variant calling' refers to the broader approach of applying machine learning, including random forests, gradient boosting and deep neural networks, to distinguish real variants from sequencing noise.

Can I use a pre-trained DeepVariant model on my data, or do I need to retrain it?

For standard Illumina WGS or WES data, the official pre-trained models are the usual starting point. For non-standard library preparations, unusual coverage, or non-Illumina platforms, fine-tuning on a matched labeled dataset is strongly recommended. Separate model checkpoints are provided for PacBio HiFi and ONT data, and their suitability should still be checked against a truth set.

How does ML-based calling compare to GATK HaplotypeCaller?

In the original DeepVariant benchmark on standard Illumina samples, the model was reported to match or exceed GATK HaplotypeCaller in F1 score, with the gains varying by variant type and benchmark. GATK has a larger ecosystem, including joint genotyping with GenomicsDBImport, VQSR and somatic calling with Mutect2, while DeepVariant is designed mainly as a single-sample germline caller. Some production pipelines combine both tools or use DeepVariant for the germline SNP/indel step.

What is a GIAB benchmark and why does it matter?

The Genome in a Bottle (GIAB) consortium provides reference materials with validated variant truth sets for benchmarking variant callers. Comparing a caller's output against these truth sets, typically with standard comparison tools, yields precision, recall and F1 scores that allow comparison across methods. Benchmarking practice for germline small variants is described in Krusche et al. (2019), the GA4GH best-practices paper.

Does ML-assisted calling work for structural variants?

Standard ML callers like DeepVariant target small variants, meaning SNPs and short indels. Structural variants, such as large deletions, inversions, duplications and translocations, require separate tools such as Sniffles2, PBSV or DELLY, some of which also use machine learning. The two workflows are complementary and are typically run in parallel in a comprehensive genomics pipeline.

Sources

  1. Poplin, R., Chang, P. C., Alexander, D., Schwartz, S., Colthurst, T., Ku, A., Newburger, D., Dijamco, J., Nguyen, N., Afshar, P. T., Gross, S. S., Dorfman, L., McLean, C. Y., & DePristo, M. A. (2018). A universal SNP and small-indel variant caller using deep neural networks. Nature Biotechnology, 36(10), 983–987.

    Open DOI reference
  2. Krusche, P., Trigg, L., Boutros, P. C., Mason, C. E., De La Vega, F. M., Moore, B. L., Gonzalez-Porta, M., Eberle, M. A., Tezak, Z., Lababidi, S., Truty, R., Asimenos, G., Funke, B., Fleharty, M., Salit, M., Goldfeder, R. L., & Zook, J. M. (2019). Best practices for benchmarking germline small-variant calls in human genomes. Nature Biotechnology, 37(5), 555–560.

    Open DOI reference