# limix.stats.allele_frequency¶

limix.stats.allele_frequency(X)[source]

Compute allele frequency from its expectation.

X is a matrix whose last dimension correspond to the different set of chromosomes. The first dimension represent different variants and the second dimension represent the different samples.

Parameters

X (array_like) – Allele expectations encoded as a variants-by-samples-by-alleles matrix.

Returns

frequenct – Allele frequencies encoded as a variants-by-alleles matrix.

Return type

ndarray