DenseTwoWayDHAdditiveGenicVarianceMatrixFactory#

class pybrops.model.vmat.fcty.DenseTwoWayDHAdditiveGenicVarianceMatrixFactory.DenseTwoWayDHAdditiveGenicVarianceMatrixFactory(**kwargs)[source]#

Bases: AdditiveGenicVarianceMatrixFactory

docstring for DenseTwoWayDHAdditiveGenicVarianceMatrixFactory.

Constructor for DenseTwoWayDHAdditiveGenicVarianceMatrixFactory.

Parameters:

kwargs (dict) – Additional keyword arguments used for cooperative inheritance.

Methods

from_algmod

Estimate genic variances from a GenomicModel.

from_gmod

Estimate genic variances from a GenomicModel and PhasedGenotypeMatrix.

from_algmod(algmod, pgmat, nprogeny, mem=1024, **kwargs)[source]#

Estimate genic variances from a GenomicModel.

Parameters:
  • algmod (AdditiveLinearGenomicModel) – AdditiveLinearGenomicModel with which to estimate genic variances.

  • pgmat (PhasedGenotypeMatrix) – Input genomes to use to estimate genic variances.

  • ncross (int) – Number of cross patterns to simulate for genic variance estimation.

  • nprogeny (int) – Number of progeny to simulate per cross to estimate genic variance.

  • nself (int) – Number of selfing generations post-cross pattern before ‘nprogeny’ individuals are simulated.

  • gmapfn (GeneticMapFunction) – GeneticMapFunction to use to estimate covariance induced by recombination.

  • mem (int) – Memory chunk size to use during matrix operations.

  • kwargs (dict) – Additional keyword arguments.

Returns:

out – A matrix of additive genic variance estimations.

Return type:

DenseTwoWayDHAdditiveGenicVarianceMatrix

from_gmod(gmod, pgmat, nprogeny, **kwargs)[source]#

Estimate genic variances from a GenomicModel and PhasedGenotypeMatrix.

Parameters:
  • gmod (GenomicModel) – GenomicModel with which to estimate genic variances.

  • pgmat (PhasedGenotypeMatrix) – Input genomes to use to estimate genic variances.

  • ncross (int) – Number of cross patterns to simulate for genic variance estimation.

  • nprogeny (int) – Number of progeny to simulate per cross to estimate genic variance.

  • nself (int) – Number of selfing generations post-cross pattern before ‘nprogeny’ individuals are simulated.

  • gmapfn (GeneticMapFunction) – Genetic map function with which to calculate recombination probabilities.

  • kwargs (dict) – Additional keyword arguments.

Returns:

out – A matrix of genic variance estimations.

Return type:

DenseTwoWayDHAdditiveGenicVarianceMatrix