Tutorials › High-Dimensional Genomic Data Analysis › Allele Harmonization for Cross-Population Summary Statistics

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

Allele Harmonization for Cross-Population Summary Statistics

You will learn a reproducible set of checks for harmonizing variant alleles and effect estimates across populations without mistaking orientation errors for biological differences.

Advanced 13 min read

What You'll Learn

  • Recode an additive effect estimate when the counted allele changes.
  • Translate alleles between forward and reverse strands without confusing complements with the two alleles at a site.
  • Check genome-build coordinates, reference alleles, and variant normalization before matching records.
  • Use effect-allele frequencies as consistency checks while allowing genuine ancestry differences.
  • Identify palindromic variants and decide when frequency information is insufficient to orient them.

Why Allele Harmonization Matters

A reported association estimate is tied to a particular allele coding. One study may report the change in outcome per copy of G, while another reports the change per copy of A at the same biallelic site. If these estimates are compared without accounting for which allele is counted, their signs can appear to disagree even when the underlying association is consistent. A strand mismatch or genome-build mismatch can also make records that look similar refer to different alleles or positions.

Harmonization is the process of putting variant records and effect estimates into a common, verified orientation before comparing them. It is a data-integrity step, not a test of whether effects are equal and not evidence that the same causal mechanism operates across populations. The earlier material on association effect scales across populations is relevant here: estimates should be compared on compatible outcome and effect scales, but this tutorial focuses on identifying and aligning the alleles to which those estimates refer.

Definition: For a biallelic variant, the effect allele is the allele whose dosage is used as the predictor for a reported effect estimate. The other allele is the second allele at that variant. The effect-allele frequency (EAF) is the frequency of the effect allele in the analyzed sample. A harmonized record expresses each estimate relative to the same specified allele, at the same variant representation and genomic location.

Allele Recoding and the Sign of an Effect

Suppose a diploid biallelic genotype is coded as a dosage \(G\), the number of copies of allele A, so \(G\) is 0, 1, or 2. If the other allele is B, the dosage of B is \(G'=2-G\). Under an additive model for a quantitative outcome, with covariates \(C\), write

$$ E(Y\mid G,C)=\alpha+\beta G+\gamma^{T}C. $$

Substituting \(G=2-G'\) gives the same model in terms of B dosage. This establishes the sign change directly:

$$ E(Y\mid G',C)=(\alpha+2\beta)-\beta G'+\gamma^{T}C, \qquad \beta'=-\beta. $$

Thus, changing the counted allele reverses the coefficient under this equivalent additive coding. The intercept changes, while the fitted values do not. In a linear model, the standard error is unchanged by this sign reversal; the test statistic changes sign and a two-sided p-value is unchanged. The same recoding logic applies to an additive logistic regression model on the log-odds scale: the coefficient changes sign and the intercept changes, while fitted probabilities remain the same. This reasoning assumes the same individuals, outcome, covariates, and model, and a dosage range of 0 to 2. Do not apply \(2-G\) without adjustment to a variant whose ploidy or dosage scale differs, such as some sex-chromosome analyses.

Worked Example: Reversing the Counted Allele

Suppose Population 1 reports an additive estimate of \(\beta_G=0.20\) outcome units per G allele, with \(SE=0.05\), and EAF for G equal to 0.30. Population 2 reports an estimate of \(\beta_A=-0.12\) outcome units per A allele, with \(SE=0.04\), and EAF for A equal to 0.75. Assume both records refer to the same biallelic A/G variant, the same effect scale, and compatible models.

To compare estimates per G allele, Population 1 is already in the target orientation. In Population 2, A and G are the two alleles at this biallelic site, so switching the counted allele from A to G reverses the sign:

$$ \beta_G=-\beta_A=-(-0.12)=0.12, \qquad SE(\beta_G)=0.04. $$

The frequency check agrees with that recoding: the G frequency in Population 2 is \(1-0.75=0.25\). The two G-oriented estimates are therefore 0.20 and 0.12 outcome units per G allele. Their difference is \(0.20-0.12=0.08\) outcome units per G allele. Their signed Wald statistics are \(0.20/0.05=4.00\) and \(0.12/0.04=3.00\). Harmonization makes their directions comparable; it does not establish that the estimates are equal or explain their difference.

Strand Orientation and Variant Identity

DNA alleles can be reported on the forward or reverse strand. The base complements are A with T and C with G. For example, a forward-strand C/T record corresponds to G/A on the reverse strand: C maps to G, and T maps to A. Complementing the allele labels is distinct from changing which of the two alleles is counted. First translate a reverse-strand record to the chosen strand; then, if necessary, recode the effect estimate to the chosen effect allele. Keeping these as separate steps prevents sign errors.

A variant identifier alone is not a sufficient harmonization check. Records should be checked using the chromosome, position, genome assembly, and alleles, with a consistent representation of the variant. For insertions and deletions, equivalent records can have different textual representations unless they are normalized, commonly by left alignment and trimming redundant sequence against the reference. A genome-build conversion can change coordinates and may fail or map ambiguously. After conversion, verify that the alleles agree with the reference sequence for the target build; do not assume a successful coordinate conversion guarantees a valid allele match.

Worked Example: Converting a Reverse-Strand Record

Suppose a forward-strand record at a verified biallelic site has alleles C/T, reports the effect per T allele as \(0.15\) outcome units with \(SE=0.06\), and has T frequency 0.40. A second study reports the reverse-strand alleles G/A, an effect per G allele of \(-0.10\) outcome units with \(SE=0.05\), and G frequency 0.35. Assume the genomic locations have been verified to match and the studies use compatible effect scales.

On the forward strand, reverse-strand G maps to C, and reverse-strand A maps to T. Therefore, the second study's effect allele G corresponds to forward-strand C, not T. To express its estimate per forward-strand T allele, reverse the counted allele:

$$ \beta_T=-\beta_C=-(-0.10)=0.10, \qquad SE(\beta_T)=0.05. $$

The frequency check is consistent with this mapping. The second study's G frequency of 0.35 is the forward-strand C frequency, so its forward-strand T frequency is \(1-0.35=0.65\). This differs from 0.40 in the first study. If the samples represent different ancestry groups, that difference may be genuine; it is not by itself proof of an orientation error. If the samples were expected to be closely matched, it would prompt further checks of sample definition, variant identity, and frequency quality.

Genome Builds and Frequency Checks

A coordinate is meaningful only with its genome assembly. Before combining records, specify a target build and confirm that each record has been mapped to it. Check that the target position and alleles are valid for that assembly, and inspect any conversion failures, ambiguous mappings, or reference-allele mismatches. A record that maps to a nearby coordinate is not automatically the same variant. For indels and other complex variants, compare normalized allele representations rather than relying on position alone.

Allele frequencies are useful as cross-checks, but they must be interpreted in population context. If one record reports the frequency of an allele and another reports the frequency of the other allele, their frequencies should sum to one within the same sample, apart from rounding or differences in how frequencies were estimated. Across ancestry groups, however, the frequency of the same correctly aligned allele can differ substantially. Harmonization means aligning which allele a frequency and effect describe; it does not mean forcing ancestry-specific frequencies to agree.

Worked Example: Combining Build and Allele Checks

Suppose a hypothetical Build 37 record is at chromosome 7, position 55,123,456, with REF=A and ALT=G. It reports an effect per G allele of \(0.14\) outcome units, \(SE=0.05\), and G frequency 0.28. After conversion, a validated Build 38 record is at chromosome 7, position 55,118,900, with REF=A and ALT=G. A second study reports the effect per A allele as \(-0.14\) outcome units, \(SE=0.05\), and A frequency 0.72.

First, the build-specific positions differ, so matching by numerical coordinate alone would be wrong. Assume the conversion was unambiguous and that the Build 38 position and A/G alleles were verified against the target reference. Both records then identify the same variant representation on Build 38. To express both effects per G allele, recode the second estimate:

$$ \beta_G=-\beta_A=-(-0.14)=0.14, \qquad SE(\beta_G)=0.05. $$

The frequency check also agrees: the second study's G frequency is \(1-0.72=0.28\). The aligned estimates are both 0.14 outcome units per G allele. This agreement is reassuring about the orientation and identity checks, but it is not a substitute for verifying the model, sample, and effect scale.

Palindromic Variants Require Special Care

A palindromic single-nucleotide variant has allele pairs A/T or C/G. The pair looks the same after complementing and reversing the order of the alleles: for example, A/T becomes T/A. Consequently, allele letters alone cannot reveal whether a palindromic record was reported on the forward or reverse strand. This is different from a non-palindromic pair such as C/T, whose reverse-strand complement G/A gives a visible clue about strand orientation.

For a palindromic variant, effect-allele frequency may help only under suitable conditions. If the allele frequency is reliable, well away from 0.5, and can be compared to a frequency from an appropriate, sufficiently similar population, the frequency can distinguish candidate orientations. If the frequency is close to 0.5, the two orientations are difficult to distinguish because the complementary frequencies are also close to 0.5. If ancestry groups differ, comparing their frequencies as though they should match can create a false orientation decision. When orientation cannot be resolved confidently, flag the variant as ambiguous and exclude it from analyses requiring a known common effect allele, or handle it with a prespecified method that accounts for the uncertainty.

Worked Example: An Unresolved Palindromic Variant

A study reports an A/T variant with effect allele A, EAF 0.49, and an estimate of \(0.08\) outcome units with \(SE=0.03\). Another study reports the same apparent A/T pair with effect allele A and EAF 0.51. The second study's strand is undocumented, and no reliable frequency from a suitably matched reference sample is available.

If both records use the same strand, the second effect is already per A. If the second record uses the opposite strand, its reported A corresponds to the first record's T, and its effect would need a sign reversal to express it per the first record's A. The EAF near 0.5 does not settle the question: under one orientation its A frequency is 0.51, while after a strand reversal the corresponding frequency is \(1-0.51=0.49\). Both possibilities are consistent with the values shown. The appropriate conclusion is that the second estimate's orientation is unresolved, not that its sign should be selected to make the estimates agree. Without additional reliable information, exclude or separately flag this variant for comparisons requiring aligned effects.

A Practical Harmonization Sequence

1
Choose the target representation.
Specify the genome build, strand convention, normalized variant representation, and effect allele to which all records will be aligned.
2
Verify variant identity.
Check chromosome, build-specific position, and alleles. Convert builds where necessary, review failed or ambiguous conversions, and validate the alleles against the target reference.
3
Resolve strand and allele coding.
Complement alleles when a verified strand change requires it. Then separately flip the effect sign and replace EAF with its complement if the reported effect allele differs from the target allele.
4
Check frequencies and flag uncertainty.
Compare frequencies for the same allele, taking ancestry and sample differences into account. Treat palindromic variants with unresolved orientation as ambiguous rather than guessing.
5
Retain an audit trail.
Record the original and harmonized alleles, any strand or sign changes, frequency checks, build conversion status, and exclusions. This makes later comparisons reproducible.

Diagnostics, Alternatives, and Limitations

Useful diagnostics include counting how many records required a sign flip, checking whether aligned frequencies are complements when expected, and examining the distribution of frequency discrepancies within ancestry groups. A concentration of apparent sign reversals, unexpected allele mismatches, or implausible frequency patterns can indicate a pipeline problem. Frequency discrepancies should be investigated, not automatically “corrected”: they may reflect ancestry, sampling variation, different sample inclusion, imputation quality, or a coding error.

Matching only by variant identifier is quicker but can miss build, allele, and representation errors. Inferring orientation from the sign of the association estimate is not a valid alternative: it makes the desired direction determine the coding and can conceal real differences. Dropping every palindromic variant is conservative and often appropriate when orientation information is poor, but it can discard usable variants when reliable frequency information and strand metadata resolve them. Conversely, frequency-based resolution is unsafe when frequencies are imprecise, near 0.5, or drawn from populations that are not comparable.

Harmonization cannot repair a wrongly specified model, an incompatible outcome scale, an incorrect sample label, or a variant that was misidentified before the summary statistics were produced. Nor does successful alignment imply that an allele has the same association effect in each population. It only ensures that the reported estimates are expressed for a verified common allele at a common variant representation, as far as the available data permit.

Common pitfall: “The effect signs differ, so one study must have an opposite biological effect.” That conclusion is premature if the studies count different alleles. First verify variant identity and strand, then recode both estimates to the same effect allele. If the signs still differ after correct harmonization, investigate the statistical and population context rather than changing the orientation again.

Check Your Understanding

Answer each question by applying the allele and frequency checks explicitly.

  1. Study A reports an effect per C allele of 0.06 outcome units. Study B reports an effect per G allele of 0.02 at the same confirmed C/G site. What is Study B's estimate per C allele?
  2. A non-palindromic forward-strand C/T variant is reported on the reverse strand as G/A. Which reverse-strand allele corresponds to forward-strand T?
  3. At an A/T variant, a record has EAF 0.50 and undocumented strand. Can the frequency determine its orientation? Explain.
  4. Two studies report different frequencies for the same harmonized allele in different ancestry groups. Must one record be misoriented?

Solutions. (1) C and G are the two alleles at this site. Switching the counted allele reverses the sign, so Study B's estimate per C is \(-0.02\) outcome units. (2) Forward T complements to reverse A, so reverse-strand A corresponds to forward-strand T. (3) No. A frequency of 0.50 is unchanged by taking its complement, so it cannot distinguish the two orientations; additional reliable strand or population-matched information is needed. (4) No. A genuine ancestry-related frequency difference is possible. The frequencies should be checked for consistent allele coding and data quality, but they need not be equal across ancestry groups.

Clinical Biostats