-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenrichR.R
More file actions
33 lines (20 loc) · 841 Bytes
/
enrichR.R
File metadata and controls
33 lines (20 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
rm(list = ls())
getwd()
setwd("/Users/fabiano/Desktop/projetos_em_andamento/LL37_cancer/data_analysis/CEMiToll_pvalue005/breast/Tables_breast")
breast_modules <- read.delim("module.tsv", sep = "\t")
breast_M7 <- breast_modules[which(breast_modules$modules == "M7"), 1]
install.packages("enrichR")
library(enrichR)
setEnrichrSite("Enrichr")
websiteLive <- TRUE
dbs <- listEnrichrDbs()
dbs <- c("Reactome_2016", "KEGG_2021_Human")
if (websiteLive) {
enriched <- enrichr(breast_M7, dbs)
}
#Reactome database
if (websiteLive) enriched[["Reactome_2016"]]
if (websiteLive) plotEnrich(enriched[[1]], showTerms = 20, numChar = 40, y = "Count", orderBy = "P.value")
#KEGG database
if (websiteLive) enriched[["KEGG_2021_Human"]]
if (websiteLive) plotEnrich(enriched[[2]], showTerms = 20, numChar = 40, y = "Count", orderBy = "P.value")