Tutorials › High-Dimensional Genomic Data Analysis › Genotype Posteriors From Imputation

Genotype Imputation · Tutorial 51 of 795

Genotype Posteriors From Imputation

You will learn to read, normalize, and interpret the three genotype posterior probabilities for a single imputed variant, including their assumptions and limits.

Intermediate 10 min read

What You'll Learn

  • Define genotype posterior probabilities for the three possible diploid genotypes at a biallelic variant.
  • Normalize genotype weights to obtain posterior probabilities.
  • Interpret a posterior probability in relation to the observed data and imputation model.
  • Distinguish a posterior distribution from a single hard genotype call.
  • Compare uncertainty across posterior distributions using maximum probability and entropy.
  • Identify common checks and limitations when interpreting imputation posteriors.

What a Genotype Posterior Represents

At a biallelic variant, a diploid individual can carry zero, one, or two copies of the alternate allele. Imputation does not always identify one of these genotypes with certainty. Instead, it can represent uncertainty with a probability for each possibility, conditional on the available data and the imputation model. These probabilities retain distinctions that would disappear if the result were immediately reduced to a single genotype call.

For example, a posterior probability of 0.90 for one genotype means that, under the fitted imputation model and given the information used for imputation, that genotype has posterior probability 0.90. It does not mean that 90% of the individual's genotype is that category, nor does it guarantee that the model is correctly specified or calibrated.

Definition: For a diploid individual at a biallelic variant, let \(G\) denote the number of alternate-allele copies, so \(G\in\{0,1,2\}\). Let \(D\) denote the observed information used by the imputation model. The genotype posterior probabilities are \(P(G=0\mid D)\), \(P(G=1\mid D)\), and \(P(G=2\mid D)\). They describe the model's conditional probabilities for the three possible genotypes.

The genotype labels depend on which allele is designated alternate. If the reference allele is A and the alternate allele is G, then \(G=0\) means A/A, \(G=1\) means A/G, and \(G=2\) means G/G. If the allele designation is reversed, the labels for zero and two copies swap. The probability vector must therefore be read alongside the variant's allele coding.

For a valid posterior distribution over these three exhaustive, mutually exclusive possibilities, each probability is between zero and one, and the probabilities sum to one:

$$ P(G=0\mid D)+P(G=1\mid D)+P(G=2\mid D)=1. $$

The three values are often called genotype probabilities or genotype posteriors. A file may store them in an order such as \(P(G=0\mid D),P(G=1\mid D),P(G=2\mid D)\), but the format's allele and genotype-order conventions must be checked rather than assumed.

Assumptions Behind the Interpretation

A posterior is conditional on a statistical model. The following conditions make the basic interpretation meaningful: the variant is treated as biallelic and diploid; the reference and alternate alleles are correctly identified and aligned; the three genotype categories exhaust the possible states being modeled; and the imputation procedure has produced probabilities from a model appropriate to the observed information. The probabilities also rely on the model's assumptions about the reference haplotypes and how the observed data relate to the unobserved genotype.

These conditions do not require that all three probabilities be positive. A posterior such as \((0.98,0.02,0)\) is valid. Nor do the conditions imply that a value such as 0.98 is empirically accurate in every application. It is a model-based probability. Its practical reliability depends on the quality of the model and input data, including whether relevant genetic patterns are represented.

Interpretation: \(P(G=1\mid D)=0.70\) means that, conditional on the information \(D\) and the imputation model, the one-copy genotype has posterior probability 0.70. It is not the probability that the model is correct, and it is not a statement that 70% of the genotype is heterozygous.

From Genotype Weights to Posterior Probabilities

A useful way to understand the calculation is through Bayes' rule. Suppose the model assigns a prior probability \(P(G=g)\) to each genotype and a likelihood \(P(D\mid G=g)\) to the observed information under that genotype. The posterior probability is proportional to their product, normalized across the three possible genotypes:

$$ P(G=g\mid D) = \frac{P(D\mid G=g)P(G=g)} {\sum_{h=0}^{2}P(D\mid G=h)P(G=h)}, \qquad g\in\{0,1,2\}. $$

The denominator is the total probability of the observed information across the modeled genotype possibilities. It ensures that the resulting probabilities sum to one. In an actual imputation procedure, likelihoods and prior weights arise from the model and data; the calculation below illustrates the normalization itself.

Worked Example: Normalizing Genotype Weights

For a hypothetical individual and variant, suppose an imputation calculation gives unnormalized weights of 92 for \(G=0\), 7 for \(G=1\), and 1 for \(G=2\). These are relative weights, not yet probabilities.

Step 1: Add the weights. The total is \(92+7+1=100\).

Step 2: Divide each weight by the total.

$$ P(G=0\mid D)=\frac{92}{100}=0.92,\qquad P(G=1\mid D)=\frac{7}{100}=0.07,\qquad P(G=2\mid D)=\frac{1}{100}=0.01. $$

The probabilities sum to \(0.92+0.07+0.01=1.00\). Under this model, the zero-copy genotype is the most probable, with posterior probability 0.92. The combined posterior probability of the other two genotypes is \(0.07+0.01=0.08\). Thus, there remains 8% posterior probability that the genotype is not \(G=0\), conditional on the model and information used.

Summarizing a Posterior Distribution

The full three-probability vector is the most complete single-variant representation of genotype uncertainty. Two useful summaries are the largest probability and the entropy of the distribution. The largest probability identifies the most probable genotype and indicates how concentrated the posterior is in that category. It does not describe how the remaining probability is distributed between the other two genotypes.

For probabilities \(p_0,p_1,p_2\), the Shannon entropy in bits is

$$ H=-\sum_{g=0}^{2}p_g\log_2(p_g), $$

where a term with \(p_g=0\) is defined to be zero. Entropy is zero when one genotype has probability one, and is largest when all three genotypes have probability \(1/3\). It summarizes spread across categories, but it is not itself a probability that the imputation is wrong. The full probability vector remains important because different distributions can have similar entropy while placing probability on different genotypes.

Worked Example: Comparing Two Posterior Distributions

Consider two hypothetical posterior distributions for two separate individual-variant pairs, with entries ordered as \(G=0,G=1,G=2\):

$$ \text{A}: (0.80,0.10,0.10),\qquad \text{B}: (0.60,0.20,0.20). $$

Both vectors sum to one. For A, the largest probability is 0.80; for B, it is 0.60. The most probable genotype is \(G=0\) in both cases, but B assigns more probability to the alternatives: \(0.20+0.20=0.40\), compared with \(0.10+0.10=0.20\) for A.

Entropy also reflects the difference. For A:

$$ H_A=-[0.80\log_2(0.80)+0.10\log_2(0.10)+0.10\log_2(0.10)] \approx 0.9219\text{ bits}. $$

For B:

$$ H_B=-[0.60\log_2(0.60)+0.20\log_2(0.20)+0.20\log_2(0.20)] \approx 1.371\text{ bits}. $$

B has greater entropy and a smaller largest probability, indicating a more spread-out posterior. These summaries describe the distributions under their respective models; neither proves that one imputation is correct or incorrect.

Posterior Probabilities and Hard Calls

A hard call reports just one genotype, commonly the category with the greatest posterior probability. Formally, the maximum-posterior call is the genotype \(g\) that maximizes \(P(G=g\mid D)\). This is a decision rule that compresses three probabilities into one label. For example, the vector \((0.46,0.48,0.06)\) has a maximum-posterior call of \(G=1\), but that call has posterior probability only 0.48. Treating it as certain would hide substantial uncertainty.

A probability threshold can be used to flag calls as uncertain. For instance, a workflow might call the most probable genotype only when its posterior exceeds a prespecified threshold. The threshold is a decision choice, not a property of the posterior itself. Different applications may have different costs for an incorrect call, so one threshold is not universally appropriate.

Worked Example: A Most Probable Genotype Is Not Necessarily a Certain Call

Suppose a hypothetical individual has posterior probabilities \((0.30,0.55,0.15)\) at one variant. The probabilities sum to \(0.30+0.55+0.15=1.00\).

The largest probability is 0.55, so the maximum-posterior genotype is \(G=1\). But \(P(G=1\mid D)=0.55\), while the probability assigned to the other two genotypes combined is \(0.30+0.15=0.45\). Thus, the model favors \(G=1\), but the posterior is not highly concentrated on that category.

If a hypothetical workflow uses a 0.90 threshold for making a confident hard call, 0.55 does not meet that threshold, so this genotype would be flagged as uncertain under that rule. This conclusion follows from the stated threshold; it does not imply that 0.90 is the right threshold for every study.

Checking and Interpreting the Output

Several basic checks help prevent misinterpretation. Confirm that the three values correspond to the expected allele coding and genotype order. Check that each value lies between zero and one and that their sum is one, allowing for small differences due to rounding. If displayed values sum to 0.99 or 1.01, rounding may explain the discrepancy; a large discrepancy suggests a parsing, formatting, or data problem that should be investigated before interpretation.

The probabilities describe uncertainty for a particular individual at a particular variant. A high maximum probability means the model concentrates its probability on one genotype; it does not, by itself, establish that the model will be well calibrated across many individuals or variants. Calibration is an empirical property: among cases assigned a stated probability level, the corresponding genotype should occur at roughly that frequency when assessed against suitable known genotypes. Incorrect allele alignment, unrepresentative reference information, or model misspecification can undermine this interpretation even when the three probabilities sum perfectly to one.

1
Confirm the labels.
Identify the reference and alternate alleles and verify which entry refers to zero, one, and two alternate-allele copies.
2
Check the probability vector.
Verify that all three entries are between zero and one and sum to approximately one, accounting for rounding.
3
Read the distribution, not only the largest entry.
Note the most probable genotype and how much probability remains on the alternatives.
4
Keep the conditional interpretation.
Describe the values as conditional on the information and model; do not present them as a guarantee of correctness.

Common Mistakes and Limitations

  • Calling the largest probability certainty. A maximum of 0.55 identifies the favored genotype, not a nearly certain one. Report the other probabilities or an appropriate uncertainty summary as well.
  • Interpreting the posterior as a frequency in the population. \(P(G=1\mid D)\) is an individual-level conditional probability under the model. It is not the proportion of the population with \(G=1\).
  • Ignoring allele order. The genotype labels depend on which allele is alternate and on the output's ordering convention. A correct probability vector attached to the wrong allele labels yields a wrong interpretation.
  • Assuming a normalized vector guarantees a good imputation. A sum of one is a mathematical consistency check, not evidence that the input, reference representation, or model is appropriate.
  • Confusing a summary with the full posterior. The maximum probability and entropy each compress the vector. Neither alone shows exactly how uncertainty is allocated across the three genotypes.

Posterior probabilities matter because they make uncertainty visible at the genotype level. Retaining the full vector allows analysts to distinguish a sharply concentrated result from a weakly favored genotype, even when both would produce the same hard-call label. Their appropriate use still depends on correct allele coding, model assumptions, and the purpose of the analysis.

Check Your Understanding

Answer each question using the genotype order \(G=0,G=1,G=2\). Short solutions are included for checking your reasoning.

  1. A posterior vector is \((0.12,0.83,0.05)\). What is the most probable genotype, and what posterior probability remains on the other genotypes combined?
  2. Unnormalized genotype weights are 3, 5, and 2. Calculate the three posterior probabilities.
  3. Explain why a maximum-posterior call of \(G=2\) from the vector \((0.40,0.10,0.50)\) is not the same as certainty.
  4. What does it suggest if a file's three probabilities sum to 1.37, and what should be checked first?

Solutions. (1) The most probable genotype is \(G=1\), with probability 0.83. The combined probability on the alternatives is \(0.12+0.05=0.17\). (2) The total weight is \(3+5+2=10\), so the posterior is \((3/10,5/10,2/10)=(0.30,0.50,0.20)\). (3) \(G=2\) is the largest category, but its probability is only 0.50; the other categories together have probability \(0.40+0.10=0.50\). The call is a summary, not certainty. (4) A sum of 1.37 is too far from one to be explained by ordinary rounding. Check that the correct three fields were read, that values were not misformatted or combined across records, and that the genotype-order interpretation is correct.

Clinical Biostats