hyperEnrichment | R Documentation |
Carry out set enrichment test based on hyper-geometric distribution
hyperEnrichment(
drawn,
categories,
ntotal = length(unique(unlist(categories))),
min.drawsize = 4,
mht = TRUE,
verbose = TRUE
)
drawn |
One or more sets of 'drawn' items (e.g., genes). Basically, a list of signatures. |
categories |
list of gene sets (e.g., MSigDB c2) |
ntotal |
background population, i.e., the total no. of items from which items are supposed to have been drawn |
min.drawsize |
min no. of drawn items that must be among categories' items |
mht |
correct for multiple hypothesis testing across multiple 'draws' |
a data.frame with rows indexed by the signature(s) tested
# load objects hyperSig (a list of signatures) and hyperGsets (a GeneSet object)
# and run hyper-enrichment test
data(hyper) # contains objects hyperSig and hyperGsets
hyperE <- hyperEnrichment(drawn=hyperSig,categories=getGeneSet(hyperGsets),ntotal=10000)
head(hyperE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.