Skip to content

phicks22/Hardy_Weinberg_Sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardy_Weinberg_Sim

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.


Instructions

  1. Enter working directory Hardy_Weinberg_Sim
  2. Enter parameters in Model/Population.py
  3. Run the following in the terminal:
 python Main.py

A matplotlib plot will display changes in allele frequencies over N generations.


ACKNOWLEDGEMENTS:

Thank you to Sarah Karam.

Inspiration for this project came from CJ Batty's driftR simulation in R: driftR

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages