greatpy.tl.get_binom_pval

greatpy.tl.get_binom_pval(n, k, p)

Calculate the binomial probability of obtaining k in a set of size n and whose probability is p

Parameters:
n : int

Number of genomic region in the test set

k : int

Number of test genomic regions in the regulatory domain of a gene with annotation

p : float

Percentage of genome annotated

Returns:

binomial probability

Return type:

float

Examples

>>> get_binom_pval(100,2,0.2)
...    0.9999999947037065