DenseGeneralizedWeightedCoancestryMatrixFactory#
- class pybrops.popgen.cmat.fcty.DenseGeneralizedWeightedCoancestryMatrixFactory.DenseGeneralizedWeightedCoancestryMatrixFactory(**kwargs)[source]#
Bases:
DenseCoancestryMatrixFactory
Factory class for producing CoancestryMatrix objects.
Constructor for DenseGeneralizedWeightedCoancestryMatrixFactory.
- Parameters:
kwargs (dict) – Additional keyword arguments used for cooperative inheritance.
Methods
Create a CoancestryMatrix from a GenotypeMatrix.
- from_gmat(gmat, mkrwt=None, afreq=None, **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: