MSET | R Documentation |
Calculate FE and significance of intersection among multiple sets.
MSET(x,n,lower.tail=TRUE,log.p=FALSE)
x |
list; a collection of sets. |
n |
integer; background population size. |
lower.tail |
logical; if TRUE, probability is |
log.p |
logical; if TRUE, probability p is given as log(p). |
This function implements an efficient statistical test for multi-set intersections. The algorithm behind this function was described in Wang et al 2015.
A list with the following elements:
intersects |
a vector of intersect items. |
FE |
fold enrichment of the intersection. |
p.value |
one-tail probability of observing equal to or larger than the number of intersect items. |
Minghui Wang <minghui.wang@mssm.edu>, Bin Zhang <bin.zhang@mssm.edu>
Minghui Wang, Yongzhong Zhao, and Bin Zhang (2015). Efficient Test and Visualization of Multi-Set Intersections. Scientific Reports 5: 16923.
supertest
, cpsets
, dpsets
## Not run:
#set up fake data
x=list(S1=letters[1:20], S2=letters[10:26], S3=sample(letters,10), S4=sample(letters,10))
MSET(x, 26, FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.