mat_dh#

pybrops.breed.prot.mate.util.mat_dh(geno, sel, xoprob, rng)[source]#

Perform doubled haploid production on matrix inputs.

Parameters:
  • geno (numpy.ndarray) – Genotype matrix.

  • sel (numpy.ndarray) – Selection configuration array.

  • xoprob (numpy.ndarray) – Crossover probability array.

  • rng (numpy.random.Generator, numpy.random.RandomState) – Random number generator instance

Returns:

progeny – Genotype matrix of progenies.

Return type:

numpy.ndarray