Tutorials › High-Dimensional Genomic Data Analysis › Decomposing Genotype Into Ancestry-Specific Components

Ancestry-Aware Association and Cross-Population Portability · Tutorial 290 of 795

Decomposing Genotype Into Ancestry-Specific Components

Learn to decompose a genotype dosage into ancestry-specific allele counts and separate its ancestry-composition component from within-ancestry deviations.

Advanced 10 min read

What You'll Learn

  • Define local-ancestry copy counts and ancestry-specific allele counts at a biallelic locus.
  • Derive the exact identity connecting total allele dosage to its ancestry-specific components.
  • Center ancestry-specific counts at reference allele frequencies to separate composition from within-ancestry deviations.
  • Interpret the decomposition with hypothetical individual and cohort data.
  • Recognize what the algebra does—and does not—establish about association or ancestry effects.
  • Identify common coding, reference-frequency, and local-ancestry-call pitfalls.

Why Decompose an Allele Dosage?

At a biallelic locus, the usual diploid genotype dosage \(G_i\) records how many copies of a chosen allele individual \(i\) carries: 0, 1, or 2. In an admixed genome, however, those two copies may have different local ancestries. A dosage of 1 therefore does not say whether the allele copy lies on an ancestry-A chromosome, an ancestry-B chromosome, or another ancestry background. Decomposing dosage makes those contributions explicit.

This is an accounting identity, not a new association test. It clarifies how genotype variation can reflect differences in local ancestry composition, differences in allele counts among chromosomes of the same ancestry, or both. That distinction helps interpret the local-ancestry association models introduced in Regression Models for Local Ancestry Association; it does not, by itself, establish that ancestry or genotype causes a phenotype.

Define the Ancestry-Specific Counts

Consider a diploid individual \(i\) at one biallelic locus. Index the two homologous chromosomes by \(h=1,2\). Let \(X_{ih}=1\) if chromosome \(h\) carries the allele being counted and \(X_{ih}=0\) otherwise. Let \(Z_{ih}\) denote the local ancestry assigned to that chromosome at the locus. For ancestry \(a\), define \(L_{ia}\) as the number of the individual's two chromosomes assigned ancestry \(a\), and define \(G_{ia}\) as the number of counted-allele copies on those ancestry-\(a\) chromosomes.

$$ L_{ia}=\sum_{h=1}^{2} I(Z_{ih}=a), \qquad G_{ia}=\sum_{h=1}^{2} I(Z_{ih}=a)X_{ih}. $$

Here \(I(\cdot)\) equals 1 when its condition is true and 0 otherwise. Thus \(L_{ia}\) is a local-ancestry copy count, while \(G_{ia}\) is an allele count restricted to chromosomes with that local ancestry. Necessarily \(0\leq G_{ia}\leq L_{ia}\). If the possible ancestries are \(1,\ldots,K\), each of the two chromosomes has one assigned ancestry, so \(\sum_{a=1}^{K} L_{ia}=2\). The ordinary allele dosage is \(G_i=\sum_{h=1}^{2}X_{ih}\).

Definition: The ancestry-specific genotype decomposition is \(G_i=\sum_{a=1}^{K}G_{ia}\). It partitions the total allele dosage into counts on chromosomes assigned to each local ancestry. The partition is exact when the ancestry labels and allele copies are defined on the same two chromosomes and use the same counted allele.

The identity follows because every chromosome contributes its allele indicator to exactly one ancestry-specific count. It does not require independence between chromosomes, equal allele frequencies across ancestries, or a particular phenotype model. Its interpretation as separating composition from within-ancestry allele variation uses an additional reference: an allele frequency \(p_a\) for the counted allele in ancestry \(a\). These frequencies might be specified from appropriate reference data or as model parameters. They should be defined for the same allele and a relevant population; they are not supplied by the identity itself.

Separating Composition From Within-Ancestry Deviation

For each ancestry, add and subtract \(L_{ia}p_a\) from its allele count. Summing over ancestries gives a second exact identity:

$$ \begin{aligned} G_i &=\sum_{a=1}^{K}G_{ia}\\ &=\sum_{a=1}^{K}\left\{L_{ia}p_a+(G_{ia}-L_{ia}p_a)\right\}\\ &=\underbrace{\sum_{a=1}^{K}L_{ia}p_a}_{\text{ancestry-composition component}} +\underbrace{\sum_{a=1}^{K}(G_{ia}-L_{ia}p_a)}_{\text{within-ancestry deviation}}. \end{aligned} $$

The composition component is the dosage expected from the individual's local ancestry copy counts if each ancestry-\(a\) chromosome has counted-allele probability \(p_a\). The second component measures how the observed ancestry-specific counts differ from those reference-frequency expectations. It can be positive or negative. These components sum to the observed dosage; neither should be mistaken for a separately observed biological measurement.

A model-based expectation makes the interpretation precise. Suppose that, conditional on the ancestry assignments, each ancestry-\(a\) chromosome has expected counted-allele indicator \(p_a\). Linearity of expectation then gives \(E(G_{ia}\mid Z_{i1},Z_{i2})=L_{ia}p_a\), and hence \(E(G_i\mid Z_{i1},Z_{i2})=\sum_a L_{ia}p_a\). No independence assumption is needed for this expectation. It does not follow that the observed deviation is zero for an individual, or that the deviation is independent of ancestry composition in a finite sample.

Worked Example: Decomposing One Individual’s Dosage

Suppose a hypothetical individual has one ancestry-A chromosome and one ancestry-B chromosome at the locus. The counted allele is present on the A chromosome and absent on the B chromosome. Let the reference frequencies be \(p_A=0.20\) and \(p_B=0.70\). Check the ancestry-specific counts and calculate both components.

The local-ancestry counts are \(L_{iA}=1\) and \(L_{iB}=1\). The ancestry-specific allele counts are \(G_{iA}=1\) and \(G_{iB}=0\), so the observed dosage is \(G_i=1+0=1\). The partition identity is satisfied.

The composition component is \(L_{iA}p_A+L_{iB}p_B=(1)(0.20)+(1)(0.70)=0.90\) allele copies. The within-ancestry deviation is \((G_{iA}-L_{iA}p_A)+(G_{iB}-L_{iB}p_B)=(1-0.20)+(0-0.70)=0.80-0.70=0.10\) allele copies.

Adding the components gives \(0.90+0.10=1.00\), the observed dosage. The fractional composition value is an expectation under the chosen reference frequencies, not a fractional allele physically carried by the individual.

Worked Example: Same Dosage, Different Ancestry Composition

Consider two hypothetical individuals and two ancestries, A and B. Individual 1 has \(L_{1A}=2\), \(L_{1B}=0\), \(G_{1A}=1\), and \(G_{1B}=0\). Individual 2 has \(L_{2A}=0\), \(L_{2B}=2\), \(G_{2A}=0\), and \(G_{2B}=1\). Both have dosage 1. Use \(p_A=0.25\) and \(p_B=0.75\).

For individual 1, \(G_1=1+0=1\). The composition component is \((2)(0.25)+(0)(0.75)=0.50\). The deviation is \((1-2(0.25))+(0-0(0.75))=0.50+0=0.50\). Thus \(G_1=0.50+0.50=1\).

For individual 2, \(G_2=0+1=1\). The composition component is \((0)(0.25)+(2)(0.75)=1.50\). The deviation is \((0-0(0.25))+(1-2(0.75))=0-0.50=-0.50\). Thus \(G_2=1.50-0.50=1\).

The same total dosage can therefore arise with different ancestry compositions and different deviations from the selected reference expectations. The composition values are not themselves observed dosages; only their sum with the deviation reconstructs the observed dosage.

Aggregating the Components Across Individuals

The identity also holds after summing over individuals. For \(n\) people, let \(G_{ia}\) and \(L_{ia}\) be defined at the same locus for each person. Then the total allele count is \(\sum_i G_i=\sum_a\sum_i G_{ia}\), and the reference-based decomposition is \(\sum_i G_i=\sum_a p_a\sum_i L_{ia}+\sum_a\sum_i(G_{ia}-L_{ia}p_a)\). This is useful for checking calculations and describing how the cohort’s observed allele count divides according to its ancestry-specific chromosome counts and deviations. It does not turn a cohort-level total into an individual-level causal explanation.

Worked Example: Checking a Cohort-Level Decomposition

In a hypothetical cohort of two individuals, suppose individual 1 has \((L_{1A},L_{1B})=(2,0)\) and \((G_{1A},G_{1B})=(1,0)\); individual 2 has \((L_{2A},L_{2B})=(1,1)\) and \((G_{2A},G_{2B})=(0,1)\). Use \(p_A=0.25\) and \(p_B=0.75\). Calculate the observed total and its two cohort-level components.

The individuals' total dosages are \(G_1=1\) and \(G_2=1\), so \(\sum_i G_i=2\) allele copies. Across the cohort, the ancestry counts are \(\sum_iL_{iA}=2+1=3\) and \(\sum_iL_{iB}=0+1=1\). The composition component is \((3)(0.25)+(1)(0.75)=0.75+0.75=1.50\) allele copies.

The ancestry-A deviation is \((G_{1A}-L_{1A}p_A)+(G_{2A}-L_{2A}p_A)=(1-0.50)+(0-0.25)=0.25\). The ancestry-B deviation is \((0-0)+(1-0.75)=0.25\). The total deviation is \(0.25+0.25=0.50\). Therefore, the cohort total is \(1.50+0.50=2.00\), matching the observed total.

Assumptions, Diagnostics, and Alternatives

For the count identity, the essential requirements are limited: the locus is treated as diploid and biallelic; the counted allele is coded consistently; and each chromosome's allele and local ancestry are paired on that same chromosome. The reference-frequency interpretation adds the requirement that each \(p_a\) represents the allele frequency relevant to ancestry-\(a\) chromosomes in the analysis. If that interpretation is used as an expectation model, its conditional mean assumption must be appropriate for the population and locus being described. The algebraic decomposition remains true even if those reference frequencies are poorly chosen, but the composition and deviation then have a less useful interpretation.

A practical diagnostic is to verify, for every person and locus, that \(\sum_aL_{ia}=2\), that \(0\leq G_{ia}\leq L_{ia}\), and that \(\sum_aG_{ia}=G_i\). These checks can uncover inconsistent allele coding, dropped ancestry categories, or a mismatch between phased ancestry labels and genotype data. For a dosage represented as an expectation under uncertain calls, the corresponding component quantities should be constructed consistently; additivity of expected values is valid when they refer to the same underlying allele and ancestry assignments. Such a dosage does not make the ancestry assignment known with certainty.

The raw dosage \(G_i\) is the simplest summary and is often adequate when the analysis asks only about total allele copies. The counts \(G_{ia}\) retain which ancestry carries those copies. The centered decomposition goes further by expressing the dosage relative to chosen ancestry-specific frequencies. These are different representations of related data, not interchangeable claims: the centered representation depends on the \(p_a\) values, while the raw count identity does not. The decomposition is not, by itself, a regression specification, a test of association, or a test of differing genetic effects across ancestries.

Common Mistakes and Limitations

  • Calling the composition component the observed genotype. It is a reference-frequency expectation based on local ancestry counts. The observed dosage includes the deviation as well.
  • Assuming a zero deviation for each person. Even under a correct frequency model, individual allele counts vary. The expectation statement concerns an average conditional on ancestry, not a guarantee for every person.
  • Changing allele coding midway. If one count uses the alternate allele and another uses the reference allele, the partition will not be meaningful. Use one counted allele throughout.
  • Treating reference frequencies as universal constants. Their meaning depends on how ancestry groups and reference data are defined. Inaccurate or poorly matched values can distort the composition-versus-deviation interpretation, although they cannot break the basic count identity.
  • Inferring causation or independence from the arithmetic. A decomposition partitions a measured dosage; it does not show that ancestry causes a phenotype or that its components are statistically independent.

The principal limitation is therefore interpretive: the exact partition is determined by counts, but the biological or statistical meaning of its centered components depends on allele definition, local-ancestry calls, and reference frequencies. A transparent analysis reports those choices rather than presenting the components as self-explanatory quantities.

Key takeaway: At a diploid locus, total dosage is the sum of ancestry-specific allele counts. Adding and subtracting \(L_{ia}p_a\) expresses that dosage as an ancestry-composition expectation plus a within-ancestry deviation. The first identity is exact bookkeeping; the second has a reference-frequency interpretation only when the chosen \(p_a\) values are appropriate.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A person has \(L_A=1,L_B=1\), \(G_A=0,G_B=1\), and the counted-allele frequencies are \(p_A=0.30,p_B=0.60\). Find the dosage, composition component, and total deviation.
  2. Why can two people with the same total dosage have different composition components?
  3. State one condition needed for the ancestry-specific count identity and one additional condition needed to interpret \(\sum_a L_{ia}p_a\) as a conditional expectation.
  4. A data record gives \(\sum_aL_{ia}=2\) but \(\sum_aG_{ia}=G_i-1\). What should be checked before interpreting the decomposition?

Solutions. (1) \(G=G_A+G_B=0+1=1\). The composition component is \((1)(0.30)+(1)(0.60)=0.90\). The deviation is \((0-0.30)+(1-0.60)=-0.30+0.40=0.10\), and \(0.90+0.10=1.00\). (2) Their local-ancestry counts can differ, and the composition component weights those counts by ancestry-specific frequencies; equal total allele counts do not require equal ancestry composition. (3) For example, every chromosome must be assigned one ancestry and its allele must be counted consistently. For the expectation interpretation, the conditional mean of the counted-allele indicator on ancestry-\(a\) chromosomes must be \(p_a\). (4) Check allele coding, whether all ancestry categories were included, and whether ancestry labels and allele copies were paired at the same locus and on the same chromosomes. The stated mismatch violates the count identity and should be resolved before interpretation.

Clinical Biostats