runGOEnrich | R Documentation |
This function forms genesets basing on the differential expression result, and calls gene ontology (GO) analysis method provided by gprofiler2.
runGOEnrich(
result,
group = NULL,
useBg = TRUE,
orderBy = NULL,
logFCThresh = 1,
padjThresh = 0.05,
splitReg = FALSE,
...
)
result |
Data frame of unfiltered output from |
group |
Selection of one group available from |
useBg |
Logical, whether to set all genes involved in DE analysis
(before threshold filtering) as a domain background of GO analysis. Default
|
orderBy |
Name of DE statistics metric to order the gene list for each
group. Choose from |
logFCThresh |
The absolute valued log2FC threshold above which the
genes will be used. Default |
padjThresh |
The adjusted p-value threshold less than which the genes
will be used. Default |
splitReg |
Whether to have queries of both up-regulated and
down-regulated genes for each group. Default |
... |
Additional arguments passed to
Arguments |
GO term enrichment test often goes with two modes: two-list mode and ranked mode.
Two-list mode comes with a query gene set and a background gene set.
A query gene set contains the filtered DEGs in this analysis. A background
can be all the genes involved in the DEG test (default, useBg = TRUE
),
or use all annotated genes in the gprofiler2 database (useBg = FALSE
).
Ranked mode comes with only one query gene set, which is sorted. It should
contain the whole domain background genes while significant genes are
supposed to come first. Set orderBy
to one of the DE statistics metric
to enable this mode. useBg
will be ignored in this mode.
A list object where each element is a result list for a group. Each result list contains two elements:
result |
data.frame of main GO analysis result. |
meta |
Meta information for the query. |
See gprofiler2::gost()
. for detailed explanation.
Kolberg, L. et al, 2020 and Raudvere, U. et al, 2019
if (requireNamespace("gprofiler2", quietly = TRUE)) {
go <- runGOEnrich(deg.pw)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.