Q&A-5Design and defend an analysis for allele orientation.
Answer
Assumptions. Two sources of summary statistics (discovery plus replication, or GWAS plus an eQTL panel) each with its own reference build, effect allele and beta. The goal is one table where beta is per-copy of a single agreed effect allele on a single build. Everything below assumes biallelic SNPs and indels; structural variants need a separate path.
Core answer. Harmonize in five steps: normalize, lift, match, orient, drop.
-
Normalize. Split multiallelic records to biallelic (
bcftools norm -m -any) and left-align/trim indels against the reference FASTA. VCF 4.2/4.3 defines REF/ALT per record; a multiallelicA>G,Tcarries two effects that cannot share one beta. -
Lift to one build. GRCh37→GRCh38 with CrossMap or Picard LiftoverVcf. Verify by allele-match rate against the target reference; a clean liftover keeps >99% of common variants, and any variant whose REF no longer matches the target FASTA is dropped, not guessed.
-
Match on
chr:pos:REF:ALT, not rsID. rsIDs get reused and merged (dbSNP build 155 retired thousands); the coordinate-plus-allele key is stable. -
Orient the effect allele. If EA == REF, keep beta. If EA == ALT, flip the sign of beta (and the effect-allele frequency becomes 1−EAF). If EA matches neither REF nor ALT, drop: that is a build or strand error, not a sign question.
-
Resolve palindromes. A/T and C/G SNPs are strand-ambiguous: the reverse complement of A/T is A/T, so alleles alone cannot tell forward from reverse strand. Use allele frequency against a reference panel (gnomAD v3, 1000 Genomes): if the reported EAF is within ~0.08 of 0.5 (MAF > 0.42), frequency cannot disambiguate the strand, so drop; otherwise flip to match the panel's frequency.
Defend the choices. Flip when alleles are swapped but unambiguous: it recovers the variant at no cost. Drop palindromic variants with MAF near 0.5 because a wrong sign there is undetectable and silently inverts the replication. Drop non-matching alleles because keeping them means guessing. The cost of dropping is lost power; the cost of a sign flip is a false replication, which is worse.
Worked trace. Discovery on GRCh37, replication on GRCh38, harmonizing to GRCh38 with effect allele = ALT.
| variant | disc EA/beta | rep EA/beta | action | harmonized beta (EA=ALT) |
|---|---|---|---|---|
| rs1234 A>G | G / +0.05 | A / +0.03 | rep EA=REF → flip | +0.05, −0.03 |
| rs5678 A>T | A / +0.02 | A / +0.02 | palindromic, MAF 0.48 → drop | — |
| rs9012 C>G | G / −0.04 | G / −0.04 | EA=ALT both → keep | −0.04, −0.04 |
After harmonization the two betas agree in sign for rs1234 and rs9012; rs5678 is dropped.
Failure modes and detection.
- Sign flip: betas anti-correlate across the set. Detect via sign-concordance rate; <90% on non-palindromic variants means a systematic flip.
- REF-effect confusion: EA recorded as REF. Detect by checking EA ∈ {REF, ALT} per variant; any EA outside that set is a build/strand error.
- Multiallelic collapse: two ALT alleles sharing one beta. Detect by counting ALT alleles per record before normalization.
- Strand ambiguity: palindromic SNPs. Detect by REF/ALT ∈ {A/T, C/G} and MAF > 0.42.
- Build mismatch: positions shifted by liftover. Detect by REF-match rate against the target FASTA; a sudden drop flags the wrong build.
- Variant-ID reuse: one rsID mapping to multiple positions. Detect by counting distinct chr:pos per rsID.
Report the sign-concordance rate and the drop count as the analysis's own QC.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.