MatingOperator#
- class pybrops.breed.op.mate.MatingOperator.MatingOperator[source]#
Bases:
objectAbstract class defining interfaces for the mating of an entire breeding program.
- The purpose of this abstract class is to provide functionality for:
Mating of an entire breeding program.
Methods
Mate individuals selected as parents in a breeding program.
- abstract mate(mcfg, genome, geno, pheno, bval, gmod, t_cur, t_max, miscout, **kwargs)[source]#
Mate individuals selected as parents in a breeding program.
- Parameters:
mcfg (dict) – Dictionary of mating configurations for the breeding program.
genome (dict) – Dictionary of genomes for the breeding program.
geno (dict) – Dictionary of genotypes for the breeding program.
pheno (dict) – Dictionary of phenotypes for the breeding program.
bval (dict) – Dictionary of breeding values for the breeding program.
gmod (dict) – Dictionary of genomic models for the breeding program.
t_cur (int) – Current time in the breeding program.
t_max (int) – Deadline time for the breeding program.
miscout (dict, None) – Pointer to a dictionary for miscellaneous user defined output. If
dict, write to dict (may overwrite previously defined fields). IfNone, user defined output is not calculated or stored.kwargs (dict) – Additional keyword arguments.
- Returns:
out – A tuple of length 5:
(genome, geno, pheno, bval, gmod)Where:
genomeis adictof genomes for the breeding program.genois adictof genotypes for the breeding program.phenois adictof phenotypes for the breeding program.bvalis adictof breeding values for the breeding program.gmodis adictof genomic models for the breeding program.
- Return type:
tuple