Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenturner/fcdca4119a1d685c01e3eb0a94bcb827 to your computer and use it in GitHub Desktop.
Save stephenturner/fcdca4119a1d685c01e3eb0a94bcb827 to your computer and use it in GitHub Desktop.
## devtools::install_github("stephenturner/msigdf")
library(msigdf)
library(dplyr)
library(clusterProfiler)
c2 <- msigdf.human %>%
filter(collection == "c2") %>% select(geneset, entrez) %>% as.data.frame
data(geneList)
de <- names(geneList)[1:100]
x <- enricher(de, TERM2GENE = c2)
y <- GSEA(geneList, TERM2GENE = c2)
head(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment