Mendelian Genetics in Haskell
To build:
./build.sh
To clean (remove generated files):
./clean.sh
To run:
./hendel n aIndex bIndex
where:
nis the number of offspring to generateaIndexandbIndexare values from0to3as described in the next section used for the genotype of the parents (the first parent gets its genotype fromaIndex; the second parent gets its genotype frombIndex)
aIndex and bIndex are numbers that correspond to different genotypes (as follows):
0: Cc1: Cc2: cC3: cc
It is recommended to play with this program via GHCi, creating whatever genes, genotypes, and crosses you would like. See the file Genes.hs for examples of genes, and Main.hs for how to cross genotypes.