Skip to main content
Back to Biology

AP BIOLOGY · UNIT 7 · NATURAL SELECTION

Population Genetics & Drift Lab

AP Biology
File ▾

AP BIOLOGY · POPULATION GENETICS

Chance can change a population’s genes. How much depends on its size.

Each glass vial holds a small population of fruit flies. Every generation, only some of their gene copies are passed on, picked at random. You will breed twenty vials side by side and watch the frequency of an eye-colour allele drift, crash through bottlenecks and race against selection.

  1. Set the population: how many flies breed in each vial, and any force acting on it.
  2. Breed the generations and watch the vials and the graph change.
  3. Record the run, then compare runs in your data table.

Choose where to start:

About this model

Drift (Wright–Fisher model). Each vial is an ideal population of N diploid flies with two alleles, A and a, at one gene. Each generation the parents’ gene pool sets the chance that a gene copy is A (p). The N offspring are then made by drawing 2N gene copies at random from that pool. Because the draw is random, p changes a little by chance every generation: genetic drift. On average heterozygosity falls by a fraction 1/(2N) each generation.

Selection. Fitness is additive: AA flies leave 1 + s times as many offspring as aa, and Aa flies 1 + s/2. Before the draw, p′ = (p²(1 + s) + pq(1 + s/2)) ÷ w̄. Migration (island model): a fraction m of the breeders come from a large stock with frequency p(migrants), so p′ = (1 − m)p + m·p(migrants). Mutation turns A into a and a into A at the same tiny rate μ (illustrative only).

Bottlenecks and founders. At the event generation only k flies breed (2k gene copies are drawn); the next generation is back to N flies. In this model the two events use the same arithmetic: a bottleneck is drawn as a crash in the same vial, a founder event as k flies tipped into a fresh vial. Real founder populations often stay small for several generations, which this model leaves out.

Hardy–Weinberg. The inspector compares a vial’s genotype counts with the Hardy–Weinberg expectation p² : 2pq : q² for its own p. With random union of gametes they match on average, but a finite vial wobbles around the expectation.

The flies. The eye-colour gene is codominant: AA deep red, Aa orange, aa cream, so every genotype can be seen (Peter Buri’s classic 1956 drift experiment used fruit-fly brown-eye alleles chosen for the same reason, following about a hundred lines of 16 breeders for 19 generations). A vial draws at most 12 flies in the same genotype proportions as its N breeders. The rack and flies are a schematic, not to scale.

Every run is one possible run. The random draws are seeded, so a recorded run can be repeated exactly, but another seed gives a different result. Compare the average of the 20 vials (dashed line), not one vial.

What is left out. N is the number of breeders in an ideal population, not a measured effective size (Ne). Generations do not overlap; mating is random; males and females are not tracked; there is one gene with two alleles; selection does not change with frequency or environment. Starting values and ranges are teaching choices, not measurements.

What am I looking at?

How the lab works. Pick Explore or one lab at the top. Each lab has five tabs: Pre-lab, Bench, Data & graph, Claim · Evidence · Reasoning, and Test. On the Bench, the coach on the right always shows your next step; steps tick themselves as you work.

The bench. A rack of glass culture vials, one population in each. The foam plug keeps the flies in; the yellow layer at the bottom is fly food. The number on each label is the vial’s number. Each fly’s eye colour shows its genotype: deep red = AA, orange = Aa, cream = aa. The tag under a vial gives its frequency of allele A (p), or says A fixed (only A left) or A lost (only a left). The green display shows the generation.

One run. Set the population with the buttons or sliders under the rack, press Breed, and watch the generations. When the run ends, press Record this run to add it to your data table.

The graph. Each coloured line is one vial’s p over the generations; the thick dashed line is the average of all the vials. Switch to H to see heterozygosity (the share of Aa flies) instead. Tap a vial to highlight its line in gold and inspect it: the solid bars are its real genotype counts, the hatched bars what Hardy–Weinberg expects for its p.