Skip to content

Instantly share code, notes, and snippets.

@tuhulab
Created August 7, 2020 06:05
Show Gist options
  • Save tuhulab/824ceaee766d2e3155fe02bf25566937 to your computer and use it in GitHub Desktop.
Save tuhulab/824ceaee766d2e3155fe02bf25566937 to your computer and use it in GitHub Desktop.
How to run Enrichr from R
# 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)
@tuhulab
Copy link
Author

tuhulab commented Aug 7, 2020

Check this website (https://cran.r-project.org/web/packages/enrichR/vignettes/enrichR.html) for more information.
Or leave comments here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment