oscar_colony.breeding_scheme.generate_breeding_schemes#
- oscar_colony.breeding_scheme.generate_breeding_schemes(n_mutations)[source]#
Generate all possible combinations of parent1 x parent2 genotype, for the given number of mutations.
Whether mutations come from the father or mother is ignored e.g. wt x hom (father x mother) is identical to hom x wt (father x mother), and only one of these combinations will be returned.
- Parameters:
n_mutations (
int) – Number of mutations- Returns:
A list where each item is a possible breeding scheme (a cross between two specific parent genotypes)
- Return type:
list[BreedingScheme]