AberystwythSystemsBiology / AberystwythSystemsBiology/pyMEAN
Hypergeometric test from scipy does not have the right parameters fed
Aperta
- Lingua principale
- Python
- Stelle
- 9
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```python
p_value = 1-hypergeom.cdf(
num_hits-1,
population-num_dbids,
num_cpds,
num_dbids)
```
According to scipy doc: cdf or sf take for argument : `(k, M, n, N, loc=0)` where M is the total number of objects (and not n=N-m like in R `phyper`, so here it should be the population.
Also the `fisher_exact` test could take an `alternative` param 'greater' so that both p-value would be the same, as Fischer is based on hypergeometric distribution.
I hope this package is still maintain :)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.