multiEnrichMap | R Documentation |
Prepare MultiEnrichMap data from enrichList
multiEnrichMap(
enrichList,
geneHitList = NULL,
geneHitIM = NULL,
colorV = NULL,
nrow = NULL,
ncol = NULL,
byrow = FALSE,
enrichLabels = NULL,
subsetSets = NULL,
overlapThreshold = 0.1,
cutoffRowMinP = 0.05,
enrichBaseline = -log10(cutoffRowMinP),
enrichLens = 0,
enrichNumLimit = 4,
nEM = 500,
min_count = 3,
topEnrichN = 20,
topEnrichSources = c("gs_cat", "gs_subat"),
topEnrichCurateFrom = NULL,
topEnrichCurateTo = NULL,
topEnrichSourceSubset = NULL,
topEnrichDescriptionGrep = NULL,
topEnrichNameGrep = NULL,
keyColname = c("ID", "Name", "pathway", "itemsetID", "Description"),
nameColname = c("Name", "pathway", "Description", "itemsetID", "ID"),
geneColname = c("geneID", "geneNames", "Genes"),
countColname = c("gene_count", "count", "geneHits"),
pvalueColname = c("padjust", "p.adjust", "adjp", "padj", "qvalue", "qval", "q.value",
"pvalue", "p.value", "pval", "FDR"),
descriptionColname = c("Description", "Name", "Pathway", "ID"),
descriptionCurateFrom = c("^Genes annotated by the GO term "),
descriptionCurateTo = c(""),
directionColname = c("activation.z.{0,1}score", "z.{0,1}score"),
direction_cutoff = 0,
pathGenes = c("setSize", "pathGenes", "Count"),
geneHits = c("Count", "geneHits", "gene_count"),
geneDelim = "[,/ ]+",
GmtTname = NULL,
msigdbGmtT = NULL,
verbose = FALSE,
...
)
enrichList |
|
geneHitList |
|
geneHitIM |
|
colorV |
|
nrow , ncol , byrow |
optional arguments used to customize
|
enrichLabels |
|
subsetSets |
|
overlapThreshold |
|
cutoffRowMinP |
|
enrichBaseline |
|
enrichLens |
|
enrichNumLimit |
|
nEM |
|
topEnrichN |
|
topEnrichSources , topEnrichCurateFrom , topEnrichCurateTo , topEnrichSourceSubset , topEnrichDescriptionGrep , topEnrichNameGrep |
arguments passed to |
keyColname , nameColname , geneColname , pvalueColname , descriptionColname |
|
descriptionCurateFrom , descriptionCurateTo |
|
pathGenes , geneHits |
|
geneDelim |
|
verbose |
|
... |
additional arguments are passed to various internal functions. |
This function performs most of the work of comparing multiple
enrichment results.
This function takes a list of enrichResult
objects,
generates an overall pathway-gene incidence matrix, assembles
a pathway-to-Pvalue matrix, creates EnrichMap igraph
network
objects, and CnetPlot igraph
network objects. It also applies
node shapes and colors consistent with the colors used for
each enrichment result.
By default, each enrichment result table is subsetted for the
top n=20
pathways sorted by pathway source, defined by
colnames c("Source", "Category")
. For data without a source
column, the overall enrichment results are sorted to take the
top 20. Once the top 20 from each enrichment table are selected,
the overall set of pathways are used to retain these pathways
from all enrichment tables. In this way, a significant enrichment
result from one table will still be compared to a non-significant
result from another table.
The default values for topEnrichN
and related arguments
are intended when using enrichment results from MSigDB
,
which has colnames c("Source","Category")
and represents
100 or more combinations of sources and categories. The
default values will select the top 20 entries from the
canonical pathways, after curating the canonical pathway
categories to one "CP"
source value.
To disable the top pathway filtering, set topEnrichN=0
.
Colors can be defined for each enrichment result using the
argument colorV
, otherwise colors are assigned using
colorjam::rainbowJam()
.
list
object containing various result formats:
colorV: named vector of colors assigned to each enrichment,
where names match the names of each enrichment in enrichList
.
Other jam enrichment functions:
add_pathway_direction()
,
topEnrichBySource()
## See the Vignette for a full walkthrough example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.