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