DenseMolecularCoancestryMatrixFactory#

class pybrops.popgen.cmat.fcty.DenseMolecularCoancestryMatrixFactory.DenseMolecularCoancestryMatrixFactory(**kwargs)[source]#

Bases: CoancestryMatrixFactory

Factory class for producing CoancestryMatrix objects.

Constructor for DenseMolecularCoancestryMatrixFactory.

Parameters:

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

Methods

from_gmat

Create a CoancestryMatrix from a GenotypeMatrix.

from_gmat(gmat, **kwargs)[source]#

Create a CoancestryMatrix from a GenotypeMatrix.

Parameters:
  • gmat (GenotypeMatrix) – Input genotype matrix from which to calculate coancestry.

  • kwargs (dict) – Additional keyword arguments.

Returns:

out – A dense coancestry matrix.

Return type:

DenseMolecularCoancestryMatrix