6.1.9Genomics

Explain genome-wide association studies (GWAS)

3,592 words16 min readdifficulty · medium3 backlinks

Date: 2026-07-01
Tags: #genomics #GWAS #complex-traits #statistical-genetics #SNP-analysis


Overview

Genome-Wide Association Studies (GWAS) are systematic approaches to identify genetic variants (specifically single nucleotide polymorphisms or SNPs) associated with specific traits or diseases across entire genomes by comparing allele frequencies between cases and controls.


[!intuition] Core Intuition

Think of GWAS as a genetic treasure hunt across millions of locations. Imagine you want to find out why some people are tall and others short. Instead of checking one or two genes, you check hundreds of thousands to millions of genetic positions simultaneously across many people.

The key insight: If a particular genetic variant (like having an A instead of G at position 12,345,678 on chromosome 7) appears much more frequently in tall people than short people, that variant is associated with height. It's like noticing that people wearing red shirts cluster at the tall end of a line—the red shirt (genetic variant) is corelated with tallness, even if it doesn't directly cause it.

Why GWAS matters: Most common diseases and traits (diabetes, height, schizophrenia, blood pressure) are polygenic—influenced by many genes, each with small effects. GWAS is the tool that can detect these subtle genetic contributions.


[!definition] Formal Definition

A genome-wide association study (GWAS) is an observational study of a genome-wide set of genetic variants in different individuals to determine if any variant is associated with a phenotype. GWAS typically focus on associations between single nucleotide polymorphisms (SNPs) and major traits or diseases.

Key components:

  • Cases: Individuals with the disease/trait
  • Controls: Individuals without the disease/trait
  • SNPs: Genetic markers tested (typically 500,000 to 5+ million)
  • Association test: Statistical comparison of allele frequencies

[!formula] Statistical Foundation

The2×2 Contingency Table

For each SNP, we construct a table comparing allele frequencies:

Cases Controls
Allele A a b
Allele G c d

Chi-Square Test of Association

χ2=n(adbc)2(a+b)(c+d)(a+c)(b+d)\chi^2 = \frac{n(ad - bc)^2}{(a+b)(c+d)(a+c)(b+d)}

where n=a+b+c+dn = a + b + c + d (total allele count).

Why this formula?

  • The numerator (adbc)2(ad - bc)^2 measures deviation from independence. If alleles are distributed identically in cases and controls, adbcad \approx bc, making χ20\chi^2 \approx 0.
  • The denominator normalizes by marginal totals, accounting for overall allele frequencies and sample sizes.
  • Under the null hypothesis (no association), χ2\chi^2 follows a chi-square distribution with 1 degree of freedom.

P-value and Significance

P=P(χ(1)2χobserved2)P = P(\chi^2_{(1)} \geq \chi^2_{observed})

But we test millions of SNPs, so we need Bonferroni correction:

αcorrected=αm\alpha_{corrected} = \frac{\alpha}{m}

where mm is the number of independent tests.

Derivation of genome-wide significance threshold:

  • Start with α=0.05\alpha = 0.05 (standard significance)
  • Assume ~1 million independent SNPs (accounting for linkage disequilibrium)
  • αGW=0.051,000,000=5×108\alpha_{GW} = \frac{0.05}{1,000,000} = 5 \times 10^{-8}

Why this matters: This is the famous genome-wide significance threshold: p < 5×10⁻⁸. Any association weaker than this is likely a false positive.

Odds Ratio

To quantify effect size, we calculate the odds ratio (OR):

OR=a/cb/d=adbcOR = \frac{a/c}{b/d} = \frac{ad}{bc}

Why use odds ratio?

  • OR = 1: No association (allele frequency identical in cases and controls)
  • OR > 1: Risk allele (more common in cases)
  • OR < 1: Protective allele (less common in cases)

Derivation from first principles:

  • Odds of disease given allele A: ac\frac{a}{c} (cases with A : controls with A)
  • Odds of disease given allele G: bd\frac{b}{d}
  • Ratio of these odds gives the odds ratio

For small effect sizes (typical in GWAS), we often report log odds ratio because it's symmetric around zero and approximately normal in distribution.


[!example] Worked Example 1: Type 2 Diabetes SNP

Setup: We genotype SNP rs7903146 in the TCF7L2 gene in 5,000 Type 2 Diabetes (T2D) cases and 5,000 controls.

Data:

  • T2D cases: 3,200 have T allele, 1,800 have C allele
  • Controls: 2,400 have T allele, 2,600 have C allele

Step 1: Construct contingency table

Cases Controls Total
T allele 3,200 2,400 5,600
C allele 1,800 2,600 4,400
Total 5,000 10,000

Why this step? We need to organize observed frequencies to compare against expected frequencies under independence.

Step 2: Calculate chi-square statistic

χ2=10,000(3,200×2,6002,400×1,800)25,600×4,400×5,000×5,000\chi^2 = \frac{10,000(3,200 \times 2,600 - 2,400 \times 1,800)^2}{5,600 \times 4,400 \times 5,000 \times 5,000}

=10,000(8,320,0004,320,000)2616,000,000,000,000= \frac{10,000(8,320,000 - 4,320,000)^2}{616,000,000,000,000}

=10,000×16,000,000,000616,000,000,000=259.74= \frac{10,000 \times 16,000,000,000}{616,000,000,000} = 259.74

Why this step? The large χ2\chi^2 value indicates a strong deviation from the null hypothesis of no association.

Step 3: Find p-value

With χ2=259.74\chi^2 = 259.74 and df = 1, we get p < 10⁻⁵⁷ (far below 5×10⁻⁸).

Why this step? This extremely small p-value confirms genome-wide significance—this SNP is robustly associated with T2D.

Step 4: Calculate odds ratio

OR=3,200×2,6002,400×1,800=8,320,0004,320,000=1.93OR = \frac{3,200\times 2,600}{2,400 \times 1,800} = \frac{8,320,000}{4,320,000} = 1.93

Interpretation: Individuals carrying the T allele have 1.93× higher odds of developing Type 2 Diabetes compared to those with the C allele.

Why this step? While p-value tells us the association is real, OR tells us the magnitude of the effect—a 93% increase in odds is clinically meaningful.


[!example] Worked Example 2: Manhattan Plot Interpretation

Setup: You've run a GWAS for schizophrenia with 500,000 SNPs across 10,000 cases and 10,000 controls.

Results visualization: A Manhattan plot displays −log₁₀(p-value) on y-axis vs. chromosomal position on x-axis.

Key features:

  1. Genome-wide significance line: Horizontal line at −log₁₀(5×10⁻⁸) = 7.3
  2. Peaks above the line: Significant associations
  3. Chromosome clustering: Multiple nearby SNPs showing association (linkage disequilibrium)

Example peak: Chromosome 6, position 25-35 Mb, showing 15 SNPs with p < 5×10⁻⁸.

Why this step? The clustering tells us this isn't 15 independent findings—these SNPs are in linkage disequilibrium (LD), meaning they're inherited together. This region contains one causal variant (or a few), and the others are just tagging it.

Step for fine-mapping: To identify the causal variant:

  1. Calculate LD between all SNPs in this region
  2. Perform conditional analysis: Test each SNP while controlling for the top SNP
  3. SNPs that remain significant are likely independent signals
  4. SNPs that become non-significant were just tagging the top SNP

Why this matters? This distinguishes genuine causal variants from corelated bystanders.


[!example] Worked Example 3: Power Calculation

Question: How many samples do we need to detect a SNP with OR = 1.2(small effect) at genome-wide significance (p < 5×10⁻⁸) with 80% power?

Step 1: Set parameters

  • Effect size: OR = 1.2
  • Risk allele frequency: f = 0.3(common variant)
  • Significance level: α = 5×10⁻⁸
  • Desired power: 1 - β = 0.80

Step 2: Convert OR to genetic relative risk

For a multiplicative model: GR=OR1f+f×ORGR = \frac{OR}{1 - f + f \times OR}

Why this formula? OR measures association in case-control studies, but the underlying genetic model uses relative risk. This converts between them.

GRR=1.210.3+0.3×1.2=1.21.06=1.132GRR = \frac{1.2}{1 - 0.3 + 0.3 \times 1.2} = \frac{1.2}{1.06} = 1.132

Step 3: Apply power formula

For a chi-square test: n=(Zα/2+Zβ)22f(1f)(GRR1)2×K×(1K)n = \frac{(Z_{\alpha/2} + Z\beta)^2}{2f(1-f)(GRR - 1)^2 \times K \times (1-K)}

where K = disease prevalence.

Why this formula? Statistical power depends on:

  • Signal strength: (GRR1)2(GRR - 1)^2 (effect size)
  • Genetic variance: 2f(1f)2f(1-f) (heterozygosity)
  • Sample composition: K(1K)K(1-K) (case-control balance)

For schizophrenia, K ≈ 0.01 (1% prevalence), balanced design:

n=(5.45+0.84)22×0.3×0.7×0.1322×0.01×0.99n = \frac{(5.45 + 0.84)^2}{2 \times 0.3 \times 0.7 \times 0.132^2 \times 0.01 \times 0.99}

=39.560.0000714554,000 per group= \frac{39.56}{0.0000714} \approx 554,000 \text{ per group}

Interpretation: We need ~1.1 million total samples (550K cases + 550K controls) to reliably detect a common variant with small effect (OR = 1.2) at genome-wide significance.

Why this matters: This explains why early GWAS (with 5,000-10,000 samples) missed most common variant associations. Current mega-GWAS consortia with >500,000 samples are necessary, not excessive.


[!mistake] Common Mistakes

Mistake 1: "Significant SNP = Causal Gene"

Why it feels right: The SNP shows strong association, so it must be causing the disease.

Why it's wrong: Most GWAS SNPs are not causal—they're in linkage disequilibrium with the true causal variant. The significant SNP might be in a gene desert, while the causal variant is in a regulatory region 200 kb away, affecting different gene.

The fix:

  1. GWAS identifies loci (regions), not causal variants
  2. Requires fine-mapping with denser genotyping/sequencing
  3. Needs functional follow-up (expression QTL, CRISPR validation) to identify mechanism

Example: The FTO locus was associated with obesity, and everyone assumed FTO gene was causal. Years later, researchers discovered the causal variants regulate IRX3 and IRX5, genes 500 kb away, which control thermogenesis.


Mistake 2: "No genome-wide significant hits = No genetic basis"

Why it feels right: If GWAS finds nothing significant, the trait must not be genetic.

Why it's wrong: Four possible explanations:

  1. Insufficient power: Effect sizes too small for your sample size
  2. Rare variants: GWAS chips capture common variants (MAF > 5%); rare variants need sequencing
  3. Structural variants: CNVs, inversions not captured by SNP arrays
  4. Environmental interaction: Genetic effects only manifest in specific environments (G×E)

The fix:

  • Check heritability estimates from twin/family studies (if h² > 0, there IS genetic component)
  • Increase sample size (mega-consortia with 100K+ samples)
  • Use sequencing-based approaches for rare variants
  • Consider polygenic risk scores (PRS) that aggregate weak signals

Example: Schizophrenia has h² ≈ 80% but early GWAS found nothing. With >100,000 samples, modern GWAS identified 200+ loci, explaining ~20% of heritability. The "missing heritability" is distributed across thousands of variants with tiny effects.


Mistake 3: "P-value ranking = Effect size ranking"

Why it feels right: The SNP with lowest p-value must have the strongest biological effect.

Why it's wrong: P-value depends on both effect size AND sample size (and allele frequency). A common variant (MAF = 0.4) with OR = 1.15 can have p = 10⁻⁵⁰, while a rare variant (MAF = 0.01) with OR = 3.0 might have p = 10⁻⁶.

The fix: Always report effect size (OR or β) and confidence intervals alongside p-values. For clinical/biological interpretation, effect size matters more.

Example: In height GWAS, the top p-value SNP (p = 10⁻⁷⁰) explains 0.4 cm of height, while a rarer variant (p = 10⁻⁸) explains 2cm. The latter is more biologically interesting despite weaker p-value.


Mistake 4: "GWAS requires family studies or pedigrees"

Why it feels right: Genetics studies traditionally used families to track inheritance.

Why it's wrong: GWAS is a population-based approach using unrelated individuals. The power comes from:

  • Large sample sizes (not deep pedigrees)
  • Common variant discovery (not rare Mendelian mutations)
  • Population allele frequency differences between cases and controls

The fix: Recognize that GWAS and linkage analysis are complementary:

  • Linkage (family-based): Good for rare, high-penetrance variants (Mendelian diseases)
  • GWAS (population-based): Good for common, low-penetrance variants (complex traits)

Example: Huntington's disease (caused by single CAG repeat expansion) was mapped by linkage analysis. Type 2 diabetes (polygenic, 500+ variants) was dissected by GWAS.


[!recall]- Feynman Explanation (Age 12)

Imagine you have 1,000 kids in your school, and you notice that some kids are really tall and some are short. You wonder: "Is there something in their DNA that makes them tall?"

Your DNA is like an instruction book with3 billion letters (A, T, C, G). Sometimes one kid has an "A" at position #12345 while another kid has a "G" at that same position. These tiny differences are called SNPs (pronounce it "snips").

Here's what scientists do in a GWAS:

  1. They measure everyone's height
  2. They check about 1 million of these SNP positions in every person
  3. For each SNP, they ask: "Do more tall kids have A, while more short kids have G?"

If they find that yes, tall kids are way more likely to have A at position #12345, that SNP is associated with height. It's like finding a clue!

But here's the tricky part: Having that "A" doesn't cause you to be tall by itself. It's just a marker. Think of it like this: if all the tall kids wear red backpacks, you might notice "red backpack = tall kid" correlation. But the backpack doesn't make you tall! Similarly, the SNP might just be sitting near the actual gene that affects height.

Scientists have to do a LOT of extra work to figure out which gene is really responsible and how it works. The GWAS just gives them a map with "X marks the spot" for where to dig deeper.

Why do they need so many people? Because each SNP only makes a tiny, tiny difference—maybe 1 millimeter of height. To spot such a small effect, you need thousands of people. It's like trying to hear a whisper in a noisy room—you need many people to confirm "Yes, I heard it too!"


[!mnemonic] Memory Aids

GWAS = "Genome-Wide A-lot-of SNPs"

  • Genome-wide: Scan the entire genome
  • Wide: Hundreds of thousands to millions of positions
  • Association: Looking for correlation, not causation
  • Studies: Population-based comparison

The 5×10⁻⁸ rule: "Five in a hundred million" sounds harsh, but remember: "Million tests, micro-p" (testing millions of SNPs requires microscopic p-values).

OR interpretation:

  • OR = 1: "One is none" (no effect)
  • OR = 2: "Two times the trouble" (double the risk)
  • OR = 0.5: "Half the hazard" (protective)

LD (Linkage Disequilibrium): "Linked DNA goes Downstream together"—nearby SNPs are inherited as blocks, so they correlate even if only one is causal.


Key Concepts

  • Genome-Wide Association Study (GWAS): Systematic scan of genetic variants across entire genomes to identify associations with traits/diseases
  • Single Nucleotide Polymorphism (SNP): Single-base DNA variation at a specific genomic position (e.g., A vs. G)
  • Case-control design: Compare allele frequencies between individuals with trait (cases) and without (controls)
  • Genome-wide significance: P-value threshold of 5×10⁻⁸ accounting for multiple testing correction
  • Odds Ratio (OR): Measure of effect size; ratio of odds of disease given risk allele vs. reference allele
  • Linkage Disequilibrium (LD): Non-random association of alleles at different loci due to physical proximity on chromosome
  • Manhattan plot: Visualization showing −log₁₀(p-value) across all chromosomes
  • Minor Allele Frequency (MAF): Frequency of the less common allele at a SNP (common variants: MAF > 5%)
  • Fine-mapping: Follow-up analysis to pinpoint causal variants within associated loci
  • Polygenic trait: Phenotype influenced by many genetic variants, each with small effect
  • Missing heritability: Gap between heritability estimated from families vs. variance explained by discovered SNPs

Connections

  • Single Nucleotide Polymorphisms (SNPs): The genetic markers interrogated by GWAS
  • Linkage Disequilibrium and Haplotypes: Explains why multiple nearby SNPs show association
  • Polygenic Risk Scores: Use GWAS results to predict individual disease risk
  • Heritability and Variance Components: GWAS findings contribute to understanding trait heritability
  • Expression QTL (eQTL) Studies: Functional follow-up to GWAS to identify mechanism
  • Mendelian Randomization: Uses GWAS variants as instrumental variables for causal inference
  • Population Stratification: Confounding factor requiring correction in GWAS
  • Fine-mapping and Credible Sets: Statistical methods to narrow down causal variants
  • Rare Variant Association Studies: Complement GWAS for low-frequency alleles
  • Pharmacogenomics: GWAS applied to drug response traits

Flashcards

What is a genome-wide association study (GWAS)? :: An observational study that tests hundreds of thousands to millions of genetic variants (SNPs) across the genome to identify associations between genotype and phenotype by comparing allele frequencies between cases and controls.

Why is the genome-wide significance threshold set at p < 5×10⁻⁸?
Because GWAS tests ~1 million independent SNPs, requiring Bonferroni correction:0.05 / 1,000,000 = 5×10⁻⁸ to control family-wise error rate and avoid false positives from multiple testing.
What does an odds ratio (OR) of 1.5 mean in a GWAS?
Individuals carrying the risk allele have 1.5× (or 50% higher) odds of having the disease/trait compared to individuals with the reference allele. OR = 1 means no association, OR > 1 means risk allele, OR < 1 means protective allele.
What is linkage disequilibrium (LD) and why does it matter for GWAS?
LD is the non-random association of alleles at different loci on the same chromosome due to physical proximity. In GWAS, it means that a significant SNP may not be causal itself but is corelated with the true causal variant nearby, requiring fine-mapping to identify the actual causal variant.
Why can't most GWAS-identified SNPs be immediately declared causal?
Most significant SNPs are in linkage disequilibrium with the true causal variant. The significant SNP may be in a non-coding region or even a different gene, simply "tagging" the actual causal variant located nearby. Functional validation is required to establish causation.
What is a Manhattan plot and what do peaks above the significance line indicate?
A Manhattan plot displays −log₁₀(p-value) for all tested SNPs across chromosomes. Peaks exceding the genome-wide significance line (−log₁₀(5×10⁻⁸) = 7.3) indicate genomic loci significantly associated with the trait. Multiple nearby SNPs in a peak usually represent one locus due to LD.

Calculate the genome-wide significance threshold if testing 500,000 independent SNPs with α = 0.05 :: Using Bonferroni correction: α_corrected = 0.05 / 500,000 = 1×10⁻⁷. This is the p-value threshold below which associations are considered statistically significant after correcting for multiple testing.

Why do GWAS typically require tens of thousands of samples?
Because most common variants have small effect sizes (OR = 1.1-1.3). Detecting small effects at genome-wide significance requires high statistical power, which necessitates large sample sizes. Power scales with n ×2f(1-f)(OR-1)², so weak effects need many samples.

What is the difference between GWAS and linkage analysis? :: GWAS uses unrelated individuals to test common variants (MAF > 5%) in population-based case-control designs. Linkage analysis uses families/pedigrees to track inheritance of rare, high-penetrance variants. GWAS is for complex polygenic traits; linkage is for Mendelian diseases.

If a GWAS finds no genome-wide significant hits, does that mean the trait has no genetic basis?
No. Possible reasons for null results include: (1) insufficient sample size/power for small effects, (2) causal variants are rare (not captured by common SNP arrays), (3) structural variants not interrogated, (4) gene-environment interactions, (5) heterogeneity. Heritability estimates from twin studies can confirm genetic contribution despite GWAS null results.
What is "missing heritability" in the context of GWAS?
The gap between trait heritability estimated from family studies (e.g., h² = 80% for schizophrenia) and the variance explained by GWAS-discovered variants (e.g., 20%). Explained by: many variants with effects too small to detect, rare variants not captured, structural variants, epistasis, and environmental interactions.
How do you interpret a clustered peak of20 significant SNPs in a GWAS Manhattan plot?
The20 SNPs are likely in linkage disequilibrium, representing one associated locus rather than 20 independent findings. Fine-mapping and conditional analysis (testing each SNP while controlling for the top SNP) can determine if there are multiple independent signals or just one causal variant tagged by all 20 SNPs.

Concept Map

tests millions of

compares

against

allele counts

allele counts

analysed by

yields

adjusted by

sets

identifies

explains

correlated not causal

GWAS study

SNPs

Cases with trait

Controls without trait

2x2 contingency table

Chi-square test

P-value

Bonferroni correction

Genome-wide significance

SNP-trait association

Polygenic traits

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, GWAS ka core idea bahut simple hai — imagine karo tumhe pata karna hai ki kuch log tall kyun hote hain ya kisi ko diabetes kyun hota hai. Ek- do gene check karne ke bajaye, hum poore genome mein millions of positions ek saath check karte hain. Har position pe hum dekhte hain ki koi particular variant (jaise position 12345 pe A instead of G) tall logon mein zyada common hai ya short logon mein. Agar wo variant tall logon mein zyada baar aa raha hai, toh matlab wo variant tallness ke saath associated hai. Sochlo jaise line mein red-shirt wale log hamesha tall end pe cluster kar rahe hain — red shirt directly tallness cause nahi kar rahi, par correlated zaroor hai. Bas yahi intuition hai GWAS ki.

Ab statistically kaise pakadte hain? Har SNP ke liye ek 2×2 table banate hain — cases (disease wale) aur controls (normal) mein allele frequencies compare karte hain. Chi-square test se dekhte hain ki difference random chance se hai ya genuinely meaningful. Ek important baat — kyunki hum millions of SNPs test kar rahe hain, kuch associations sirf luck se significant lagenge (false positives). Isliye normal p < 0.05 kaafi nahi hai; hume bahut strict threshold chahiye, jo hai p < 5×10⁻⁸ (Bonferroni correction se aata hai, 0.05 ko 10 lakh se divide karke). Isse weak, jhoothe results filter ho jaate hain. Odds ratio se hum measure karte hain ki wo variant kitna strong risk ya protection deta hai — OR > 1 matlab risk allele, OR < 1 matlab protective.

Yeh matter kyun karta hai? Kyunki zyaadatar common diseases aur traits — diabetes, height, blood pressure, schizophrenia — polygenic hote hain, matlab bahut saare genes milke thoda-thoda contribute karte hain, koi ek single gene poori kahani nahi batata. GWAS wahi powerful tool hai jo in chhote-chhote genetic effects ko detect kar leta hai jo warna miss ho jaate. Isliye modern medical genetics aur personalized medicine mein GWAS ek foundation ban gaya hai — samajhne ke liye ki kaun se genetic variants disease risk badhaate hain.

Test yourself — Genomics

Connections