R/methodsEmap.R
createEnrichMapMultiBasic.Rd
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.
createEnrichMapMultiBasic(
gostObjectList,
queryList,
source = c("TERM_ID", "GO:MF", "GO:CC", "GO:BP", "KEGG", "REAC", "TF", "MIRNA", "HPA",
"CORUM", "HP", "WP"),
termIDs = NULL,
removeRoot = TRUE,
showCategory = 30L,
groupCategory = FALSE,
categoryLabel = 1,
categoryNode = 1,
line = 1,
force = TRUE,
...
)
a list
of gprofiler2
objects that
contain the results from an enrichment analysis. The list must contain at
least 2 entries. The number of entries must correspond to the number of
entries for the queryList
parameter.
a list
of character
strings representing the
names of the queries that are going to be used to generate the graph.
The query names must exist in the associated gostObjectList
objects
and follow the same order. The number of entries must correspond to the
number of entries for the gostObjectList
parameter.
a character
string representing the selected source
that will be used to generate the network. To hand-pick the terms to be
used, "TERM_ID" should be used and the list of selected term IDs should
be passed through the termIDs
parameter. The possible sources are
"GO:BP" for Gene Ontology Biological Process, "GO:CC" for Gene Ontology
Cellular Component, "GO:MF" for Gene Ontology Molecular Function,
"KEGG" for Kegg, "REAC" for Reactome, "TF" for TRANSFAC, "MIRNA" for
miRTarBase, "CORUM" for CORUM database, "HP" for Human phenotype ontology
and "WP" for WikiPathways. Default: "TERM_ID".
a vector
of character
strings that contains the
term IDS retained for the creation of the network. Default: NULL
.
a logical
that specified if the root terms of
the selected source should be removed (when present). Default: TRUE
.
a positive integer
or a vector
of
characters
representing terms. If a integer
, the first
n
terms will be displayed. If vector
of terms,
the selected terms will be displayed. Default: 30L
.
a logical
indicating if the categories should
be grouped. Default: FALSE
.
a positive numeric
representing the amount by
which plotting category nodes label size should be scaled relative
to the default (1). Default: 1
.
a positive numeric
representing the amount by
which plotting category nodes should be scaled relative to the default (1).
Default: 1
.
a non-negative numeric
representing the scale of line
width. Default: 1
.
a logical
indicating if the repulsion between
overlapping text labels should be forced. Default: TRUE
.
additional arguments that will be pass to the
emapplot
function.
a ggplot
object which is the enrichment map for enrichment
results.
## Loading dataset containing results from 2 enrichment analyses done with
## gprofiler2
data(parentalNapaVsDMSOEnrichment)
data(rosaNapaVsDMSOEnrichment)
## Extract query information (only one in each dataset)
query1 <- unique(parentalNapaVsDMSOEnrichment$result$query)[1]
query2 <- unique(rosaNapaVsDMSOEnrichment$result$query)[1]
## Create graph for KEGG related results from
## 2 enrichment analyses
createEnrichMapMultiBasic(gostObjectList=list(parentalNapaVsDMSOEnrichment,
rosaNapaVsDMSOEnrichment),
queryList=list(query1, query2), source="KEGG", removeRoot=TRUE)