Climate-Resilient Crops · Answer Model

Genomic Selection: Answer Model

This is the answered version of the Genomic Selection practical. Every ❓ question is followed by a worked model answer (green box). All the interactive steps still work, so you can keep retraining the model and running breeding cycles while you read, and the self-test quiz at the end is unchanged.

? Recap: why we need a new method

In the previous practical we bred for salt resistance, a trait controlled by essentially one marker. We could find that single marker with a GWAS and then select plants simply by checking whether they carried it.

Many important traits do not work like that. Yield is a good example: it is a polygenic trait, influenced by many different genes that each contribute only a tiny bit. There is no single marker you can check to know whether a plant will be high yielding.

So how do we select for a trait that is spread across many markers, each with a small effect? This is what genomic selection solves. Instead of looking at one marker, we build a model that looks at all the markers at once and combines them into a single prediction of a plant's performance. In this practical we will:

  1. Confirm that no single marker explains yield.
  2. Train a genomic selection model on plants whose markers and yield we both know.
  3. Inspect what the model learned and how well it predicts.
  4. Use it to run breeding cycles, and compare against breeding without any selection.

1 A population where we know markers and yield

We start with a genetically diverse population. For every plant we know its markers (its DNA) and its measured yield. This combination of known markers plus known phenotype is exactly what we will use to train the model.

Scroll sideways to see all the markers.

❓ Question
  • If you wanted to predict the yield of a brand new plant from its DNA alone, what would you need to have worked out first from a population like this?
✅ Answer
  • What you would need first. You would need to know how much each marker contributes to yield, and in which direction. A new plant's DNA is just a row of 0s and 1s; on its own that tells you nothing. It only becomes a prediction once you can attach a number to each marker and add up the contributions. And the only way to learn those numbers is from a population like this one, where you know the markers and the measured yield for the same plants, so you can work out which marker values tend to travel with high yield. Note what this implies: you can never predict a phenotype from DNA alone. Somebody has to have grown and measured a training population first.

2 Confirm that single-marker selection will not work

Just like in the previous practical, we can run a GWAS and make a Manhattan plot, this time for yield. If one marker controlled yield, we would expect one tall bar rising above the significance line, the way Marker 12 did for salt resistance.

Manhattan plot for yield. Drag the slider to grow the population.

❓ Questions
  • Grow the population to a large size. How does this plot compare with the salt-resistance Manhattan plot from the previous practical?
  • Why would marker assisted selection not be (easily) applicable here? What underlying biology causes this difference?
✅ Answer
  • Comparing the two plots. The salt-resistance plot had one tall spike at Marker 12 that rose further and further above every other bar as the population grew. This one never produces that spike. Instead a group of markers at the left each reach a modest height. Growing the population makes the pattern cleaner but does not turn any bar into a winner, so this is not a problem you can solve by collecting more plants.
  • Why marker assisted selection fails here, and the biology behind it. Marker assisted selection needs a single marker that carries most of the effect, so that checking one position in the DNA tells you most of what you need to know. Here no marker does. Selecting on the tallest bar would capture only a small slice of the trait, and stacking the useful markers one at a time would take far too many crossing rounds. The underlying biology is that yield is not one thing. It is the end result of photosynthesis, root growth, water and nutrient uptake, flowering time, stress tolerance and much else, each controlled by its own genes. Traits built out of many small contributions are called polygenic, and most agriculturally important traits are polygenic. Salt resistance in the previous practical was the unusual case, not the typical one.

3 Train a genomic selection model

Instead of picking one marker, we train a model that uses all markers together. The model learns a weight for each marker: how much, and in which direction, that marker tends to push the yield. Adding up the contributions of all markers for a given plant gives a single predicted value for that plant.

To learn these weights, the model needs examples. We give it a population where we know both the markers and the real yield, and we tell it which phenotype to predict. "Training" simply means letting the model adjust its 50 weights until its predictions fit the yields it was shown as closely as it can. This actually runs live in your browser: drag the slider and the model is retrained on the spot.

Training the model…

After changing this, look at the weights in step 4 and the predictions in step 5: notice how the model's picture sharpens as it learns from more plants.

4 Look at what the model learned

Now that the model is trained, we can look at the weight it assigned to each marker. A large positive weight means that marker tends to increase yield, a large negative weight means it tends to decrease yield, and a weight near zero means the model thinks that marker barely matters for yield.

Each bar is one marker's learned weight. Above zero raises yield, below zero lowers it.

❓ Question
  • What does the height, and the direction (above or below zero), of a single bar tell you about that marker's effect on yield?
  • Which group of markers looks most important for raising yield, and which group for lowering it?
  • How is this plot different from a Manhattan plot? Think carefully about what the height of a bar means in each of the two plots.
✅ Answer
  • What one bar tells you. The direction says which way that marker pushes: a bar above zero means plants carrying a 1 there tend to yield more, a bar below zero means they tend to yield less. The height says how big that push is, in the units of the trait. So a bar of +2 is the model saying "carrying a 1 at this marker is worth about 2 extra units of yield, holding the other markers fixed". A bar near zero means the model found no consistent effect for that marker.
  • Which markers matter. Once the model has enough training plants, the picture is clear: a block of about ten markers at the very left of the plot (markers 0 to 9) all stand well above zero, and a small block around markers 20 to 22 sits below zero. Those are the markers that raise and lower yield respectively. Everything else hovers around zero. Train on only 5 or 10 plants and this structure is buried in noise; drag the slider up and watch the real pattern emerge from the clutter. That is worth doing, because it shows you what "the model needs enough data" actually looks like.
  • How this differs from a Manhattan plot. This is the key conceptual point of the practical, and it is easy to slide past. The two plots look similar but the bar heights mean different things. In a Manhattan plot the height is evidence: how confident we are that a marker is associated with the trait at all. It is always positive, it says nothing about the direction of the effect, and it grows without limit as you add more plants, because more data means more certainty. Here the height is an effect size: how much yield that marker is worth, with a sign. It does not grow as you add plants, it converges on the true value. Another way to put it: a Manhattan plot answers "is this marker involved?", one marker at a time; the weights plot answers "how much is this marker worth?", for all markers at once and taking the others into account.

5 Check how good the predictions are

Before we trust the model to guide our breeding, we should check how well it actually predicts yield. The fair test is to use 10 new plants that the model was never trained on: we ask the model to predict their yield from their markers alone, then compare its predictions against their real, measured yields. If the model were perfect, every point would lie exactly on the red diagonal line.

training plants (model has seen these) 10 new test plants (model never saw these)

❓ Questions
  • The points cluster around the diagonal but do not sit exactly on it. Why can the model not perfectly predict the phenotype?
  • Does the model still predict reasonably well on the 10 plants it was never trained on? Why does testing on unseen plants matter?
✅ Answer
  • Why the predictions are not perfect. Several reasons stack up, and none of them can be trained away. The biggest is that the phenotype is not purely genetic: two plants with identical DNA still yield differently because of soil, water, light and chance, and no model reading only DNA can predict that part. On top of that the model has seen a limited number of training plants, so its 50 weights are estimates rather than truths; and the markers we measured may not be the causal variants themselves, only positions that happen to sit near them. The scatter around the diagonal is the honest visual summary of all of that, and a model that sat exactly on the line would be a warning sign, not a triumph.
  • The unseen plants, and why they matter. The yellow points should sit around the diagonal much like the blue ones, so yes, the model still works on plants it never saw. That is the result you actually care about. The blue training points are not evidence of anything, because the model was fitted to them: a model can score well there simply by memorising, which teaches you nothing about the next plant. Only the held-out points estimate what happens when you use the model for real, on seedlings whose yield nobody has measured, which is the entire purpose of the exercise. Set the training size very low and watch the two groups come apart: the model still tracks the blue points reasonably while the yellow ones scatter badly. That gap is overfitting, and testing on unseen plants is how you catch it.

6 Predict, select and breed

Now we put the model to work. We ask it to predict the yield of every plant. Breeders call this prediction a GEBV (Genomically Estimated Breeding Value): the model's best guess of how good a plant is, based purely on its markers. The big advantage is that you can compute a GEBV for a tiny seedling from its DNA alone, without growing it to maturity and measuring its yield.

We begin from a breeding population made by crossing today's elite variety with diverse material, so it already yields fairly well but still has genetic variation to work with. Each breeding cycle then does three things: predict the GEBV of every plant, keep the best ones as parents, and cross them to make the next generation. We run two programmes side by side from that same starting population: one that selects on GEBV, and a control that just crosses plants at random. The dashed line marks today's elite variety, the best crop farmers currently grow.

Genomic selection No selection (random crossing) today's elite variety
❓ Questions
  • How can you tell from the graph whether genomic selection actually helped?
  • Today's elite variety is already very good. What does it mean that genomic selection can push the yield past that dashed line?
  • Do you think genomic selection would also work for a trait controlled by a single marker, like salt resistance? Why or why not?
  • Could you think of some limitations of genomic selection?
  • Here is one limitation worth working out for yourself. The model predicts by multiplying each marker by its weight and adding all 50 contributions together, so a marker always contributes the same amount no matter what the other markers are doing. Biologists use the word epistasis for the case where the effect of one gene depends on which allele is present at another gene. Can our model capture epistasis? And what would that mean for its predictions?
💡 Hint: a pathway with two steps

Imagine a plant makes a useful compound in two steps, each carried out by its own enzyme, and that there is a marker for an improved version of each of the two enzymes. The improved second enzyme can only work on what the first step hands it, so on its own it barely helps. Only a plant carrying both improved enzymes gets the full benefit, which is more than the two separate effects added together. Now ask yourself what weight the model would learn for each of those two markers.

✅ Answer
  • Reading success off the graph. Compare the two lines, not the green one on its own. Both programmes start from the same population, so any gap between them is caused by the selection and nothing else. The green line should climb steadily cycle after cycle while the blue control wanders roughly sideways, drifting up or down by chance. If the green line is not pulling away from the blue one, the selection is not doing anything, whatever the absolute yield happens to be. This is why the control matters: without it you could mistake ordinary variation between generations for progress.
  • Passing the elite line. The dashed line is the best variety farmers currently grow, so crossing it means the breeding programme has produced something better than today's best. It is possible because the elite variety is good but not perfect: it carries most of the favourable alleles but is missing one, and no single existing plant happens to combine every favourable allele at once. The variation to do better is already present in the population, scattered across different individuals. Selection does not create anything new; it assembles favourable alleles that were already there into one plant. That is also why progress eventually slows: once the favourable alleles are all fixed, there is nothing left to assemble.
  • Would it work for a single-marker trait? Yes, it would work, but it would be the wrong tool. The model would simply learn one large weight on Marker 12 and near-zero weights everywhere else, and selecting on the predicted value would amount to selecting on Marker 12. You would get the right answer by an expensive route: genotyping every marker and fitting a model in order to reproduce what a single marker test tells you directly and far more cheaply. There is also a real cost to the detour, since with a small training population the model may spread the effect across nearby markers or attach weight to markers that are only there by chance. The rule of thumb: use marker assisted selection when one marker explains most of the trait, and genomic selection when no single marker does.
  • Limitations. The most important one is that the model is only valid for the population it was trained on. Its weights are not statements about biology, they are statements about which markers happened to travel with the causal genes in that population. Apply it to unrelated material and those associations may be weaker, absent or reversed, and the predictions degrade badly. The same applies across environments: a model trained on yield in one climate can rank plants wrongly in another, because the genes that matter are not the same ones. Then there are the slower problems. The associations decay over generations as recombination separates markers from the genes they were standing in for, so the model has to be retrained on new measured plants every so often. Selecting hard on predictions shrinks genetic variation each cycle, so gains get smaller and the population becomes inbred, and a model that only knows about yield will happily drive yield up while quietly discarding disease resistance or drought tolerance that nobody told it to protect.
  • Epistasis. No, this model cannot capture it. The prediction is one fixed weight per marker, added up, so the marker for the improved second enzyme contributes the same amount whether or not the plant also carries the improved first one, and there is no term that can switch on only when both are present. The model does the best it can by splitting the joint effect across the two weights, which is roughly right on average but wrong for individual plants: it overestimates plants carrying only one of the pair and underestimates plants carrying both. That matters for breeding, because the allele combinations worth chasing are exactly the ones the model cannot see.

✓ Check your understanding