An interactive Genetic Drift simulation implemented as a cellular automaton.
I became curious about the phenomenon of genetic drift through biology class. In particular, I wanted to explore its effects on different population sizes, which motivated me to do this project.
Each square-shaped ring of cells represents an isolated colony. Green cells have an "Aa" or "AA" genotype, yellow cells have an "aa" genotype. This simualtion is a great way to understand how genetic drift works.
This automaton models the effects of genetic drift on different population sizes. Genetic drift is a mechanism of evolution in which the genetic makeup of a community becomes increasingly homogenous as the population progresses from one generation to the next. Unlike natural selection, genetic drift is caused by chance factors like sampling error and population size, both of which are apparent in this model.
An example of genetic drift is the founder effect, which occurs when a small group of organisms leaves a larger population to establish a new community elsewhere. Because of its small sample size, the genetic makeup of this founding group is likely different from that of the larger community it hails from (ex. 70% of the founding group might have a particular allele while only 50% of the larger community has that particular allele). If the genetic makeup of the founding group does indeed favour a particular allele, that allele may become more and more frequent in subsequent generations, approaching 100% frequency. Once the population reaches a 100% frequency of one allele, it is called a state of fixation.
In this model, multiple colonies of organisms are displayed at once. Each colony is represented by a square-shaped ring of cells and the colour of each cell is determined by its combination of alleles (genotype).
A cell can be either green or yellow. The colour of a cell is determined by its genotype. Each cell’s genotype contains a combination of two possible alleles (“A” or “a”). “A” is the dominant allele, meaning that a genotype with at least one “A” allele (ex. “AA” or “Aa”) will produce green, the dominant phenotype. On the other hand, “a” is the recessive allele, meaning that a genotype with two “a” alleles (ex. “aa”) will produce yellow, the recessive phenotype.
The allele combinations (aka genotypes) of the first generation are set randomly. For all subsequent generations, each cell mates with its clockwise neighbour to produce one offspring cell.
The genotypes of the offspring are determined by the genotypes of its parents. However, since there are 4 possible (though not necessarily distinct) genotypes that can result from each reproduction, the genotype of the offspring is selected randomly from the four possibilities.
Once the genotypes of the offspring generation are set, the offspring are assigned a random spot (aka index) inside their ring-shaped colony. In the next frame, the offspring of the offspring are displayed and the cycle repeats.