View source: R/methods-Module.R
calc_set_enrichment | R Documentation |
Calculate the hypergeometric enrichment for two sets from a population Statisic = log (observed overlap / expected overlap) P value = 1- hypergeometric(observed overlap -1, max(|set1|, |set2|), |genes| - |set1|, min(|set1|, |set2|))
calc_set_enrichment(set1, set2, genes)
set1 |
the first gene set |
set2 |
the second gene set |
genes |
the population |
c(statistic, p value)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.