Now view the "GO_Biological_Process_2023" results from the enriched2
object.
head(enriched2[["GO_Biological_Process_2023"]])
Term
Rank
P.value
Adjusted.P.value
Old.P.value
Old.Adjusted.P.value
Odds.Ratio
Combined.Score
Genes
Mitochondrial Transcription (GO:0006390)
1
0.0003711
0.240515
0
0
27.116000
214.19193
TFAM;POLRMT;TFB1M
Alpha-Amino Acid Metabolic Process (GO:1901605)
2
0.0004145
0.240515
0
0
13.057671
101.69976
SRR;ALDH6A1;KMO;GNMT
Protein Transmembrane Import Into Intracellular Organelle (GO:0044743)
3
0.0006097
0.240515
0
0
11.656913
86.29136
DNAJC19;TIMM44;TRIM37;PEX1
Monocarboxylic Acid Biosynthetic Process (GO:0072330)
4
0.0012176
0.240515
0
0
6.816532
45.74506
ALDH1A3;SRR;SCP2;OXSM;MCAT
Neutrophil Degranulation (GO:0043312)
5
0.0014663
0.240515
0
0
54.031872
352.55862
VAMP8;STXBP2
Medium-Chain Fatty Acid Biosynthetic Process (GO:0051792)
6
0.0014663
0.240515
0
0
54.031872
352.55862
ABHD3;OXSM
By default, the results table from analysis with a background does not
have the ‘Overlap’ column. We can calculate the annotated genes in each
term from GMT files and replace the ‘Rank’ column with ‘Overlap’ by
setting include_overlap = TRUE.
Export Enrichr results as text or Excel files. By default
(i.e. outFile = "txt"), the results from all the selected databases
are saved into individual text files. When using outFile = "excel",
the results are saved into worksheets in a single Excel 2007 (XLSX)
file. (Print function contributed by I-Hsuan Lin and Kai Hu)
# To text files
printEnrich(enriched)
# To Excel
printEnrich(enriched, outFile = "excel")
Using enrichR behind a proxy
If your computer is behind an HTTP or HTTPS proxy, you can set the RCurl
Proxy options explicitly using RCurlOptions and enrichR will use the
provided settings to connect to the Enrichr database via
httr::use_proxy().
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–97.
https://doi.org/10.1093/nar/gkw377.
An R interface to the Enrichr database
Wajid Jawaid 2025-02-02
Installation
enrichR can be installed from Github or from CRAN.
Github
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 https://maayanlab.cloud/Enrichr/.
By default human genes are selected otherwise select your organism of choice. (This functionality was contributed by Alexander Blume)
Initialising connection to Enrichr website
Select gene-set libraries
List all available databases from Enrichr.
Select the 2023 GO databases.
Perform analysis
Without background
Query with
enrichr()using example genes available from the package.Now view the
"GO_Biological_Process_2023"results from theenrichedobject.With background
You can now add background genes when using
enrichr().Now view the
"GO_Biological_Process_2023"results from theenriched2object.By default, the results table from analysis with a background does not have the ‘Overlap’ column. We can calculate the annotated genes in each term from GMT files and replace the ‘Rank’ column with ‘Overlap’ by setting
include_overlap = TRUE.Now view the
"GO_Biological_Process_2023"results from theenriched3object.Visualise results
Plot the
"GO_Biological_Process_2023"results. (Plotting function contributed by I-Hsuan Lin)Export results
Export Enrichr results as text or Excel files. By default (i.e.
outFile = "txt"), the results from all the selected databases are saved into individual text files. When usingoutFile = "excel", the results are saved into worksheets in a single Excel 2007 (XLSX) file. (Print function contributed by I-Hsuan Lin and Kai Hu)Using
enrichRbehind a proxyIf your computer is behind an HTTP or HTTPS proxy, you can set the RCurl Proxy options explicitly using
RCurlOptionsand enrichR will use the provided settings to connect to the Enrichr database viahttr::use_proxy().For example:
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–97. https://doi.org/10.1093/nar/gkw377.