Inferensys

Glossary

Diploid Genotype Likelihood

The statistical probability of observing the aligned sequencing read data given a specific combination of two alleles at a locus, accounting for sequencing errors and mapping uncertainty.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
PROBABILISTIC GENOTYPING

What is Diploid Genotype Likelihood?

Diploid genotype likelihood is the statistical probability of observing the aligned sequencing read data given a specific combination of two alleles at a locus, accounting for sequencing errors and mapping uncertainty.

Diploid genotype likelihood quantifies the probability of the observed aligned reads, ( P(Data|G) ), for a specific diploid genotype ( G ). Unlike a simple allele count, this calculation integrates per-base quality scores, mapping quality filtering metrics, and platform-specific error profiles to model the uncertainty inherent in the sequencing process, distinguishing a true heterozygous call from a sequencing artifact.

These likelihoods serve as the raw statistical input for Bayesian variant calling. Algorithms combine the likelihoods for all ten possible diploid genotypes (AA, AC, AG, AT, CC, CG, CT, GG, GT, TT) with a prior probability of variation to compute a posterior genotype probability. This framework is fundamental to tools like DeepVariant and GATK, enabling accurate germline variant calling by rigorously separating biological signal from technical noise.

FOUNDATIONAL STATISTICS

Core Properties of Genotype Likelihoods

The mathematical framework that underpins all modern variant calling, quantifying the probability of observed sequencing data given each possible diploid genotype.

01

The Likelihood Function

Formally expressed as P(Data | Genotype), the likelihood function calculates the probability of observing the aligned reads at a locus given a specific combination of two alleles. It does not calculate the probability of the genotype being true; it calculates how well the genotype explains the data. The calculation integrates base quality scores, mapping quality scores, and the reference allele to model the error profile of the sequencing experiment.

02

The 10-Genotype Space

For a diploid organism with reference allele R and alternate allele A, the likelihood calculation evaluates all 10 possible unordered genotypes:

  • Homozygous Reference: R/R
  • Heterozygous: R/A
  • Homozygous Alternate: A/A
  • Plus all combinations when multiple alternate alleles exist at a locus. The genotype with the maximum likelihood is the initial call, but the full likelihood distribution is retained for downstream Bayesian genotyping.
03

Phred-Scale Transformation

Raw likelihoods are transformed into Phred-scaled values for compact storage in VCF/BCF files:

  • PL field: Phred-scaled genotype likelihoods, normalized so the most likely genotype has a PL of 0.
  • Formula: PL = -10 * log10(P(Data | Genotype))
  • A PL difference of 10 between two genotypes means the data are 10 times more likely under the higher-ranked genotype. This logarithmic scale prevents numerical underflow and enables integer encoding.
04

Error Model Integration

The likelihood calculation explicitly models multiple sources of uncertainty:

  • Sequencing Error: The probability that a base call is incorrect, derived from the per-base quality score.
  • Mapping Error: The probability that the read is aligned to the wrong genomic location, derived from the mapping quality.
  • Allele Bias: Systematic over- or under-representation of alleles due to PCR amplification or capture efficiency. These error probabilities are marginalized over all possible true underlying bases to produce a robust likelihood.
05

Prior-Probability Integration

Genotype likelihoods alone are frequentist; they do not incorporate prior knowledge. Modern callers combine likelihoods with a population prior (e.g., allele frequency from gnomAD) using Bayes' theorem:

  • Posterior ∝ Likelihood × Prior
  • This transforms the raw P(Data | Genotype) into the clinically actionable P(Genotype | Data).
  • A common prior is the Hardy-Weinberg equilibrium expectation, which provides the expected frequency of each genotype given the population allele frequency.
06

Marginal Likelihood Calculation

For each candidate genotype, the likelihood is computed by summing over all possible haplotype configurations of the aligned reads:

  • Each read is treated as an independent observation drawn from one of the two haplotypes.
  • The algorithm marginalizes over the unknown read-haplotype assignment.
  • For a heterozygous genotype R/A, the likelihood is the product over reads of 0.5 * P(read | R) + 0.5 * P(read | A), reflecting the equal probability of sampling from either haplotype.
DIPLOID GENOTYPE LIKELIHOOD

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the statistical foundations of variant calling, covering the models, algorithms, and data that determine genotype probabilities from sequencing reads.

A diploid genotype likelihood is the probability of observing the aligned sequencing read data at a specific genomic locus, given a particular combination of two alleles. It is formally expressed as P(Read Data | Genotype = A/B), where A and B are the two alleles. The calculation integrates multiple sources of uncertainty: base quality scores (the probability that a called base is incorrect), mapping quality scores (the probability the read is misaligned), and the raw count of reads supporting each allele. The core model assumes that sequencing errors are independent across reads. For a candidate heterozygous genotype (e.g., A/B with alleles A and B), the likelihood accounts for the binomial sampling of the two alleles and a small error probability that a read supports an allele not present in the true genotype. Modern tools like DeepVariant do not calculate this analytically but learn the complex conditional probability directly from pileup images using a convolutional neural network, implicitly modeling error dependencies that simple probabilistic models miss.

STATISTICAL FRAMEWORK COMPARISON

Genotype Likelihood vs. Related Statistical Frameworks

A comparison of the core statistical model used for variant calling against other probabilistic frameworks commonly applied in sequencing analysis.

FeatureDiploid Genotype LikelihoodVariant Quality Score Recalibration (VQSR)Base Quality Score Recalibration (BQSR)

Primary Objective

Calculate P(Data | G) for a specific locus

Calculate the probability that a variant call is a true positive

Empirically correct systematic sequencing errors

Input Data

Pileup of aligned reads, base qualities, reference base

Known truth sets (e.g., HapMap, Omni), variant annotations

Covariates (e.g., machine cycle, dinucleotide context), reported quality scores

Core Algorithm

Multinomial model with binomial sampling

Gaussian Mixture Model (GMM)

Gaussian Mixture Model (GMM) or Table-based recalibration

Output

Phred-scaled likelihoods for 10 diploid genotypes

Variant Quality Score Log Odds (VQSLOD)

Recalibrated base quality scores (Phred scale)

Handles Sequencing Error

Handles Mapping Uncertainty

Operates Per-Locus

Requires External Truth Data

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.