Learn R Programming

⚠️There's a newer version (3.4) of this package.Take me there.

An R interface to the Enrichr database

Wajid Jawaid 2017-04-02

Installation

enrichR can be installed from Github or soon from CRAN.

Github

library(devtools)
install_github("wjawaid/enrichR")

CRAN

The package can be downloaded from CRAN using:

install.packages("enrichR")

Usage example

enrichR provides an interface to the Enrichr database (Kuleshov et al. 2016) hosted at http://amp.pharm.mssm.edu/Enrichr.

First find the list of all available databases from Enrichr.

library(enrichR)
dbs <- listEnrichrDbs()
head(dbs)
libraryNamenumTermsgeneCoveragegenesPerTermlink
1Genome_Browser_PWMs61513362275http://hgdownload.cse.ucsc.edu/goldenPath/hg18/database/
2TRANSFAC_and_JASPAR_PWMs326278841284http://jaspar.genereg.net/html/DOWNLOAD/
3Transcription_Factor_PPIs290600277
5Drug_Perturbations_from_GEO_201470147107509http://www.ncbi.nlm.nih.gov/geo/
6ENCODE_TF_ChIP-seq_2014498214933713http://genome.ucsc.edu/ENCODE/downloads.html

View and select your favourite databases. Then query enrichr, in this case I have used genes associated with embryonic haematopoiesis.

dbs <- c("GO_Molecular_Function_2015", "GO_Cellular_Component_2015", "GO_Biological_Process_2015")
enriched <- enrichr(c("Runx1", "Gfi1", "Gfi1b", "Spi1", "Gata1", "Kdr"), dbs)
#> Uploading data to Enrichr... Done.
#>   Querying GO_Molecular_Function_2015... Done.
#>   Querying GO_Cellular_Component_2015... Done.
#>   Querying GO_Biological_Process_2015... Done.
#> Parsing results... Done.

Now view the results table.

enriched[["GO_Biological_Process_2015"]]
TermOverlapP.valueAdjusted.P.valueOld.P.valueOld.Adjusted.P.valueZ.scoreCombined.ScoreGenes
embryonic hemopoiesis (GO_0035162)3/240.00e+000.00000831.00e-070.0000355-2.86979833.56095KDR;GATA1;RUNX1
regulation of erythrocyte differentiation (GO_0045646)3/361.00e-070.00001124.00e-070.0000395-2.50315528.52580GFI1B;SPI1;GATA1
regulation of myeloid cell differentiation (GO_0045637)4/1561.00e-070.00000832.00e-070.0000355-2.32546227.19519GFI1B;SPI1;GATA1;RUNX1
positive regulation of granulocyte differentiation (GO_0030854)2/103.40e-060.00015229.70e-060.0004382-2.72875423.98657GFI1B;RUNX1
regulation of granulocyte differentiation (GO_0030852)2/171.02e-050.00026812.51e-050.0006716-2.82446623.22908GFI1B;RUNX1
granulocyte differentiation (GO_0030851)2/157.90e-060.00024842.00e-050.0006314-2.77924623.06870SPI1;GATA1

References

Kuleshov, Maxim V., Matthew R. Jones, Andrew D. Rouillard, Nicolas F. Fernandez, Qiaonan Duan, Zichen Wang, Simon Koplev, et al. 2016. “Enrichr: A Comprehensive Gene Set Enrichment Analysis Web Server 2016 Update.” Nucleic Acids Res 44 (Web Server issue): W90–W97. doi:10.1093/nar/gkw377.

Copy Link

Version

Install

install.packages('enrichR')

Monthly Downloads

10,735

Version

1.0

License

GPL (>= 2)

Maintainer

Wajid Jawaid

Last Published

April 2nd, 2017

Functions in enrichR (1.0)

enrichr

Gene enrichment using Enrichr
listEnrichrDbs

Look up available databases on Enrichr
printEnrich

Print Enrichr output to text file.