greatpy.tl.hypergeom_cdf

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

Calculate the cumulative density funtion 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:

Cumulative density function

Return type:

float

Examples

>>> hypergeom_cdf(100,10,30,1)
...    0.9770827595419788