superexacttestpy.tl.dp_sets

superexacttestpy.tl.dp_sets(x, data, n, logp=False)

Calculate the probability density of the intersection

Parameters:
x : int

Size of gene intersection

data : list

List of list of gene

n : int

Number of total background size: total number of gene

logP : bool

The result should be with a log scale

Returns:

res – Probability density of the intersection

Return type:

float

Example

>>> dhyper(5,10,10,12,False)
...    0.2400571564658254
>>> dhyper(5,10,10,12,True)
...    -1.4268782320528786