View source: R/statistical_tests.r
hypergeometric | R Documentation |
Perform a hypergeometric test, also known as the Fisher's exact test, on a 2x2 contingency table with the alternative hypothesis set to 'greater'. In this application, the test finds the probability that counts[1, 1] or more genes would be found to be annotated to a term (pathway), assuming the null hypothesis of genes being distributed randomly to terms.
hypergeometric(counts)
counts |
A 2x2 numerical matrix representing a contingency table. |
a p-value of enrichment of genes in a term or pathway.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.