Linkage disequilibrium

Lecture 5 of the Molecular Genomics series. The measure that makes marker-based genomics possible.

Download PDF7 pages · 240 KB

← Knowledge Hub

Lecture 5Molecular GenomicsMSc levelGabor Meszaros
Linkage disequilibriumThe full lecture on the Genomics Boot Camp channel.Watch on YouTube ↗

Where we are

Recombination breaks up associations between loci, and it does so slowly when the loci are close together. Linkage disequilibrium is the name for what is left: the association that has not yet been broken. It is the single most important concept in this course, because it is what allows a marker that is not causal to carry information about a variant that is.

The idea

Definition

Linkage disequilibrium (LD) is the non-random association of alleles at two loci within a population. It measures the degree to which knowing an animal's allele at one locus tells you something about its allele at the other.

Two points about the name are worth making immediately, because both mislead.

First, LD is a property of a population, not of an individual or of a chromosome. It is a statement about allele frequencies across many gametes.

Second, LD is not the same thing as linkage. Linkage is physical proximity on a chromosome, and it is a property of the genome that does not change. LD is a statistical association, and it can exist between unlinked loci and be absent between tightly linked ones. Physical proximity makes LD persist, because recombination erodes it slowly, but proximity does not create it. LD is created by population history: mutation, drift, migration, admixture, selection and bottlenecks. The size of the blocks of associated alleles reflects both recombination and those historical events.

Linkage equilibrium as a null

The reference state is what Mendel's second law describes. Under independent assortment, alleles at two loci are sorted into gametes independently of one another, so every combination occurs at the frequency expected from the separate allele frequencies.

Take two loci, the first with alleles \(A\) and \(a\) at frequencies \(p_A\) and \(p_a\), the second with alleles \(B\) and \(b\) at frequencies \(p_B\) and \(p_b\). There are four possible haplotypes. Under independence,

\[p_{AB} = p_A p_B,\qquad p_{Ab}=p_A p_b,\qquad p_{aB}=p_a p_B,\qquad p_{ab}=p_a p_b\]

A population in which these equalities hold is in linkage equilibrium. Any departure from them is linkage disequilibrium. All the standard measures are ways of quantifying the size of that departure.

The disequilibrium coefficient D

The most direct measure is simply the difference between the observed haplotype frequency and the frequency expected under independence.

\[D = p_{AB} - p_A p_B\]

Because the four haplotype frequencies must sum to one and the marginal allele frequencies are fixed, the same \(D\) appears, with alternating sign, in all four cells:

\[p_{AB}=p_Ap_B+D,\quad p_{Ab}=p_Ap_b-D,\quad p_{aB}=p_ap_B-D,\quad p_{ab}=p_ap_b+D\]

An equivalent and often more convenient form follows by substitution:

\[D = p_{AB}\,p_{ab} - p_{Ab}\,p_{aB}\]

which is the determinant of the two-by-two table of haplotype frequencies. It is zero exactly when the rows are proportional, that is, when the loci are independent.

Worked example

In a sample of gametes the four haplotypes occur with frequencies

\[p_{AB}=0.45,\quad p_{Ab}=0.15,\quad p_{aB}=0.15,\quad p_{ab}=0.25\]

The allele frequencies are \(p_A = 0.45+0.15 = 0.60\) and \(p_B = 0.45+0.15 = 0.60\).

Under independence we would expect \(p_Ap_B = 0.36\), but we observe 0.45, so

\[D = 0.45 - 0.36 = 0.09\]

Checking with the determinant form: \(0.45\times 0.25 - 0.15\times 0.15 = 0.1125-0.0225=0.09\). The \(AB\) and \(ab\) haplotypes are in excess, and \(Ab\) and \(aB\) are correspondingly rare.

Why D is unsatisfactory
  • Its sign is arbitrary, because it depends on which allele at each locus was labelled \(A\) rather than \(a\). Relabelling one locus flips the sign. A common convention is to let \(A\) and \(B\) denote the common alleles, but it is only a convention.
  • Its range depends on the allele frequencies. \(D\) cannot exceed \(\min(p_Ap_b,\; p_ap_B)\) when positive, so the maximum attainable value differs from locus pair to locus pair. A \(D\) of 0.09 is large at some frequencies and near-negligible at others, so values cannot be compared.

Both problems are about scale, which is what the next two measures address.

D-prime, a scaled version

The first repair is to divide \(D\) by the largest value it could have taken, given the allele frequencies.

\[D' = \frac{D}{D_{\max}},\qquad D_{\max}=\begin{cases}\min(p_Ap_b,\;p_ap_B) & \text{if } D>0\\[2pt]\min(p_Ap_B,\;p_ap_b) & \text{if } D<0\end{cases}\]

This forces \(D'\) into the range \(-1\) to \(+1\), and \(|D'| = 1\) has a clean interpretation: at least one of the four haplotypes is absent from the population.

What D-prime means
  • \(|D'|=1\), called complete LD, means the two loci have not been separated by recombination in the ancestry of the sample. One or more haplotypes were never created.
  • If in addition the allele frequencies at the two loci are similar, high \(|D'|\) means the markers are good surrogates for each other.
  • Disadvantages. \(D'\) is strongly inflated in small samples, and inflated whenever one allele is rare, because with few copies of a rare allele it is easy for a haplotype to be missing by chance rather than because recombination never occurred.

The last point is serious. In livestock datasets with modest sample sizes and many low-frequency markers, \(D'\) close to one is common and often means nothing.

LD as a correlation

There is a more useful way to think about the whole problem. Define, for a randomly drawn gamete, an indicator variable at each locus: \(X = 1\) if the gamete carries \(A\) and 0 otherwise, and \(Y = 1\) if it carries \(B\) and 0 otherwise. Then LD is just the statistical association between two random variables, and the natural measure is their correlation.

Deriving the correlation
  1. \(X\) is a Bernoulli variable with \(\mathbb{E}(X)=p_A\) and \(\operatorname{Var}(X)=p_A p_a\). Likewise \(\mathbb{E}(Y)=p_B\) and \(\operatorname{Var}(Y)=p_B p_b\).
  2. The product \(XY\) equals 1 only for gametes carrying both \(A\) and \(B\), so \(\mathbb{E}(XY)=p_{AB}\).
  3. Therefore \(\operatorname{Cov}(X,Y)=\mathbb{E}(XY)-\mathbb{E}(X)\mathbb{E}(Y) = p_{AB}-p_Ap_B = D\). The disequilibrium coefficient is the covariance.
  4. Standardising gives the correlation, \(\;r = \dfrac{D}{\sqrt{p_A p_a p_B p_b}}\).

The measure used in practice is the square of this correlation.

\[r^{2} = \frac{D^{2}}{p_A\,p_a\,p_B\,p_b}\]
Why r-squared is the standard
  • It ranges from 0, no LD, to 1, complete LD, and squaring removes the arbitrary sign.
  • \(r^{2}=1\) means the two markers carry exactly the same information: knowing one determines the other.
  • It has a direct statistical meaning. \(r^{2}\) is the proportion of variance at one locus explained by the other, so it measures the loss of efficiency incurred when marker \(A\) is replaced by marker \(B\).
  • It is not inflated by rare alleles in the way \(D'\) is.

The last property is the one that makes \(r^{2}\) indispensable, and it has a concrete consequence for study design. If a causal variant is not genotyped but a marker in LD with it is, then the sample size required to detect the association through the marker is inflated by a factor of \(1/r^{2}\) relative to testing the causal variant directly. An \(r^{2}\) of 0.5 doubles the number of animals needed. This is the argument that sets marker density.

Worked example, continued

Using the haplotype frequencies from before, \(D=0.09\), \(p_A=p_B=0.60\) and \(p_a=p_b=0.40\).

\[r^{2}=\frac{0.09^{2}}{0.6\times0.4\times0.6\times0.4} =\frac{0.0081}{0.0576}=0.141\]

Now compare with \(D'\). Since \(D>0\), \(D_{\max}=\min(p_Ap_b,\,p_ap_B)=\min(0.24,0.24)=0.24\), so \(D'=0.09/0.24=0.375\).

The two measures give quite different impressions of the same data: \(D'=0.375\) sounds moderate, \(r^{2}=0.141\) says that only 14% of the variation at one locus is captured by the other. The second is the number that matters for whether the marker is a usable proxy.

Decay with distance

Because recombination separates loci at a rate that increases with the distance between them, \(r^{2}\) declines as physical distance grows. Plotting average \(r^{2}\) against distance gives the LD decay curve, which is the standard way of summarising the LD structure of a population.

00.10.20.30.40250 kb500 kb750 kb1 Mbmean r²distance between markerssmall effective population sizecommercial breed, recent bottlenecklarge effective population sizeindigenous population, no bottleneck
LD decays with distance in every population, but the level and the rate differ. Populations that passed through a bottleneck retain LD over longer distances, so fewer markers are needed to cover the genome.

The level of the curve, not only its shape, is informative. A population with a small effective population size has high LD extending over long distances, because drift generates associations faster than recombination removes them. A large, outbred population has low LD that decays quickly. This is the basis for estimating effective population size from marker data, and it is also the practical reason that the marker density needed to cover a genome differs between commercial breeds and indigenous populations.

What counts as "useful" LD is a matter of convention rather than biology. A threshold such as \(r^{2}>0.2\) or \(r^{2}>0.3\) is commonly adopted, and the distance at which the average curve crosses it is then quoted as the distance over which markers are informative. That distance translates directly into the number of markers needed.

What LD is used for

Almost every remaining lecture in this course rests on LD.

ApplicationHow LD enters
Association studiesLD is what allows an ungenotyped causal variant to be detected through a genotyped marker, and what determines how wide the implicated region is
Genomic selectionPrediction works only if every part of the genome is in LD with at least one marker; this sets the required density
Effective population sizeThe level of LD at a given genetic distance reflects \(N_e\) some number of generations ago, so the decay curve is a record of population history
Selection signaturesA sweep drags a whole haplotype to high frequency, producing a local excess of LD, which is one of the signals used to detect it
Evolutionary inferenceAdmixture, bottlenecks and migration each leave a characteristic imprint on the LD structure
References for this section

Exercises

Exercise 5.1

Computing all three measures. In a population the haplotype frequencies at two SNPs are \(p_{AB}=0.30\), \(p_{Ab}=0.10\), \(p_{aB}=0.20\), \(p_{ab}=0.40\). Compute \(D\), \(D'\) and \(r^{2}\), and say which you would report.

Show solution ▾

Allele frequencies: \(p_A = 0.30+0.10 = 0.40\), so \(p_a=0.60\); \(p_B = 0.30+0.20 = 0.50\), so \(p_b=0.50\).

D. \(D = p_{AB}-p_Ap_B = 0.30 - 0.40\times0.50 = 0.30-0.20 = 0.10\). Check: \(0.30\times0.40 - 0.10\times0.20 = 0.12-0.02=0.10\).

D'. Since \(D>0\), \(D_{\max}=\min(p_Ap_b,\,p_ap_B)=\min(0.20,\,0.30)=0.20\), so \(D' = 0.10/0.20 = 0.50\).

r-squared.

\[r^{2}=\frac{0.10^{2}}{0.4\times0.6\times0.5\times0.5} =\frac{0.01}{0.06}=0.167\]

Report \(r^{2}\). It is the measure with a direct interpretation, namely that one marker explains about 17% of the variation at the other, and it is the quantity that determines the sample size penalty for using this marker as a proxy. \(D'=0.50\) would give a misleadingly favourable impression.

Exercise 5.2

Why D-prime misleads. Construct a numerical example with two loci where \(D' = 1\) but \(r^{2}\) is small, and explain what feature of the data produces the discrepancy.

Show solution ▾

Take \(p_{AB}=0.05\), \(p_{Ab}=0\), \(p_{aB}=0.45\), \(p_{ab}=0.50\). Then \(p_A=0.05\), \(p_a=0.95\), \(p_B=0.50\), \(p_b=0.50\).

\(D = 0.05 - 0.05\times0.50 = 0.025\). Since \(D>0\), \(D_{\max}=\min(p_Ap_b,\,p_ap_B)=\min(0.025,\,0.475)=0.025\), so \(D'=1\) exactly.

But

\[r^{2}=\frac{0.025^{2}}{0.05\times0.95\times0.5\times0.5} =\frac{0.000625}{0.011875}=0.053\]

\(D'=1\) because the haplotype \(Ab\) is absent, which is all \(D'\) requires. The feature producing the discrepancy is the rare allele: \(A\) has frequency 0.05, so the \(Ab\) haplotype would be rare even under independence, and its absence is weak evidence.

Substantively, the two markers are nearly useless as proxies for one another. Knowing an animal's genotype at the second locus says almost nothing about the first, because 95% of gametes carry \(a\) regardless. This is exactly the situation in which \(D'\) is inflated, and it is common in real data.

Exercise 5.3

Sample size and marker density. A GWAS would need 800 animals to detect a causal variant if that variant were genotyped directly. It is not genotyped, but a marker with \(r^{2}=0.25\) to it is. How many animals are needed now? What density of markers would you need so that a typical causal variant has \(r^{2}\ge 0.8\) with some marker, given an LD decay curve that falls below 0.8 at 20 kb?

Show solution ▾

The required sample size scales as \(1/r^{2}\), so \(800/0.25 = 3{,}200\) animals. Using a proxy with \(r^{2}=0.25\) quadruples the cost of the study, which is why LD structure, not statistics alone, drives study design.

For the density: if \(r^{2}\) falls below 0.8 beyond 20 kb, then a causal variant is adequately tagged only if a marker lies within about 20 kb of it. Markers spaced 40 kb apart place every position within 20 kb of a marker, so on a 3,000 Mb genome that is \(3{,}000{,}000/40 = 75{,}000\) markers, and spacing at 20 kb to be safe gives 150,000.

Two caveats. This treats markers as evenly spaced and LD as uniform, and neither is true: real chips have gaps and LD is patchy, so the effective coverage is worse than the arithmetic suggests. And the calculation is population-specific, since the 20 kb figure comes from one decay curve. A population with faster decay needs proportionally more markers, which is precisely the difficulty with applying commercial chip densities to indigenous African populations.

Exercise 5.4

Interpreting a decay curve. Two cattle populations are compared. Population 1 has mean \(r^{2}=0.30\) at 100 kb, population 2 has \(r^{2}=0.10\) at the same distance. What does this suggest about their histories, and which will give higher genomic prediction accuracy at a fixed marker density and reference size?

Show solution ▾

LD is generated by drift and eroded by recombination, so at a fixed genetic distance the equilibrium level of \(r^{2}\) is inversely related to effective population size. Population 1's higher LD indicates a smaller \(N_e\), consistent with a recent bottleneck, intense selection through few sires, or a founder event. Population 2's lower LD indicates a larger, more outbred population, which is typical of indigenous populations that have not been through a commercial breeding programme.

At fixed marker density and reference size, population 1 will give higher prediction accuracy. Prediction relies on markers being in LD with causal variants, and in population 1 each marker tags a longer stretch of chromosome. The same chip therefore covers the genome more effectively.

This is worth stating plainly because it is counterintuitive and it has a policy implication: genomic selection transfers less readily to diverse indigenous populations than to commercial breeds, not because the animals are less well studied but because low LD is a direct consequence of the genetic diversity that makes those populations valuable. Higher marker density or sequence data is the technical answer, and it costs more precisely where budgets are smallest.

Adapted by ASAP-Bio from the Introduction to Genomics slide series by Gabor Meszaros (Genomics Boot Camp), released under GPL-3.0. The sequence and worked examples follow his; the explanatory text was written for this platform.
Ministry of Foreign Affairs of Denmark Danida Fellowship Centre
The project is funded by the Ministry of Foreign Affairs of Denmark and managed by Danida Fellowship Centre.
DANIDA Knowledge and Innovation Programme (KIP) 2025.