In this repository you'll find some practices related to population genetics that I have used in my teaching.
Each practice is located within a Jupyter Notebook file.
Practices implemented:
- Population definition using PCA
- Genetic drift
- Three drifting populations
- Bottleneck
- Founder effect
- Mutation-drift
- Selection
- Balancing selection
To run the code you need Jupyter and some population genetic libraries that have been used to create the simulations:
The full list of dependencies can be found in the files requirements.txt or environment.yml
If you are new to Python the easiest way to run the code in your computer is:
- Install Anaconda
- Launch "Anaconda Navigator"
- Run a console inside Anaconda Navigator (in windows CMD.exe promt will do)
- Inside the terminal run the command:
conda install --yes -c conda-forge scikit-allel ipywidgets seaborn msprime plotly demesdraw jupyter-dash
- Once the command is run close the terminal
- Download and unzip the practices
- In Anaconda Navigator open Launch "Jupyter Lab"
- In the Jyputer Lab file browser go to the practices src folder and one any of the Jupyter Notebook files (the ones with the extension .ipynb)