Provides an R Interface to 'Enrichr'

Provides an R interface to all 'Enrichr' databases. 'Enrichr' is a web-based tool for analysing gene sets and returns any enrichment of common annotated biological features. Quoting from their website 'Enrichment analysis is a computational method for inferring knowledge about an input gene set by comparing it to annotated gene sets representing prior biological knowledge.' See <> for further details.

Wajid Jawaid 2017-04-02 CRAN_Status_Badge


enrichR can be installed from Github or soon from CRAN.




The package can be downloaded from CRAN using:


Usage example

enrichR provides an interface to the Enrichr database (Kuleshov et al. 2016) hosted at

First find the list of all available databases from Enrichr.

dbs <- listEnrichrDbs()
libraryName numTerms geneCoverage genesPerTerm link
1 Genome_Browser_PWMs 615 13362 275
2 TRANSFAC_and_JASPAR_PWMs 326 27884 1284
3 Transcription_Factor_PPIs 290 6002 77
5 Drug_Perturbations_from_GEO_2014 701 47107 509
6 ENCODE_TF_ChIP-seq_2014 498 21493 3713

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)
#>   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.

Term Overlap P.value Adjusted.P.value Old.P.value Old.Adjusted.P.value Z.score Combined.Score Genes
embryonic hemopoiesis (GO_0035162) 3/24 0.00e+00 0.0000083 1.00e-07 0.0000355 -2.869798 33.56095 KDR;GATA1;RUNX1
regulation of erythrocyte differentiation (GO_0045646) 3/36 1.00e-07 0.0000112 4.00e-07 0.0000395 -2.503155 28.52580 GFI1B;SPI1;GATA1
regulation of myeloid cell differentiation (GO_0045637) 4/156 1.00e-07 0.0000083 2.00e-07 0.0000355 -2.325462 27.19519 GFI1B;SPI1;GATA1;RUNX1
positive regulation of granulocyte differentiation (GO_0030854) 2/10 3.40e-06 0.0001522 9.70e-06 0.0004382 -2.728754 23.98657 GFI1B;RUNX1
regulation of granulocyte differentiation (GO_0030852) 2/17 1.02e-05 0.0002681 2.51e-05 0.0006716 -2.824466 23.22908 GFI1B;RUNX1
granulocyte differentiation (GO_0030851) 2/15 7.90e-06 0.0002484 2.00e-05 0.0006314 -2.779246 23.06870 SPI1;GATA1


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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


3.0 by Wajid Jawaid, 9 months ago

Browse source code at

Authors: Wajid Jawaid [aut, cre]

Documentation:   PDF Manual  

GPL (>= 2) license

Imports httr, rjson, ggplot2

Suggests knitr, rmarkdown

Suggested by Seurat.

See at CRAN