This app allows you to explore how balancing selection maintains genetic diversity in populations, using the example of frequency-dependent selection.

The graph on the left shows a case of frequency-dependent fitness of phenotypes. The frequency of the dominant phenotype is shown on the x-axis, and the frequency of the recessive phenotype is one minus the dominant - thus, when the dominant is rare (near zero, at 0.01 for example) the recessive is common (at 1 - 0.01 = 0.99). Thus, you can read the frequency of the dominant phenotype from the x-axis, and calculate the recessive frequency by subracting the dominant frequency from 1.

The important point to note is that fitness (on the y-axis) is high when either phenotype is rare, and fitness declines when it becomes common. In the example we saw in lecture the fitness of the yellow and purple morphs of flowers, insects were attracted to yellow flowers particularly strongly when the yellow flowers were rare - you can think of these alleles as being flower color alleles (R for purple flowers, S for yellow flowers).

We expect alleles to spread when the phenotypes they produce have the highest relative frequency, and no change is expected when the fitnesses are the same. If you hover over the graph you'll see that they are the same at a frequency of 0.5 for the dominant phenotype in this example - this is where the lines cross on the graph.

We expect then that the phenotypes will arrive at frequencies that give them equal fitness. We can see if that is the case with the model below. This model is much like our model of natural selection, but now the fitness of a phenotype depends on its frequency - we won't be able to set the fitnesses to values of our choosing, but they are calculated based on the frequencies of the phenotypes, using the curves in this first graph. Note that since this is an example for a gene that has a fully dominant allele the frequencies of RR and RS are added together as the frequencies of the dominant phenotype - consequently, the fitnesses are the same for RR and RS. Even though p and q start at 0.5, the initial frequencies of RR and RS are 0.25 and 0.5, which sum to 0.75 for the frequency of the phenotype; that is, even though the allele frequencies are the same the phenotype frequencies are not, and it is the phenotypes that are selected.


The model is the same as the selection model we used previously, except that the fitness of the phenotypes depends on their frequency in the population.

Genotypes


PPP homozygotes (purple)
PYHeterozygotes (purple)
YYY homozygotes (yellow)
2. Parent g.f.Parent genotype frequencies at birth.
p2
2pq
q2
3. Rel. fitness (wi)Relative fitnesses for the phenotypes
Relative fitness of PP (purple)
Relative fitness of PY (purple)
Relative fitness of YY (yellow)
4. Freq. x fitnessGenotype frequencies multiplied by relative fitnesses



5. Pop. fitness (w̄):Population average fitness
6. Breeder g.f.:Genotype frequencies of breeders


Used to calculate allele frequencies of gametes.




8. Offspring geno. freq:Offspring genotype frequencies at birth
Gamete p2
Gamete 2pq
Gamete q2

Alleles


pFrequency of the P allele
qFrequency of the Y allele
← Used to calculate initial parent genotype frequencies
1. AF Initial.Initial frequencies of alleles for parents at their birth
Initial frequency of Y allele (equal to 1-p)












Used to calculate offspring genotype frequencies
7. AF gametesAllele frequencies of gametes produced by breeders, after selection
Frequency of PP + Frequency of PY/2
Frequency of YY + Frequency of PY/2

Generations:



Selection causes the frequencies to change until the fitness of the phenotypes is equal.

The genotype frequencies respond to selection on the phenotypes.

Allele frequencies change as the genotype frequencies change, in response to selection on phenotypes