Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with gominer.Fisher which is used by org/campagnelab/goby/stats/FisherExactTestCalculator.java #4

Open
pgrt opened this issue Aug 5, 2021 · 0 comments

Comments

@pgrt
Copy link

pgrt commented Aug 5, 2021

Hello,

In version 3.3.1 of Goby, I see gominer.Fisher is used to compute p-values of Fisher tests in org/campagnelab/goby/stats/FisherExactTestCalculator.java.

During the test org.campagnelab.goby.stats.TestStatistics.testTwoStats, the p-value of the Fisher test associated to the table
322777 318050
160397 151279
is computed, and the p-value given by gominer.Fisher is 1. Yet, passing this table to R (fisher.test) or even to https://www.langsrud.com/fisher.htm gives a p-value that is lower than 1.E-16. So the test testTwoStats should be changed as it should not expect a p-value of 1 for the Fisher test.

Enclosed is a patch which would avoid needing gominer and use DistLib (https://sourceforge.net/projects/statdistlib/) instead. It needs a review before maybe being included, still.

computing_fisher_pvalue_hypergeom.txt

Best regards,

--
Pierre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant