Algorithm::Genetic::Diploid::Chromosome - one of a pair of homologous chromosomes
Constructor takes named arguments. Creates a default list of genes and chromosome number.
Sets and gets list of genes on the chromosome
Sets and gets chromosome number, i.e. in humans that would be 1..22, X, Y
Exchanges genes with homologous chromosome (the argument to this method).
To install Algorithm::Genetic::Diploid, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::Genetic::Diploid
CPAN shell
perl -MCPAN -e shell install Algorithm::Genetic::Diploid
For more information on module installation, please visit the detailed CPAN module installation guide.