Complex traits, heritability & GWAS

Part 7 — Cancer, populations & complex traits

Basic and molecular genetics (5MO104)

About this lecture

Height, blood pressure and the risk of type 2 diabetes do not fall into Mendel’s neat classes. They vary continuously, and depend on many genes and the environment: they are complex (quantitative, polygenic) traits.

  • The polygenic model: many loci of small effect give a normal distribution.
  • Heritability: variance components with numbers, broad (H²) and narrow (h²); the breeder’s equation; twin studies; parent–offspring regression (slope = h²).
  • What heritability does not mean.
  • Finding the loci: QTL mapping in crosses, and genome-wide association studies (GWAS): linkage disequilibrium, a case–control test by hand, 5 × 10⁻⁸, and how to read Manhattan and QQ plots.
  • Polygenic scores and the missing heritability.

Book: Hartwell, the chapter on complex traits. You need χ² and multiple testing (Part 1, Hardy–Weinberg), LOD scores (Part 2) and lm from your data-analysis course.

From Mendel’s classes to a continuous trait

  • One locus with additive alleles gives 3 classes; k loci give 2k + 1 classes, and their frequencies follow a binomial, which approaches a normal curve.
  • Add environmental variation and the steps blur: a smooth bell curve, as for height.
  • This polygenic model (Fisher, 1918) reconciled Mendel’s discrete inheritance with Galton’s continuous variation.

Two additive loci, by hand

AaBb × AaBb, unlinked. Each “+” allele (A or B) adds the same amount; a and b add nothing.

  1. Each parent’s gamete carries 0, 1 or 2 “+” alleles; each of the 4 allele copies in the child is “+” with probability ½, independently.
  2. So the number of “+” alleles in the child is Binomial(4, ½):
“+” alleles 0 1 2 3 4
genotypes aabb Aabb, aaBb AAbb, AaBb, aaBB AABb, AaBB AABB
fraction 1/16 4/16 6/16 4/16 1/16
  1. In general, k loci give 2k + 1 classes, and each extreme class has frequency (¼)k: 1/16 for 2 loci, 1/4096 for 6, about 1 in a million for 10.

This is the method for any number of loci: count “+” alleles, use the binomial (Pascal’s triangle).

Genes and environment

The phenotype of one person: P = G + E, the sum of a genetic value and an environmental deviation.

  • Environment here means everything that is not the DNA sequence: nutrition, disease, climate, chance events in development, measurement error.
  • Height in many countries rose by roughly 10 cm over the 20th century: far too fast for genes, so this is environment (nutrition, health).
  • Genes and environment can interact: the effect of a genotype may depend on the environment (G × E). Example: PKU is harmful only on a normal diet.

Across a population, we split the variance of P, not one person’s height, into genetic and environmental parts.

Separating VG from VE: inbred lines and the F2

In plants and animals we can remove the genetic variance on purpose:

Population genotypes variance contains example variance
inbred parent line P1 all identical VE only 4
inbred parent line P2 all identical VE only 4
F1 (P1 × P2) all identical (heterozygous) VE only 4
F2 (F1 × F1) segregating VG + VE 10
  1. VE = 4 (the average of the uniform populations).
  2. VG = VF2 − VE = 10 − 4 = 6.
  3. H² = VG/VF2 = 6/10 = 0.6.

In humans we cannot make inbred lines, so we use relatives instead: twins and families (next slides).

Heritability: partitioning the variance

  • VA, additive variance: the part due to the average effects of alleles. This is what makes children resemble their parents.
  • VD, dominance variance: interactions between the two alleles at a locus, which are not passed on as such (each parent passes one allele).
  • Narrow-sense heritability h² = VA/VP predicts the response to selection and the parent–offspring resemblance.

Variance components: a worked example

The proportions in the figure, as numbers (trait units²):

VP VA VD VE
100 45 15 40
  1. VG = VA + VD = 45 + 15 = 60.
  2. Broad sense: H² = VG/VP = 60/100 = 0.60.
  3. Narrow sense: h² = VA/VP = 45/100 = 0.45.

Always h² ≤ H². The gap is the dominance (and epistatic) variance: genetic, but not passed from parent to child as such.

Heritabilities are ratios of variances, not of standard deviations: never take a square root of h² to compare traits.

The breeder’s equation: R = h² S

  • Selection differential S: selected parents’ mean minus population mean (110 − 100 = 10).
  • Response R: how far the offspring mean moves. Only the additive part is passed on: R = h² S = 0.45 × 10 = 4.5.

Twin studies

  • MZ twins share all their genes; DZ twins half, like ordinary siblings. Both share a family environment.
  • If MZ twins are more alike than DZ twins, the difference reflects genes: Falconer’s formula h² ≈ 2 [r(MZ) − r(DZ)].
  • Assumption: MZ and DZ twins have equally similar environments. Twins reared apart and adoption studies test it.

Falconer’s formula, step by step

Split the variance into additive genes (h²), shared family environment (c²) and unique environment (e²), with h² + c² + e² = 1. Then (additive genes only):

shares genes shares family environment correlation
MZ twins all yes r(MZ) = h² + c²
DZ twins half, on average yes r(DZ) = ½ h² + c²

With the numbers in the figure, r(MZ) = 0.8 and r(DZ) = 0.5:

  1. Subtract: r(MZ) − r(DZ) = ½ h², so h² = 2 [r(MZ) − r(DZ)] = 2 × 0.3 = 0.6.
  2. Shared environment: c² = r(MZ) − h² = 2r(DZ) − r(MZ) = 1.0 − 0.8 = 0.2.
  3. Unique environment (and measurement error): e² = 1 − r(MZ) = 0.2: the reason MZ twins are not identical.

Parent–offspring regression

  • Regress offspring on the midparent (mean of the parents): the slope = h². On one parent, slope = h²/2.
  • Galton’s 205 families (1886): slope 0.71. Children of tall parents are tall, but less extreme: regression towards the mean, Galton’s original use of the word “regression”.
  • Shared family environment also makes parents and children alike, so this is an upper estimate of h².

Galton’s own plot, and predicting a child

Galton’s diagram (Natural Inheritance, 1889), in inches. Here the midparent is on the vertical axis and the son on the horizontal; dot size = number of sons. Line AB: sons exactly as tall as their midparents. Line CD, Galton’s regression: per inch of midparent above the mean, sons are only about ⅔ inch above it.

Prediction: child’s deviation = h² × midparent deviation.

  • Midparent 6 cm above the mean, h² = 0.7: child expected 4.2 cm above the mean.
  • Midparent 6 cm below: child expected 4.2 cm below. Regression works in both directions.

The variance does not shrink: children scatter around their predicted value, and some are more extreme than their parents.

Demo: parent–offspring regression

What heritability does not mean

  • It is not the fraction of one person’s trait caused by genes. It describes variation in a population.
  • It is specific to a population and environment. If everyone gets the same good food, VE shrinks and h² rises.
  • High heritability does not mean unchangeable: height is highly heritable and rose ~10 cm in a century; PKU is genetic and treated with diet.
  • Heritability within groups says nothing about the cause of differences between groups. (Lewontin: seeds from one sack grown in two fields of different soil.)
  • h² = 0 does not mean genes are unimportant: the number of fingers has heritability near 0, because almost all variation is accidental.

Finding the loci: QTL mapping

A quantitative trait locus (QTL) is a locus that affects a quantitative trait.

  • In a cross between two inbred lines (for example a tall and a short strain of mice or maize), the F2 or backcross offspring carry different combinations of the parents’ chromosome segments.
  • Genotype markers along the genome; for each marker, compare the trait between genotype classes (a t-test or regression).
  • A marker linked to a QTL shows a difference; unlinked markers do not. The evidence is summarised as a LOD score along the chromosome, as in Part 2 (LOD scores).

QTL mapping needs a cross and gives broad regions (tens of cM). In humans we use association in unrelated people instead.

Genome-wide association studies (GWAS)

Genotype hundreds of thousands to millions of SNPs in thousands of unrelated people. For each SNP, test whether the trait differs between genotypes:

  • Quantitative trait: regress the trait on the number of copies of the allele (0, 1, 2), with lm.
  • Disease: compare allele frequencies in cases and controls (a 2 × 2 χ² test, or logistic regression).

Unrelated people share only tiny stretches of chromosome from common ancestors, so association is local: only SNPs in linkage disequilibrium (LD) with a causal variant show a signal.

Linkage disequilibrium: alleles at nearby SNPs are correlated in the population, because they sit on the same ancestral haplotypes that recombination has not yet broken up.

Linkage disequilibrium makes towers

  • A new variant arises on one ancestral chromosome (orange). Recombination shrinks the shared segment around it; today’s carriers still share a short core (dashed box).
  • SNPs in the core are correlated with the variant (LD), so they are associated too: a tower.

A case–control test by hand, step 1: allele counts

Invented example: 500 cases and 500 controls genotyped at one SNP. Count alleles (two per person):

risk allele T other allele C total
cases 400 600 1000
controls 300 700 1000
total 700 1300 2000
  1. Allele frequencies: T in cases 400/1000 = 0.40; in controls 300/1000 = 0.30.
  2. Odds ratio (the effect size):

\text{OR} = \frac{400/600}{300/700} = \frac{0.667}{0.429} = \mathbf{1.56}.

Each T allele is associated with about 1.56 times higher odds of being a case. An OR of 1 means no association.

Step 2: the χ² test, and the genome-wide threshold

Expected counts under no association = row total × column total / grand total:

T C
cases 1000 × 700/2000 = 350 1000 × 1300/2000 = 650
controls 350 650

Every cell is 50 away from its expectation:

\chi^2 = \frac{50^2}{350} + \frac{50^2}{650} + \frac{50^2}{350} + \frac{50^2}{650} = 7.14 + 3.85 + 7.14 + 3.85 = \mathbf{22.0}, \quad \text{df} = 1.

  • p ≈ 3 × 10⁻⁶: significant at 0.05 (χ² > 3.84), but not genome-wide (needs χ² > 29.7 for p < 5 × 10⁻⁸).
  • With the same frequencies, χ² grows in proportion to N: 29.7/22.0 ≈ 1.35 times as many people would reach it.

A million tests: why 5 × 10⁻⁸

A GWAS repeats the test of the last slide at about a million independent SNPs. If none had any effect, how many would pass by chance?

threshold expected false hits among 10⁶ null SNPs −log10 threshold
p < 0.05 10⁶ × 0.05 = 50 000 1.3
p < 10⁻⁵ (“suggestive”) 10⁶ × 10⁻⁵ = 10 5
p < 5 × 10⁻⁸ 10⁶ × 5 × 10⁻⁸ = 0.05 7.3

Bonferroni: divide the error rate you accept for the whole study by the number of tests: 0.05 / 10⁶ = 5 × 10⁻⁸. Then the chance of even one false hit in the whole scan is about 5%.

Reading a Manhattan plot, step by step

  1. One dot = one SNP. x: position, chromosome by chromosome. y: −log10 p (y = 2 is p = 0.01; y = 13 is p = 10⁻¹³).
  2. The red line is 5 × 10⁻⁸ (y = 7.3): dots above it are genome-wide significant.
  3. Count towers, not dots: 3 loci here (chromosomes 2, 10, 16), each a causal variant plus its LD neighbours.
  4. Height is evidence, not effect size: it also grows with sample size and allele frequency.
  5. QQ plot: null SNPs lie on the diagonal; true signals lift off at the top. If all points lie above it, suspect population structure or genotyping errors.

Demo: a simulated GWAS

What GWAS have found

  • Type 2 diabetes: the strongest association is rs7903146 in an intron of TCF7L2 (10q25). In a 2024 multi-ancestry study of about 2.5 million people (Suzuki et al., Nature), its p-value was about 10⁻¹³¹⁵. Each copy of the risk allele raises the risk only modestly.
  • The GWAS Catalog lists thousands of T2D associations (KCNQ1, CDKAL1, CDKN2B, FTO, IGF2BP2, …) and tens of thousands for height (GDF5, ZBTB38, LCORL, HMGA2, …).
  • Most hits are non-coding: they change regulation of nearby genes (Part 6), not protein sequence.
  • Each variant explains a tiny fraction of the variance: complex traits are truly polygenic.

Polygenic scores and the missing heritability

Polygenic score: add up a person’s risk alleles, each weighted by its GWAS effect size: PGS = Σ βi × (number of risk alleles at SNP i).

  • Useful for groups (risk stratification, research); weak for individuals: most people with a high score do not get the disease.
  • Scores built in one ancestry group predict worse in others: allele frequencies and LD differ (drift, previous unit).

Missing heritability: twin and family studies give h² ≈ 0.8 for height, but the first GWAS hits together explained only a few percent. Explanations:

  • many more loci of tiny effect, below the threshold (larger samples keep finding more);
  • rare variants that arrays do not capture;
  • family designs overestimating h² (shared environment, as in the demo).

Common mistakes

Mistake Correct
“h² = 0.8 means 80% of my height comes from genes” h² describes variation in a population, not one person
Using H² in the breeder’s equation R = h² S: only additive variance is passed on
Slope on one parent = h² one parent: slope = h²/2; midparent: slope = h²
“Regression to the mean makes the population less variable” the variance stays the same; children scatter around the prediction
Each dot above the line is a separate discovery count towers: one locus, many SNPs in LD
The top SNP is the causal variant it is the best tag; fine mapping is needed
A tiny p-value means a large effect p depends on N; read the odds ratio or β for the effect

Summary

  • Complex traits: many loci + environment give continuous, normal variation (Fisher’s polygenic model). k additive loci: Binomial(2k, ½), 2k + 1 classes.
  • VP = VA + VD + VE. Broad H² = VG/VP; narrow h² = VA/VP. Inbred lines and F1 give VE; breeder’s equation R = h² S.
  • Estimates: twins h² ≈ 2[r(MZ) − r(DZ)]; offspring on midparent slope = h² (Galton: 0.71); on one parent slope = h²/2.
  • Heritability is about variation in one population and environment; it says nothing about individuals or differences between groups.
  • QTL mapping uses crosses and linkage (LOD); GWAS use association and LD in unrelated people: a 2 × 2 χ² test and odds ratio per SNP, with p < 5 × 10⁻⁸ = 0.05/10⁶. Read Manhattan plots as towers.
  • Hits such as TCF7L2 for T2D have small effects; polygenic scores add them up; part of the heritability is still missing.

Where this leads

  • Ethics module: polygenic scores in embryo selection and insurance, direct-to-consumer genomics, and the misuse of heritability.
  • Back to Part 6: most GWAS hits sit in regulatory DNA; finding the gene they regulate uses the tools of gene regulation.
  • In the exercise: heritability by hand, the two demos, the GWAS Catalog for type 2 diabetes and height, and in R: Galton’s families with lm, and a Manhattan plot built from scratch with ggplot2.