Simulating Genetic Drift and Selection

This app allows you to simulate the combined effects of genetic drift and natural selection on the frequency of an allele A (p). Critical parameters include:

  • The starting allele frequency, p0. This parameter can vary between 0 and 1.

  • The number of generations you want to run the simulation for (maximum: 40).

  • The size of the population, which can vary between 2 and 1000.

  • The relative fitness of each genotype (AA, Aa, and aa). Fitness values can vary between 0 and 2.

  • The number of replicate simulations, which can vary between 1 and 50.

Try to play with different scenarios. Change one parameter at a time to explore how outcomes vary. Be careful with simulations that use a high number of generations and replicates, as they can take a long time to run.

To access the app directly, click here. This app is based on the learnPopGen package by Liam Revell.