Tutorials › High-Dimensional Genomic Data Analysis › Handling Missing Genotypes in Score Calculation

Polygenic Risk Scores · Tutorial 564 of 795

Handling Missing Genotypes in Score Calculation

Learn how to handle missing target genotypes in a polygenic risk score, and assess the consequences for score values and comparisons.

Advanced 11 min read

What You'll Learn

  • Define a dosage-based polygenic score when some target genotypes are missing
  • Calculate scores using mean-dosage imputation
  • Distinguish excluding a variant from excluding a sample
  • Derive how mean imputation affects expected score variability under explicit assumptions
  • Compare the effect of each strategy on score scale and comparability
  • Identify missingness patterns that warrant diagnostics or caution

Why Missing Genotypes Matter for a Score

A polygenic risk score (PRS) combines effect-allele dosages with corresponding weights. If a target genotype is missing, its contribution cannot be calculated directly. Treating that missing value as zero, dropping the affected variant, or dropping the person are different choices: each defines a different calculation and can change the score’s scale, variation, or target population.

Let \(J\) be the set of variants used in a score, let \(G_{ij}\) be person \(i\)’s dosage at variant \(j\), and let \(\beta_j\) be the effect weight for that variant. Dosages are expected effect-allele counts on the 0-to-2 scale. For a person with complete genotypes, the score is

$$ S_i = \sum_{j\in J} \beta_j G_{ij}. $$

A missing genotype is not a dosage of zero: zero means that no effect alleles were observed. Write \(R_{ij}=1\) when the dosage is observed and \(R_{ij}=0\) when it is missing. The missingness pattern \(R_{ij}\) indicates which terms in the sum are unavailable.

Definition: Mean-dosage imputation replaces a missing dosage at variant \(j\) by a specified mean dosage \(\mu_j\), giving \(G^*_{ij}=R_{ij}G_{ij}+(1-R_{ij})\mu_j\). Variant exclusion removes a variant from the score for every person. Sample exclusion removes a person from the analysis, commonly because one or more required genotypes are missing.

For a biallelic variant, a commonly used population mean dosage is \(\mu_j=2p_j\), where \(p_j\) is the effect-allele frequency in a suitable reference population. An empirical mean among observed target dosages is another possible estimate. Neither is automatically appropriate for every target cohort: the mean should represent the population to which the imputation is being applied, and its source should be documented.

Mean-Dosage Imputation: What It Does

With mean-dosage imputation, the score is calculated over the original variant set, substituting \(\mu_j\) only where a dosage is missing:

$$ S_i^*=\sum_{j\in J}\beta_j\{R_{ij}G_{ij}+(1-R_{ij})\mu_j\}. $$

This preserves the score’s list of weighted variants. It does not recover the unknown genotype of a particular person. Rather, it assigns that person the mean dosage for the missing term, so that term contributes the same amount to everyone missing the same variant.

Worked Example: Calculating a Score With One Missing Dosage

Suppose a hypothetical score uses three variants with weights \(\beta_1=0.40\), \(\beta_2=-0.30\), and \(\beta_3=0.20\). For one target participant, the recorded dosages are \(G_{i1}=1.6\) and \(G_{i3}=0.5\); dosage \(G_{i2}\) is missing. Suppose the specified mean dosage for variant 2 is \(\mu_2=1.1\). The imputed score is

$$ S_i^*=(0.40)(1.6)+(-0.30)(1.1)+(0.20)(0.5) =0.64-0.33+0.10=0.41. $$

The score is 0.41 score units, using the stated weights and dosage coding. For comparison only, if the unobserved dosage had actually been 2.0, the complete-data score would have been \(0.64-0.60+0.10=0.14\). The imputed score differs by \(0.27=(-0.30)(1.1-2.0)\). Since the true missing dosage is unknown, this comparison illustrates possible individual-level error; it does not establish that the imputed score is biased for this participant.

A Justification Under Missing Completely at Random

The properties of mean imputation depend on how genotypes become missing and on how well \(\mu_j\) represents their mean. For a simple result, suppose that at variant \(j\), the dosage \(G_{ij}\) has mean \(\mu_j\) and variance \(\sigma_j^2\), and the observation indicator \(R_{ij}\) is independent of \(G_{ij}\), with \(P(R_{ij}=1)=q_j\). This is a missing-completely-at-random model for that dosage: the chance of observing it does not depend on the genotype. Also suppose the imputation value is exactly \(\mu_j\).

The imputed dosage has the same expectation as the original dosage:

$$ E(G^*_{ij})=E\{R_{ij}G_{ij}+(1-R_{ij})\mu_j\} =q_j\mu_j+(1-q_j)\mu_j=\mu_j. $$

Its variance is smaller. Since \(G^*_{ij}-\mu_j=R_{ij}(G_{ij}-\mu_j)\), and \(R_{ij}^2=R_{ij}\),

$$ \operatorname{Var}(G^*_{ij}) =E\{R_{ij}(G_{ij}-\mu_j)^2\} =q_j\sigma_j^2. $$

Thus, under these assumptions, the imputed dosage has the correct mean but only the fraction \(q_j\) of the original dosage variance. For a score, the expected contribution from this variant remains \(\beta_j\mu_j\), while its variance contribution is reduced. If genotypes at distinct variants are independent and their missingness indicators satisfy the corresponding independence assumptions, the score variance is \(\sum_{j\in J}\beta_j^2q_j\sigma_j^2\). With linkage disequilibrium, cross-variant covariances also contribute, so this sum is not generally the full score variance.

This calculation explains an important limitation: mean imputation can preserve an average under the stated model while compressing individual differences. If missingness depends on genotype, or the imputation mean does not match the missing individuals’ genotype mean, even the expectation need not be preserved.

Variant Exclusion and Sample Exclusion

Variant exclusion removes the same term from every person’s score. If \(J'\subset J\) is the retained set, then the score becomes \(\sum_{j\in J'}\beta_jG_{ij}\). This avoids assigning any dosage to the excluded variant, but changes the score definition. People may still have different amounts of usable information if additional missing genotypes remain at the retained variants.

Sample exclusion instead keeps the score definition fixed but removes people who do not meet a completeness rule. For example, a complete-case rule may retain only people with observed dosages at every variant in \(J\). It produces scores for the retained participants, not for the full target cohort. If missingness is associated with ancestry, genotyping quality, or another participant characteristic, the retained group may differ systematically from those excluded.

Worked Example: How Excluding a Variant Changes Scores

Consider a hypothetical two-person target set and three variants with weights \(0.50\), \(0.40\), and \(-0.20\). Person A has dosages \(1\), missing, and \(2\); person B has dosages \(2\), \(0\), and \(1\). Suppose the mean dosage for the second variant is \(1.2\). With mean imputation, the scores are

$$ S_A^*=(0.50)(1)+(0.40)(1.2)+(-0.20)(2) =0.50+0.48-0.40=0.58, $$
$$ S_B=(0.50)(2)+(0.40)(0)+(-0.20)(1) =1.00+0-0.20=0.80. $$

Now exclude variant 2 for both people. The resulting scores are \(S'_A=0.50-0.40=0.10\) and \(S'_B=1.00-0.20=0.80\). The difference between B and A is \(0.22\) under mean imputation but \(0.70\) after variant exclusion. The change is not a calculation error: exclusion removes a weighted component from both people, but it does not remove the same amount from their scores because their dosages differ. These scores represent different variant sets and should not be treated as interchangeable measures on a common scale without a specific justification.

Worked Example: The Cost of Complete-Case Sample Exclusion

Suppose a hypothetical cohort has four participants and a two-variant score with weights \(0.60\) and \(0.25\). Three participants have complete dosages: A has \((2,0)\), B has \((1,2)\), and C has \((0,1)\). Participant D has \((1,\text{missing})\). Their complete-data scores, where available, are

$$ S_A=(0.60)(2)+(0.25)(0)=1.20,\quad S_B=(0.60)(1)+(0.25)(2)=1.10,\quad S_C=(0.60)(0)+(0.25)(1)=0.25. $$

A complete-case rule excludes D, so \(3/4=0.75\), or 75%, of the cohort remains. The mean score among the retained participants is \((1.20+1.10+0.25)/3=0.850\) score units. That average describes these three retained participants; it is not automatically an estimate of the mean score for all four people. If the missing dosage for D were replaced by a specified mean of 1.2, D’s score would instead be \(0.60+0.25(1.2)=0.900\), and the four-person mean would be \((1.20+1.10+0.25+0.90)/4=0.8625\). The two averages differ because they use different participants and, for D, different handling of the missing term.

Choosing and Auditing a Strategy

StrategyWhat is held fixed?Main consequenceKey concern
Mean-dosage imputationPeople and variant setFills missing terms with a common value per variantCan reduce score variation; depends on a suitable mean and missingness assumptions
Variant exclusionPeople, but not the original variant setRemoves the same weighted term from everyoneScores now target a reduced variant set and can have a different scale
Sample exclusionVariant set, but not the original participant setCalculates scores only for retained peopleCan reduce precision and change the composition of the analyzed cohort

These approaches answer different practical needs. Mean imputation retains participants and the planned variants; excluding a problematic variant may be reasonable when its missingness is substantial or its genotypes are unreliable; excluding samples can be useful when a predefined quality rule identifies insufficient genotype data. No strategy repairs poor genotype quality or guarantees comparable scores across datasets.

Before calculating scores, inspect missingness by variant and by participant, and report the fraction of missing dosages. Check whether missingness varies across relevant participant characteristics, such as ancestry groups or genotyping batches. Compare score distributions and the number of contributing variants under the chosen procedure. For comparisons between cohorts, use the same effect-allele coding, weights, variant set, and imputation rule wherever possible. If cohort-specific dosage means are used, the imputed contribution can differ between cohorts even when the weights match.

A common mistake is to replace every missing dosage by zero because zero is a valid genotype count. That reasoning confuses “not observed” with “observed to carry zero effect alleles.” The correction is to make the missing-data rule explicit: impute a stated mean, exclude a stated variant set, or exclude participants under a stated completeness criterion. Another mistake is to compare raw scores after one cohort has had variants removed. A common set of weights alone does not make scores comparable if the contributing variants differ.

Key takeaway: Missing-genotype handling is part of the score definition, not a neutral data-cleaning detail. State which dosages were missing, how they were handled, what variants and participants remained, and whether the resulting scores are comparable for the intended analysis.

Check Your Understanding

Answer each question, then check the concise solutions below.

  1. For a variant with effect weight \(-0.5\), a missing dosage, and imputation mean \(1.4\), what is its imputed score contribution?
  2. Under the independent missingness assumptions in the derivation, what happens to dosage expectation and variance when the observation probability is \(q=0.8\)?
  3. Why can excluding one variant change the difference between two participants’ scores?
  4. A complete-case rule removes 12 of 60 people. What percentage of the cohort is retained, and what percentage is excluded?
  5. Give one reason that cohort-specific mean-dosage imputation can complicate comparisons between cohorts.

Solutions. (1) The contribution is \((-0.5)(1.4)=-0.70\) score units. (2) The expectation remains \(\mu_j\); the variance becomes \(0.8\sigma_j^2\). (3) People generally have different dosages at the removed variant, so subtracting its weighted contribution changes their scores by different amounts. (4) \(48/60=80\%\) are retained and \(12/60=20\%\) are excluded. (5) The imputation means can differ between cohorts, giving missing genotypes different expected score contributions even when the same variant weights are used.

Clinical Biostats