Tutorials › High-Dimensional Genomic Data Analysis › Imputation Of Rare Variants

Genotype Imputation · Tutorial 67 of 795

Imputation Of Rare Variants

Understand the distinct ways rare variants can be poorly represented or poorly predicted, and assess their imputation with diagnostics suited to low allele counts.

Intermediate 10 min read

What You'll Learn

  • Explain why rare alleles may have few or no copies in a reference panel.
  • Relate allele frequency to the expected number of carriers in a target sample.
  • Distinguish limited reference representation from uncertain dosage predictions.
  • Interpret carrier-status validation without confusing it with hard-genotype agreement.
  • Choose frequency-stratified diagnostics and recognize their limitations for rare variants.

Why Rare Variants Need Special Attention

An imputed genotype is an inference, not a direct observation. For a biallelic variant, let \(G\) denote the number of copies of the allele being studied, so \(G\in\{0,1,2\}\). An imputed dosage is the conditional expected genotype given the available data and reference information: \(D=E(G\mid\text{observed data, reference})\). A dosage near zero can reflect a high probability of no copies, while a dosage between zero and two can reflect uncertainty across possible genotypes. Dosages and their distinction from hard calls are covered in the earlier material on dosage as the expected genotype and dosages versus hard calls.

Rare variants are challenging for two related but distinct reasons. First, a reference panel may contain very few copies of the allele, or none at all. The panel then provides little evidence about the haplotypes carrying it or its relationship to genotyped markers. Second, even when the variant is represented in the panel, the available markers may not predict its presence reliably in a target individual. These are different failures: sparse representation concerns the information available in the reference; low-quality prediction concerns how uncertain or inaccurate the resulting dosages are.

Definition: A variant is commonly called rare when its minor-allele frequency is small relative to a specified population or sample. There is no single frequency cutoff that applies in every analysis. For imputation, report the frequency definition and the population or data set to which it refers. A variant’s reference-panel allele count—the number of observed copies of the allele—is often as important as its frequency.

Imputation relies on reference haplotypes and the relationship between observed markers and the unobserved allele. Its performance therefore depends on assumptions that the target and reference data are correctly aligned, that the reference is relevant to the target population, and that the observed markers provide useful information about the allele. Earlier material on allele harmonization and genome build matching addresses two important prerequisites: the alleles and positions must refer to the same variant. Correct harmonization alone, however, cannot create information about an allele that the panel barely represents.

How Low Counts Limit Reference Information

A simple sampling calculation shows why frequency matters. Suppose a reference panel contains \(M\) sampled chromosomes from a population in which the allele frequency is \(q\). Under random sampling and a common allele frequency across those chromosomes, the count \(K\) of allele copies has a binomial distribution. This approximation treats sampled chromosomes as independent; relatedness or population structure can make the effective information smaller than the nominal chromosome count.

$$ K\sim\operatorname{Binomial}(M,q),\qquad E(K)=Mq,\qquad P(K=0)=(1-q)^M. $$

The expected count can be small even in a large panel when \(q\) is very small. Moreover, a frequency estimated from only a few copies is imprecise. Under the binomial model, the estimated frequency \(\hat{q}=K/M\) has standard error approximately \(\sqrt{q(1-q)/M}\), with the true \(q\) in this expression. If \(K=0\), the panel gives no observed copy of the allele; it does not prove the allele is absent from the target population. How a particular imputation method handles a variant absent from its reference depends on that method and its input data.

For a separate target-sample calculation, assume Hardy–Weinberg proportions at the variant and allele frequency \(q\). The probability that a person carries at least one copy is \(1-(1-q)^2=2q-q^2\). Thus a sample of \(n\) unrelated individuals has expected carrier count \(n(2q-q^2)\). For small \(q\), this is approximately \(2nq\). The approximation concerns the expected number of carriers; it does not guarantee that any particular sample will contain that many.

Worked Example: How Many Copies Might the Reference Contain?

Suppose, hypothetically, that a panel has 5,000 sampled chromosomes and the allele frequency in its source population is \(q=0.0008\). Under the independent random-sampling model, the expected allele count is

$$ E(K)=Mq=5{,}000(0.0008)=4. $$

The probability that the panel contains no copies is

$$ P(K=0)=(1-0.0008)^{5{,}000}\approx 0.0183. $$

So a panel with 5,000 chromosomes is expected to contain only four copies, and the model assigns about a 1.83% probability to observing none. The frequency estimate’s approximate standard error, evaluated at \(q=0.0008\), is

$$ \sqrt{\frac{0.0008(1-0.0008)}{5{,}000}}\approx 0.000400. $$

That standard error is half the assumed frequency itself. The calculation does not show that the panel’s frequency estimate must be wrong; it shows that a few observed copies provide limited precision. Related individuals or a frequency that differs between the target and reference populations would weaken the simple sampling interpretation further.

For a target sample of 2,000 individuals, assuming Hardy–Weinberg proportions at the same frequency, the expected number of carriers is

$$ 2{,}000\{1-(1-0.0008)^2\} =2{,}000(0.00159936)\approx 3.20. $$

The target sample would therefore be expected to contain only about 3.20 carriers. A small number of errors can substantially affect sensitivity or a frequency-specific quality estimate when the number of true carriers is this low.

Diagnosing Frequency-Dependent Errors

Validation should compare imputed dosages with genotypes observed in a suitable validation set, such as a subset with direct, reliable genotyping or sequencing. The comparison must use the same variant and allele coding on both sides. Masking an observed genotype and then imputing it can assess performance under that masking design; it does not automatically guarantee the same performance for every population or for variants whose frequency differs from those in the validation set.

Summaries should be examined across frequency groups, not only averaged over all variants. Useful checks include allele frequency and allele count, dosage-based measures such as dosage \(R^2\), genotype or carrier-status sensitivity when a threshold is defined, and concordance measures interpreted according to exactly what was compared. The earlier material on imputation quality metrics, dosage \(R^2\), INFO scores, and validation by masking establishes these measures and their general use. For rare variants, inspect the number of validation allele copies and carriers underlying each estimate: a metric based on one or two observed copies can be highly variable. If there is no variation in true genotypes, a correlation-based dosage \(R^2\) is undefined, not zero evidence of good or bad performance.

A high overall agreement can also conceal missed carriers when noncarriers dominate. Carrier-status agreement is the proportion classified correctly as carrier or noncarrier under a stated dosage threshold. It is not the same as hard-genotype agreement, which requires comparing predicted and observed calls across genotype categories \(0\), \(1\), and \(2\). The threshold and classification target must be stated before interpreting carrier metrics.

Worked Example: High Carrier Agreement Can Miss Rare Carriers

Consider hypothetical validation results for 1,000 people at a rare variant. Suppose the carrier threshold is a predicted dosage of at least 0.5, and the comparison with observed genotypes gives 14 true-positive carrier classifications, 6 missed carriers, 5 false-positive carrier classifications, and 975 correctly classified noncarriers.

There are \(14+6=20\) observed carriers and \(5+975=980\) observed noncarriers. Sensitivity for carrier status is

$$ \frac{14}{14+6}=\frac{14}{20}=0.700, $$

or 70.0%. Specificity is

$$ \frac{975}{975+5}=\frac{975}{980}\approx 0.9949, $$

or 99.49%. The positive predictive value is \(14/(14+5)=14/19\approx0.7368\), or 73.68%. Binary carrier-status agreement at the stated threshold is

$$ \frac{14+975}{1{,}000}=\frac{989}{1{,}000}=0.989, $$

or 98.9%. This high agreement coexists with a 70.0% sensitivity because most people are noncarriers. These counts support conclusions about binary carrier-status classification only. They do not establish hard genotype agreement across genotypes 0, 1, and 2: predicted hard genotype calls have not been supplied, and the carrier threshold does not distinguish one allele copy from two.

Separate Sparse Representation From Uncertain Dosage

Reference allele count and prediction uncertainty answer different questions. A low count indicates that few reference examples carry the allele. A dosage is a prediction for a target individual or sample and reflects evidence available for that prediction. A variant can be sparse in the reference yet predict well if the few copies occur on a recognizable haplotype shared with the target. Conversely, a variant with many reference copies can predict poorly if its surrounding markers do not distinguish carriers from noncarriers in the target population.

For an individual with posterior genotype probabilities \(P(G=0\mid\text{data})\), \(P(G=1\mid\text{data})\), and \(P(G=2\mid\text{data})\), the dosage is their probability-weighted mean. The spread of those probabilities indicates uncertainty for that individual. A dosage is not itself a hard call, and an individual dosage alone cannot establish that the imputation method is well calibrated across a population.

Worked Example: What a Dosage Does and Does Not Say

Suppose two hypothetical target individuals have these genotype probabilities at a rare variant. For individual A, the probabilities for \(G=0,1,2\) are \(0.96,0.04,0\). For individual B, they are \(0.70,0.25,0.05\). Each set sums to one. Their dosages are

$$ D_A=0(0.96)+1(0.04)+2(0)=0.04, $$

and

$$ D_B=0(0.70)+1(0.25)+2(0.05)=0.35. $$

For individual A, the dosage is close to zero because the probability of \(G=0\) is high. It is not a hard genotype call, and the 0.04 is not a statement that the person has 0.04 of an allele copy. For individual B, the larger dosage reflects more probability on nonzero genotypes. Its uncertainty can be summarized by the conditional variance:

$$ \operatorname{Var}(G\mid\text{data}) =E(G^2\mid\text{data})-\{E(G\mid\text{data})\}^2 =0.45-(0.35)^2=0.3275. $$

Here \(E(G^2\mid\text{data})=1^2(0.25)+2^2(0.05)=0.45\). This describes uncertainty for individual B under the stated probabilities; it does not measure overall imputation accuracy. Population-level validation is needed to assess whether predictions agree with observed genotypes.

Practical Comparisons, Diagnostics, and Limitations

When performance is poor, first ask whether the allele is represented and then whether the available data predict it. Low reference allele count, or no copies, points toward sparse representation. If the allele is present but masked validation shows low dosage agreement, low dosage \(R^2\), or many missed carriers, the predictions are not sufficiently informative in that validation setting. These observations can coexist. A large reference panel may improve the chance of observing rare alleles, but size alone does not guarantee that its ancestry, haplotypes, variant coverage, or marker relationships suit the target.

Frequency-stratified validation is generally more informative than a single summary over common and rare variants. A useful report gives the frequency bins, variant counts, allele or carrier counts where available, the metric and its definition, and the validation sample’s relationship to the target population. For a very rare variant, per-variant estimates may be too unstable to support a precise ranking. Aggregating results across a frequency bin can describe typical performance in that bin, but it cannot certify every variant in it.

A common alternative to dosage-based evaluation is hard-call or carrier-status evaluation. Hard calls are easier to interpret as discrete genotypes but discard uncertainty and depend on a calling rule; carrier classification at a chosen threshold answers a narrower question. Dosage-based metrics retain graded predictions, but can be unstable when observed genotypes have little variation and are not interchangeable with sensitivity or concordance. No single metric replaces inspection of variant counts, frequency, and the exact comparison being made.

A key limitation is that observed frequency and predictive performance depend on the population sampled. A variant rare in one group may be more common in another; a reference panel that poorly represents the target can produce frequency-dependent errors even when its total size is large. In addition, an apparent validation failure may arise from mismatched alleles or positions rather than from the imputation model itself. Check variant identity and validation design before attributing an error to rarity alone.

Common mistake: “Carrier-status agreement is 98.9%, so hard-genotype imputation accuracy is 98.9%.” This is incorrect when the calculation only compares carrier versus noncarrier classifications at a threshold. The correction is to report binary carrier-status agreement and name the threshold; hard-genotype agreement requires predicted and observed genotype calls for all genotype categories.

The practical lesson is to separate three claims: whether an allele is represented in the reference, whether its dosage predictions are informative, and how those predictions perform in a specified validation sample. State the evidence for each claim rather than treating “rare” as a complete diagnosis.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. A reference panel contains 8,000 sampled chromosomes and the source-population allele frequency is \(0.00025\). What is the expected allele count under independent random sampling?
  2. Under Hardy–Weinberg proportions, what is the expected number of carriers among 1,000 individuals when \(q=0.001\)?
  3. A validation analysis reports 96% agreement after classifying dosage values at a stated carrier threshold. What does that percentage measure, and what additional information is needed to report hard-genotype agreement?
  4. Why can a variant with many copies in a reference panel still have poor imputation quality?

Solutions. (1) \(E(K)=Mq=8{,}000(0.00025)=2\) allele copies. The expected count is small, so representation may be sparse. (2) The carrier probability is \(1-(1-q)^2=1-(0.999)^2=0.001999\), giving \(1{,}000(0.001999)=1.999\), or about 2.00 expected carriers. (3) It measures agreement for binary carrier-status classifications at that threshold, not agreement across genotype calls 0, 1, and 2. To report hard-genotype agreement, compare predicted hard calls with observed genotypes for each person. (4) Copy count alone does not ensure that observed markers predict the allele in target individuals. Weak marker relationships, population differences, or other mismatches can leave dosages uncertain or inaccurate even when the allele is represented.

Clinical Biostats