greatpy.tl.hypergeom_pmf

greatpy.tl.hypergeom_pmf(N, K, n, k)

Calculate the probability mass function for hypergeometric distribution

Parameters:
N : int

Total number of gene in the genome

K : int

Number of genes in the genome with annotation

n : int

Number of gene in the test set

k : int

Number of genes in the test gene set with annotation

Returns:

proability mass function

Return type:

float

Examples

>>> hypergeom_pmf(100,10,30,1)
...    0.11270773995748315