dense_dh#
- pybrops.core.util.mate.dense_dh(geno, sel, xoprob, rng)[source]#
Perform doubled haploid production on matrix inputs. Assumes diploidy.
- Parameters:
geno (numpy.ndarray) –
A phased genome matrix of shape
(nphase,ntaxa,nvrnt)
.Where:
nphase
is the number of chromosome phases.ntaxa
is the number of taxa.nvrnt
is the number of variants (markers).
sel (numpy.ndarray) –
A selection configuration array of shape
(nsel,)
containing indices of individuals for which to perform meiosis.Where:
nsel
is 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 – A phased genome matrix of progenies of shape
(nphase,ntaxa,nvrnt)
.- Return type:
numpy.ndarray