mat_mate#

pybrops.breed.prot.mate.util.mat_mate(fgeno, mgeno, fsel, msel, xoprob, rng)[source]#

Perform mating on matrix inputs.

Parameters:
  • fgeno (numpy.ndarray) – Female genotype matrix.

  • mgeno (numpy.ndarray) – Male genotype matrix.

  • fsel (numpy.ndarray) – Female selection configuration array.

  • msel (numpy.ndarray) – Male 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