oscar_colony.breeding_scheme.BreedingScheme#
- class oscar_colony.breeding_scheme.BreedingScheme(parent_1_genotype, parent_2_genotype)[source]#
Class representing a particular breeding scheme, i.e. the breeding of two specific parent genotypes.
- __init__(parent_1_genotype, parent_2_genotype)[source]#
Create a breeding scheme with two parent genotypes.
- Parameters:
- Raises:
ValueError – If the parent genotypes don’t have the same length
Methods
__init__(parent_1_genotype, parent_2_genotype)Create a breeding scheme with two parent genotypes.
Calculate the theoretical mendelian ratio for this breeding scheme.