Description Usage Arguments Value Examples
View source: R/over_representation_analysis.R
Uses fisher.test to calculate the over-representation of a set of features on a functional category given an "universe" that is used as statistical background. Based on the Fisher's Exact Test over a contingency table.
1 | fisherExactTest(features, funCat, universe)
|
features |
Input features. |
funCat |
All the features in the functional category. |
universe |
All the universe features. |
The over-representation significance as a P value.
1 2 3 4 5 6 7 8 9 | g <- letters[1:5]
f <- letters[2:6]
f2 <- letters[c(1, 10:15)]
u <- letters
# this should give a low p value (high over-representation)
fisherExactTest(g, f, u)
# this should give a high p value (low over-representation)
fisherExactTest(g, f2, u)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.