CoancestryMatrixFactory#

class pybrops.popgen.cmat.fcty.CoancestryMatrixFactory.CoancestryMatrixFactory[source]#

Bases: object

Factory class for producing CoancestryMatrix objects.

Methods

from_gmat

Create a CoancestryMatrix from a GenotypeMatrix.

abstract 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 coancestry matrix.

Return type:

CoancestryMatrix