Mendelian Genetics in Haskell
To build:
./build.sh
To clean (remove generated files):
./clean.sh
To run:
./hendel n aIndex bIndex
where:
n
is the number of offspring to generateaIndex
andbIndex
are values from0
to3
as 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.