createEnrichMapMultiComplex | R Documentation |
User selected enrichment terms are used to create an enrichment map. The selection of the term can by specifying by the source of the terms (GO:MF, REAC, TF, etc.) or by listing the selected term IDs. The map is only generated when there is at least on significant term to graph.
createEnrichMapMultiComplex(
gostObjectList,
queryInfo,
showCategory = 30L,
groupCategory = FALSE,
categoryLabel = 1,
categoryNode = 1,
line = 1,
...
)
gostObjectList |
a |
queryInfo |
a
|
showCategory |
a positive |
groupCategory |
a |
categoryLabel |
a positive |
categoryNode |
a positive |
line |
a non-negative |
... |
additional arguments that will be pass to the
|
a ggplot
object which is the enrichment map for enrichment
results.
Astrid DeschĂȘnes
## Loading dataset containing results from 2 enrichment analyses done with
## gprofiler2
data(parentalNapaVsDMSOEnrichment)
data(rosaNapaVsDMSOEnrichment)
## TODO
gostObjectList=list(parentalNapaVsDMSOEnrichment,
parentalNapaVsDMSOEnrichment, rosaNapaVsDMSOEnrichment,
rosaNapaVsDMSOEnrichment)
## Create data frame containing required information enabling the
## selection of the retained enriched terms for each enrichment analysis.
## One line per enrichment analyses present in the gostObjectList parameter
## With this data frame, the enrichment results will be split in 4 groups:
## 1) KEGG significant terms from parental napa vs DMSO (no root term)
## 2) REACTOME significant terms from parental napa vs DMSO (no root term)
## 3) KEGG significant terms from rosa napa vs DMSO (no root term)
## 4) REACTOME significant terms from rosa napa vs DMSO (no root term)
queryDataFrame <- data.frame(queryName=c("parental_napa_vs_DMSO",
"parental_napa_vs_DMSO", "rosa_napa_vs_DMSO", "rosa_napa_vs_DMSO"),
source=c("KEGG", "REAC", "KEGG", "REAC"),
removeRoot=c(TRUE, TRUE, TRUE, TRUE), termIDs=c("", "", "", ""),
groupName=c("parental - KEGG", "parental - Reactome",
"rosa - KEGG", "rosa - Reactome"), stringsAsFactors=FALSE)
## Create graph for KEGG and REACTOME significant results from
## 2 enrichment analyses
createEnrichMapMultiComplex(gostObjectList=gostObjectList,
queryInfo=queryDataFrame, line=1.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.