Lecture 9: Genetic Drift#

Genetic drift refers to random fluctuations in allele frequencies due to random sampling of alleles in finite populations. The previous lectures have all dealt with deterministic (predictable) evolutionary forces often referred to as linear pressures. Genetic drift is a stochastic (random) force that can scramble the predictable effects of selection, mutation, and gene flow. While it might seem that a random force would be of little significance to evolutionary “progress” (we’ll confront this loaded term later), genetic drift may be an extremely important force in evolution. However, its strength depends on the size of the population, as a simple exercise in coin tossing will illustrate. In ten tosses you might easily get seven heads; in 1000 tosses, however, you would never get 700 heads with a “fair” coin. The same sort of random fluctuation in allele frequencies can occur in small populations: consider a bag full of red and black marbles each in equal frequency; pull out a small handful and the frequency in your hand will probably not equal the frequency in the original bag. Let that handful determine the frequency in a new population. A second small handful will randomly shift the frequency to yet another frequency. If you pulled out all the marbles in the bag (= large population) then the frequency would be maintained exactly in the next generation. Genetic drift is not a potent evolutionary force in very large randomly mating populations. See Fig. 16 for a graphical illustration of this.

_images/urn.png

Fig. 16 Urn problem captures genetic drift. In this experiment we start with an urn full of red and black marbles at generation 1. We then randomly select marbles, sampling with replacement to form the next generation. Notice how random sampling after 10 generations has substantially changed the frequency of the red marble.#

Genetic drift: the algorithm#

Here’s a very simple algorithm that describes all of the essentials of genetic drift. This is known as the Wright-Fisher model, after Sewall Wright and Ronald Fisher who worked it out, and it’s the basic model of drift that nearly everything else in population genetics is built on. The key assumptions are that the population size stays fixed at \(N\) diploids, generations don’t overlap (all the parents are replaced by their offspring at once), and every allele in the parental generation has exactly the same chance of being copied into the next one. If you already know how to program a computer, a very good exercise would be to code this up. If you don’t know how to program yet, but are interested in learning come find me and I’ll show you a nice way to write this in a simple programming language called R, or really any language you like.

So here’s the algorithm:

  1. Choose an allele at random from the 2N alleles in the parental generation

  2. Make an exact copy of the allele

  3. Place the copy of the allele in the next generation

  4. Go back to 1 until the next generation has 2N alleles

This is exactly the algorithm I used to generate Fig. 16. Can you replicate this figure?

Genetic drift as a dispersive force#

One of the main ways that genetic drift acts is as a dispersive force on allele frequencies (i.e. it moves allele frequencies about randomly). A neat way to see this is to imagine replicate populations (either experimental or natural). Consider a grid of small populations (e.g., ponds in New Hampshire), all with the same small population size and all starting at time t with \(p = q= 0.5\). Through time each population will experience genetic drift due to random sampling and the frequencies in each population will diverge. The distribution of frequencies changes over time from a tight distribution (all 0.5), to a flat distribution (some populations at \(p = 0.1\), some at \(p=0.9\) and all frequencies in between), to fixation (\(p =1.0\)) or loss (\(p = 0.0\)) of the alleles in all populations. Fixation is when all alleles in the population are \(A_1\); this necessarily implies loss of the \(A_2\) allele (“fixation” or “loss” should only be used with reference to a specific allele). If each population starts at \(p = 0.5\), then at the end, when all populations have lost their variation, 50% of the populations will be fixed for the \(A_1\) allele and 50% will be fixed for the \(A_2\) allele (latter = “loss” for the \(A_1\) allele, get it?). If the initial frequency was \(p = 0.7\), then 70% of the populations would be fixed for the \(A_1\) allele (again, assuming no selection, migration, mutation).

Fig. 17 shows exactly this happening in a computer simulation of 100 replicate populations, each with just 16 diploid individuals, all starting at \(p=0.5\). Watch how the populations spread out from each other over time, and how more and more of them get stuck at 0 or 1.

_images/drift_replicates.png

Fig. 17 Drift in 100 replicate populations. (A) Allele frequency over 20 generations in 100 simulated Wright-Fisher populations of \(N=16\) diploids, all starting at \(p=0.5\). (B) The distribution of allele frequencies across the 100 populations at generations 1, 5, and 20. It starts out bunched up around 0.5, flattens out, and then starts piling up at 0 and 1 as populations lose or fix the allele.#

This isn’t just a computer game. Peter Buri did exactly this experiment with fruit flies in the 1950s (Buri 1956). He set up 107 replicate populations of Drosophila melanogaster, each with 16 flies (8 males and 8 females), all starting with two eye color alleles at a frequency of 0.5. Every generation he randomly picked 8 males and 8 females from each vial to start the next generation, and followed the allele frequencies for 19 generations. His real flies did just what the simulation does- the distribution of allele frequencies across vials flattened out and piled up at 0 and 1.

So the main points are these. First, drift removes variation from within populations but creates differences between populations. Second, drift causes alleles to be fixed or lost from populations. Third, populations can diverge genetically entirely by chance, with no directionality at all! If you replayed the tape you wouldn’t expect to get the same outcome. These are the main ways in which genetic drift can be an important force in evolution of populations with small population size.

Decay in heterozygosity due to drift#

While studying the full dynamics of genetic drift is difficult mathematically it is simple enough to follow one of the main features of genetic drift, the decay of heterozygosity within populations, through a basic model. Again we turn our attention to our favorite diploid, randomly mating hermaphrodites. We will first describe our population of \(N\) diploids by the variable \(G\) defined as the probability that two alleles drawn at random from our population are identical by state (e.g. they have the same DNA sequences). Our population is made up of what we call exchangeable or neutral alleles, meaning that alleles are equivalent from the perspective of fitness- no selection is acting. \(G\) is very similar to our measure of Homozygosity that we described earlier in the course. When there is no variation in the population \(G = 1\), conversely when every allele is unique \(G=0\).

We can write down the value of \(G\) after one round of random mating and drift, \(G'\), as a function of its current value and the population size

\[\begin{aligned} G'= \frac{1}{2N} + \left(1 - \frac{1}{2N} \right )G \end{aligned}\]

This equation spells out in its two terms the mutually exclusive ways in which we can sample two alleles that are identical by state (this is also illustrated graphically in the slides associated with this lecture). One way is to sample two alleles who shared a common ancestor in the generation before. The probability that two alleles share a common ancestor in the previous generation is \(1/(2N)\). This is simple enough to understand- given that you’ve chosen one allele, the probability that the next allele has the same parent is just \(1/(2N)\) because all parents are equally likely. The second way to sample two alleles that are identical by state is to choose two alleles who don’t share a parent (i.e. \(1-1/(2N)\)), but whose parents were themselves identical by state (by definition this probability is \(G\)). This leaves us with the probability of the second event being \([1-1/(2N)]G\). As the two ways of picking alleles identical by state are mutually exclusive we take the sums of their probabilities and we arrive at \(G'\). Nice right?

As is frequent in our population genetic models, I’m going to pull a bit of a bait and switch on you. We just defined the probability of choosing alleles identical by state, but now let’s focus on the converse, the probability that you choose two alleles which differ by state. This is both instructive and easier to work with. Define \(H\) to be the probability that two randomly sampled alleles are different by state (i.e. different DNA sequences), and notice that \(H\) is very similar to heterozygosity that we had defined earlier. By definition, \(H = 1-G\), which implies that

\[\begin{aligned} H' = 1-G' = \left (1-\frac{1}{2N} \right)H \end{aligned}\]

Now let’s do what comes naturally and look at how \(H\) changes per generation. We’ll call this change in heterozygosity \(\Delta_NH\) to draw attention to the fact that population size is what’s leading to the change in \(H\). So

\[\begin{split}\begin{aligned} \Delta_NH &= H' - H \\ &= \left(1 - \frac{1}{2N} \right)H -H \\ &= -\frac{1}{2N}H \end{aligned}\end{split}\]

Immediately we can see something about how population size should dictate \(H\) in finite populations. The probability that two alleles are different by state decreases at a rate \(1/(2N)\) per generation. This implies that large populations will lose variation more slowly than small populations due to drift, however they will eventually lose all of their variation.

We can also solve this difference equation to get an expression which captures all of the same dynamics from some initial condition \(H_0\) until some time \(t\) at which heterozygosity has decreased to \(H_t\)

\[\begin{aligned} H_t = H_0 \left(1 - \frac{1}{2N} \right)^t \end{aligned}\]

Here we see that the decay in \(H\) is geometric. This means that the probability of two alleles being different by state monotonically decreases, however it never reaches exactly zero. As an exercise write down the half-life of heterozygosity using this difference equation, that is solve for the time until \(H\) decreases to half its original value \(H_0/2\).

Fixation Probability of a neutral mutation#

Quick detour to the world of molecular evolution. If drift means that ultimately alleles are fixed or lost from populations, which allele \(A_1\) or \(A_2\) gets to fix? Asked another way, what is the probability that an allele will fix in a population? This probability is known as the fixation probability and it has a special place in the world of population genetics and molecular evolution.

Let’s consider our idealized population of \(2N\) completely neutral, exchangeable alleles. Let’s start with the case when \(H=1\) and each allele is unique in the population. We know that this population, like all populations which drift, will eventually go to \(H=0\) and in so doing fix an allele. The chance that any particular allele among our \(2N\) unique alleles will be that survivor is \(1/(2N)\), as they are all exchangeable. If instead there were \(i\) copies of some allele, the chance that it would be chosen to fix would be \(i/(2N)\). Written another way, if the frequency of \(A_1\) is \(p\) in a population, then the frequency that \(A_1\) fixes is \(p\). Thus the probability of fixation of a neutral allele at frequency \(p\) in the current population is

\[\begin{aligned} Prob(fix|p) = \pi(p) = p \end{aligned}\]

This probability will play an important role in our study of molecular evolution, but for now just marvel at the symmetry of neutral evolution.

Mutation and Drift#

Ultimately genetic drift is a force acting to remove variation from populations, so why does genetic variation persist in populations? The answer is of course mutation. Mutations form the raw stuff in evolution, and the balance between mutation and drift will occupy our attention when we study molecular evolution. The Neutral Theory of Molecular Evolution, formalized by Motoo Kimura (Kimura 1968), says that the main forces acting on DNA sequences in populations are drift and mutation, and that DNA sequence differences between individuals and species are mostly neutral mutations. Here we’ll develop the mathematical models which underlie neutral variation within species.

First we’ll turn our attention back to \(G\), the probability that two alleles are identical by state (i.e. have the same DNA sequence). The value of \(G\) after one round of drift and mutation as a function of its current value is

\[\begin{aligned} G' = (1-u)^2\left [ \frac{1}{2N} + \left(1 - \frac{1}{2N} \right )G \right]. \end{aligned}\]

Let’s look at this for a moment. You’ll notice that the only thing that differs with our addition of mutation is the term \((1-u)^2\). This term represents the probability that no mutations occurred in either of the alleles we sampled (\((1-u)\) is the probability that no mutation occurred in one of the alleles). Notice the assumption we’re sneaking in here. We’re saying that if either allele mutated, the two can’t be identical anymore. That’s only true if every mutation creates a brand new allele that has never been seen before in the population. This is called the infinite alleles model, and it’s actually a pretty good description of DNA sequences, where there are so many sites that a new mutation almost never happens to recreate a sequence that already exists.

Now let’s try to poke at \(G'\) until we can obtain an expression for \(\Delta_{N,u}H\), the change in heterozygosity due to drift and mutation. This will allow us to write down an equilibrium solution for \(\hat{H}\) that will tell us something about what the heterozygosity of populations should be in nature. Using the fact that mutation rate, \(u\), is small and that population size, \(N\), is in comparison large, we can approximate \(G'\). We will assume that we can ignore terms with \(u/N\) as a factor and will approximate \((1-u)^2\) with \((1-2u)\)

\[\begin{split}\begin{aligned} G' &\approx (1-2u) \left [ \frac{1}{2N} + \left(1 - \frac{1}{2N} \right )G \right] \\ &\approx \frac{1}{2N} + \left ( 1 - \frac{1}{2N} \right )G - 2uG \end{aligned}\end{split}\]

Now let’s make the switch to heterozygosity using \(H = 1-G\) and rearranging to get

\[\begin{aligned} H' \approx \left( 1 - \frac{1}{2N} \right ) H + 2u(1-H). \end{aligned}\]

Now the change in \(H\) in any generation is \(\Delta_{N,u}H = H' -H\), so

\[\begin{aligned} \Delta_{N,u}H = - \frac{1}{2N}H + 2u(1-H) \end{aligned}\]

and at equilibrium \(\Delta_{N,u}H = 0\) and after a tiny bit of algebra

\[\begin{aligned} \hat{H} = \frac{4Nu}{1+4Nu} \end{aligned}\]

That’s what we’re after- a simple expression that relates heterozygosity to mutation rate and population size. The compound parameter \(4Nu\) plays an important role in population genetics. This can be seen clearly here. When \(4Nu\) is large, mutation dominates drift and populations retain genetic variation. When \(4Nu\) is small, drift dominates and genetic variation is driven out of populations. Fig. 18 shows this relationship graphically.

_images/hEquil.png

Fig. 18 Heterozygosity as a function of \(N\). Equilibrium heterozygosity \(\hat{H} = 4Nu/(1+4Nu)\) under drift and mutation as a function of population size \(N\) (on a log scale), for two different mutation rates, \(u=10^{-4}\) and \(u=10^{-6}\).#

Let’s put some real numbers into this. Back in Lecture 4 we saw that any two copies of the human genome differ at roughly one site in a thousand, so per nucleotide \(\hat{H} \approx 0.001\). When \(4Nu\) is small like this, \(\hat{H} \approx 4Nu\), and we know the human mutation rate is about \(u = 1.2 \times 10^{-8}\) per site per generation. So we can solve for \(N\):

\[\begin{aligned} N \approx \frac{\hat{H}}{4u} = \frac{0.001}{4 \times 1.2 \times 10^{-8}} \approx 20{,}000. \end{aligned}\]

Wait, what? There are 8 billion of us! But the amount of genetic variation humans carry is what you’d expect from a population of only about 20,000 people. That’s not a mistake, it’s telling us something about our history. The \(N\) in this equation isn’t just the number of people alive today, and in the next section we’ll see why. We’ll come back to what this says about human history in the lecture on human evolution.

Lewontin’s paradox#

Humans aren’t the only weird case. Here’s one of the great open puzzles in all of population genetics, and it’s one that I think about a lot. Our result says that when \(4Nu\) is small, heterozygosity should go up in direct proportion to population size, \(\hat{H} \approx 4Nu\). So a species with a million times more individuals than another should have something like a million times more genetic variation (assuming similar mutation rates). Now think about how much population sizes vary across animals. There are maybe a few thousand snow leopards in the wild, while the roundworm C. elegans and some insects are thought to number \(10^{14}\) or \(10^{15}\) individuals or more. That’s a difference of many orders of magnitude. But when people go out and measure genetic variation, it barely changes at all between species. Nearly every animal ever measured has a per site heterozygosity somewhere between about 0.0001 and 0.1, and most of them are crammed into an even narrower range than that.

Richard Lewontin pointed this out back in 1974 in The Genetic Basis of Evolutionary Change (the same book from Lecture 4), and so it has come to be known as Lewontin’s paradox: genetic diversity varies way less across species than population size does, far less than neutral theory says it should.

Fig. 19 shows this about as clearly as anything could. Vince Buffalo, who did this work while he was a postdoc in my lab here at the University of Oregon, put together measurements of genetic diversity from 172 animal species and estimated how many individuals of each species there are (Buffalo 2021). The gray band shows what our equation predicts diversity should be if the effective size equaled the census size. The actual species are nowhere near it. Population size spans about 12 orders of magnitude along the bottom, and diversity only goes up a tiny bit across that whole range.

_images/buffalo2021_fig2.jpg

Fig. 19 Lewontin’s paradox. Each point is a species, colored by phylum, plotted by its approximate census population size (x-axis) and its pairwise genetic diversity per base pair (y-axis; for our purposes this is the same thing as \(H\) per site). The gray band is the neutral prediction if \(N_e\) equaled the census size, for mutation rates between \(10^{-9}\) and \(10^{-8}\). The dashed lines are the relationships actually fit to the data. Notice Homo sapiens way down there near \(10^{-3}\). Figure 2 from Buffalo 2021, eLife, CC BY 4.0.#

So what’s going on? Why don’t big populations have way more genetic variation? That turns out to be a really deep question, and people have been arguing about it for 50 years now without a complete answer. You’re looking at a real, live open question in the field! We’ll come back to some of the ideas for what might be going on in Lecture 11, once we’ve learned about linkage and recombination.

Effective population size#

In neutral populations, we can describe the rate at which the population drifts by its size. Our population however is an idealized Wright-Fisher population of random mating hermaphrodites that remain at constant population size. This describes only a very small portion of real populations though.

Multiple factors can cause populations to drift faster than their census size (the number of individuals you’d count if you went out and counted them) would predict. These include changes in population size, unequal sex ratios among the breeders, variance in reproductive success (some individuals have lots of kids while others have none, way more unevenly than random), and inbreeding. All of these mean that the next generation’s alleles are copied from fewer parents than it looks like. So we describe a real population by its effective population size, \(N_e\). Here’s the precise definition: \(N_e\) is the size of an idealized Wright-Fisher population that would lose heterozygosity to drift at the same rate as the real population does. In other words, it’s the \(N\) you should plug into all of the equations above. \(N_e\) is almost always smaller than the census size, often much smaller.

Let’s look at changes in population size first. If a population goes through \(n\) generations, with population size \(N_i\) in generation \(i\), then the effective population size of the population is given by the harmonic average of the population sizes

\[\begin{aligned} N_e= \frac{n}{\sum_{i=1}^{n}\frac{1}{N_{i}}} \leq \frac{1}{n} \sum_{i=1}^{n}N_{i} \end{aligned}\]

The harmonic average is never larger than the arithmetic average (they’re only equal if the population size never changes). This implies that periods of time in which a population is at small size disproportionately affect rates of genetic drift. For example, say a population is at 1000 for four generations but crashes down to 10 for one generation. The arithmetic average is 802, but \(N_e = 5/(4/1000 + 1/10) \approx 48\)! A single bad generation dominates the whole thing. A short, severe crash like this is called a population bottleneck, and the variation lost during the bottleneck doesn’t come back when the population recovers (well, not until new mutations build it back up, which takes a very long time).

The northern elephant seal is a famous example. Elephant seals were hunted so hard for their oil in the 1800s that by the 1890s there may have been only a few dozen of them left. Since then they have been protected and have bounced back to well over 100,000 animals. But when people looked at their genetic variation, they found almost none (Hoelzel et al. 1993). The bottleneck is still written in their genomes more than a century later.

If populations have unequal sex ratios among breeding individuals then again \(N_e\) is modified. Elephant seals are an example of this too (Fig. 20)! Males fight over beaches and a dominant male guards a harem of females, so many fewer males get to breed in any generation than females. Every kid has exactly one mom and one dad though, so half of the next generation’s alleles have to come through that small number of breeding males. The relation that describes this effect, where \(N_m\) and \(N_f\) are the numbers of breeding males and females, is seen below.

_images/elephant_seal_harem.jpg

Fig. 20 A northern elephant seal breeding beach at Piedras Blancas, California. Two huge males battle it out in the middle of a beach packed with females and pups. Only the winners get to breed, so a handful of males father most of the pups on the beach. Photo by Mike Baird, via Wikimedia Commons (CC BY 2.0).#

\[\begin{aligned} N_e= \frac{4N_m N_f}{N_m + N_f} \end{aligned}\]

So if a population has 10 breeding males and 90 breeding females, you’d count 100 breeders, but \(N_e = (4 \times 10 \times 90)/100 = 36\). Take a look at the magnitude of \(N_e\) reduction in this equation versus the one we arrived at for changes in effective population size. Which do you think is more important over evolutionary time?