Created
August 7, 2020 06:05
-
-
Save tuhulab/824ceaee766d2e3155fe02bf25566937 to your computer and use it in GitHub Desktop.
How to run Enrichr from R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First install R (https://www.r-project.org/) and RStudio(https://rstudio.com/) | |
# Install enrichR | |
install.packages("enrichR") | |
# Load enrichR | |
library(enrichR) | |
# Get your gene list, e.g. type by hand | |
Inflammatory_markers <- c("IL13","MMP12","IL22","NTRK1", "CCL17", "IL36A", "ICOS", "CCL18", "ALOX15", "CCL1", "CCR5", "IL13RA2", "IL19", "CCR7","CCL20", "CCR4","CCR2","CCL11","CCL22","CCR8","CCL19","CCL26","CCL3") | |
# Or get your gene list, from a CSV | |
gene_list_csv <- read.csv("my_cool_gene_list.csv") | |
# Check which database is available and choose your database | |
listEnrichrDbs() | |
db <- c("Genome_Browser_PWMs") | |
# Run your enrichment analysis | |
enrichr(Inflammatory_markers, db) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check this website (https://cran.r-project.org/web/packages/enrichR/vignettes/enrichR.html) for more information.
Or leave comments here.