View source: R/methodsEmapInternal.R
createBasicEmap | R Documentation |
The function creates a basic enrichment map using functional enrichment results.
createBasicEmap(
gostResults,
backgroundGenes,
showCategory,
groupCategory,
categoryLabel,
categoryNode,
significantMethod,
line,
...
)
gostResults |
a |
backgroundGenes |
a |
showCategory |
a positive |
groupCategory |
a |
categoryLabel |
a positive |
categoryNode |
a positive |
significantMethod |
a |
line |
a non-negative |
... |
additional arguments that will be pass to the
|
a ggplot
object representing the enrichment map.
Astrid DeschĂȘnes
## Load the result of an enrichment analysis done with gprofiler2
data(parentalNapaVsDMSOEnrichment)
## Only retain the results section
gostResults <- as.data.frame(parentalNapaVsDMSOEnrichment$result)
## Limit the results to Wikipathways
## and remove the root term
gostResults <- gostResults[which(gostResults$source == "WP"),]
gostResults <- gostResults[which(gostResults$term_id != "WIKIPATHWAYS"),]
## Extract meta data information
meta <- parentalNapaVsDMSOEnrichment$meta
## Get all background genes
backgroundGenes <- meta$query_metadata$queries[["parental_napa_vs_DMSO"]]
## Get significant method
significantMethod <- meta$query_metadata$significance_threshold_method
## Create basic enrichment map using Wikipathways terms
enrichViewNet:::createBasicEmap(gostResults=gostResults,
backgroundGenes=backgroundGenes, showCategory=30L,
groupCategory=FALSE, categoryLabel=1, categoryNode=1,
significantMethod=significantMethod, line=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.