scSemiProfiler.utils.
hyperp
Returns the pmf of a hypergeometric test.
N (int) – Population size. In our case this is the total number of gene
int
n1 (int) – The number of element in the first set
n2 (int) – The number of element in the second set
k (int) – The number of overlap
mpmath.ctx_mp_python.mpf
p – cdf
Example
>>> print(hyperp(6000,100,100,97))