A laboratory manual for the Biol 5221 course providing Python programming instructions and examples for simulating genetic drift, mutation, and genealogies.
This document is a laboratory manual for the Biol 5221 course, authored by Alan Rogers and Jon Seger. It serves as a guide for students to perform computational simulations using Python.
The bnldev function generates random values from the binomial distribution to simulate the number of copies of an allele in the next generation.
The command requires N, which is the number of trials, and p, which is the probability of success on each trial.
The program should run to completion in 100 generations or so.