runEnrichR | R Documentation |
This function takes a list of objects containing findMarkers()
,
edgeR or DESeq2 results, and perform enrichment analysis on
the genes that passed the specified threshold.
runEnrichR(
object,
dbs,
site = "Enrichr",
direction = "both",
fdr = 0.05,
top = 200,
logfc = c(0, 0),
auc = c(0.7, 0.3),
max = 1000,
min = 20,
column_by = NULL
)
object |
A named list of objects storing outputs returned by
|
dbs |
A character vector containing the name of one or more gene-set libraries used in the enrichment analysis. |
site |
A string indicating the Enrichr Website to use. Available sites
are: |
direction |
A string indicating the directionality of expression
changes of markers/DEGs to retreive. Allowable character values are
|
fdr |
A numeric scalar indicating the FDR threashold used to select
markers/DEGs. This threshold has no effect when the input source is from
|
top |
An integer scalar indicating the 'Top' threashold used to select
markers. This threshold is only applicable when the input source is from
|
logfc |
A numeric vector of length 2 specifying the logFC threasholds
used to select up-/down-regulated markers/DEGs. This threshold has
no effect when the input source is from |
auc |
A numeric vector of length 2 specifying the AUC threasholds
used to select up-/down-regulated markers. This threshold is only
applicable when the input source is from |
max |
An integer scalar indicating the maximum number of markers/DEGs to use in the analysis. Default is 1000. |
min |
An integer scalar indicating the minimum number of markers/DEGs required to perform the analysis. Default is 20. |
column_by |
A string indicating the column name containing the gene
symbols or IDs in the input |
This function uses enrichr()
from the enrichR package
to submit gene symbols for enrichment analysis to the Enrichr website
(https://maayanlab.cloud/Enrichr). By default (with
column_by = NULL
), this function extracts rownames from the input
DataFrames and submits the acquired strings for the analysis.
The gene symbols are submitted to the main site (site = "Enrichr"
)
with gene sets compiled from human and mouse genes. By change the
site
setting, it can use other modEnrichr sites
(https://maayanlab.cloud/modEnrichr/) suitable for other model
organisms.
A named list of list of DataFrames
I-Hsuan Lin
enrichR::enrichr()
, scran::findMarkers()
, edgeR::topTags()
,
DESeq2::results()
## Not run:
# Load demo dataset
data(res_deseq2)
# We construct a list of 3 DataFrames using the same DESeq2 output (`res_deseq2`)
# to mimic having a list containing results from multiple sets of comparisons.
res.de <- list(A_B = res_deseq2, A_C = res_deseq2, B_C = res_deseq2)
# Select gene-set libraries
dbs <- c("GO_Molecular_Function_2018", "GO_Biological_Process_2018")
# Run enrichR using the D. melanogaster specific modEnrichr site, and
# specify the gene symbols are stored in the 'external_gene_name' column
res.ora <- runEnrichR(res.de,
dbs = dbs, site = "FlyEnrichr",
column_by = "external_gene_name"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.