← Virtual labs

PGB-30135 minCore skill

Crossing and selection simulator

Cross two plants and count the offspring. Then move a trait from a donor into an elite line, and select for a quantity such as yield, to see what really happens generation by generation.

Loading the lab…

About this model

Every cross is made with a seeded random generator, so the same seed always gives the same plants and you can reproduce any run. Gametes are drawn at random: each gene gives one of its two alleles with probability 1/2, and two genes on one chromosome give recombinant gametes with probability r (lesson 1.3; r = 0.5 means independent assortment). The chi-square test is the one of lesson 1.2: (observed minus expected) squared over expected, added over the classes, with degrees of freedom equal to classes minus 1 and the 5% critical values 3.84, 5.99, 7.81 and 9.49. The p-value comes from the chi-square distribution itself (the regularised incomplete gamma function), and the unit tests reproduce the lesson's worked examples (0.107, 0.470, 10.67, 28.03, 0.025, 608.4).

The backcross model has 10 chromosomes of 100 cM each (1,000 cM in all, an assumed genome of a typical crop). Crossovers happen along each chromosome at random with no interference (the Haldane model of lesson 1.3), about one per chromosome per meiosis. The target gene sits at 50 cM on chromosome 1. After a cross between the donor and the elite line, each backcross plant carries one mixed chromosome set from its backcross parent and one pure elite set. On average the elite share is 1 − (1/2)^(n+1): 75%, 87.5%, 93.75% after 1, 2 and 3 backcrosses. Individual plants vary around that, and marker-assisted selection (here, markers every 5 cM) picks the best ones. The donor segment that stays around the gene (linkage drag) is on average 200 ÷ t cM after t backcrosses for a long chromosome (lesson 4.2); on a 100 cM chromosome it is a little less, because the segment cannot run past the end. The lab shows both.

Selection response uses R = h² S with S = i σP (lesson 3.3) and the selection intensities of the lesson (top 50%: 0.80, 20%: 1.40, 10%: 1.755, 5%: 2.06, 1%: 2.67; the lab computes them from the normal curve). The lesson names two things that make later gains smaller than the first, and the lab models both with standard quantitative genetics: selection builds negative linkage disequilibrium that reduces the genetic variance (the Bulmer effect), and the few selected parents drift (the genetic variance falls by 1/(2 Ne) per generation with Ne equal to the number selected, lesson 3.2). Assumptions: a trait controlled by very many genes of small effect (the infinitesimal model), a normal distribution, truncation selection, random mating of the selected plants and no environment change. The equations give the expected outcome for a population of reasonable size; with very few selected parents real populations lose variation faster than the equations say, and the simulation with individual plants, shown beside them, scatters around the equations (check the effect by selecting 1% of 200).

Calibrated against: PGB-301 lessons 1.1, 1.2, 1.3, 3.2, 3.3, 4.2 and 6.2 (worked examples reproduced in the unit tests); Haldane 1919, J. Genetics 8: 299 (map function, no interference); Falconer and Mackay, Introduction to Quantitative Genetics (breeder's equation, selection intensity, Ne); Bulmer 1971, American Naturalist 105: 201 (genetic variance under selection); Hospital 2005, Genetics 170 (marker-assisted backcrossing); Press et al., Numerical Recipes 6.2 (incomplete gamma function).

This is a teaching model. It shows how the variables behave and what to expect; your own instruments, reagents and material will differ, so always follow your lab's validated procedure.

Related lessons: Plant genetics and breeding (PGB-301)