dense_cross#
- pybrops.core.util.mate.dense_cross(fgeno, mgeno, fsel, msel, xoprob, rng)[source]#
Perform mating on matrix inputs.
- Parameters:
fgeno (numpy.ndarray) –
A female phased genome matrix of shape
(nphase,ntaxa,nvrnt).Where:
nphaseis the number of chromosome phases.ntaxais the number of taxa.nvrntis the number of variants (markers).
mgeno (numpy.ndarray) –
A male phased genome matrix of shape
(nphase,ntaxa,nvrnt).Where:
nphaseis the number of chromosome phases.ntaxais the number of taxa.nvrntis the number of variants (markers).
fsel (numpy.ndarray) –
A female selection configuration array of shape
(nsel,)containing indices of individuals for which to perform meiosis.Where:
nselis the number of individuals for which to perform meiosis.
msel (numpy.ndarray) –
A selection configuration array of shape
(nsel,)containing indices of individuals for which to perform meiosis.Where:
nselis the number of individuals for which to perform meiosis.
xoprob (numpy.ndarray) – A crossover probability array of shape
(nvrnt,)containing sequential probabilities of recombination.rng (numpy.random.Generator, numpy.random.RandomState) – A random number generator instance.
- Returns:
progeny – Genotype matrix of progenies.
- Return type:
numpy.ndarray