A simulation that models the change in allele frequency p over x generations. It implements fitness, mutation, migration, and genetic drift to change the allele frequency each generation for each population given.
- Enter working directory
Hardy_Weinberg_Sim
- Enter parameters in
Model/Population.py
- Run the following in the terminal:
python Main.py
A matplotlib
plot will display changes in allele frequencies over N generations.
Thank you to Sarah Karam.
Inspiration for this project came from CJ Batty's driftR simulation in R: driftR