Description Usage Arguments Value Examples
View source: R/multintersect.R
Calculates the probability of the observed overlap between two sets on the basis of the hypergeometric distribution.
1 | overlap.prob(set1, set2, universe, lower = F)
|
set1 |
a character vector |
set2 |
a character vector |
universe |
either a character vector containing the universe/background (recommended), or an integer indicating the size of the universe |
lower |
logical; whether the lower tail should be considered (default FALSE). By default the function tests for an enrichment, set to TRUE to test for a depletion. |
the probability of the overlap
1 | overlap.prob( c("A","B","C","D"), c("B","D","G"), LETTERS )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.