Plot ComplexHeatmap from enrichment analysis results and corresponding genelist
plot_ComplexHeatmap(
enrichment_result,
genelist,
genes = NULL,
cluster_method = "single",
n_cluster = 1,
n_top_terms = NA,
n_top_genes = NA,
genelist_overlap = NULL,
plot = FALSE
)dataframe containing enrichment analysis results.
Must include name (gene set names) and symbol (listed genes associated with gene sets)
dataframe with gene-level statistics, including at least
symbol, pvalue, effectsize, and signif columns
character, default: NULL, if genes given, these are prioritized for visualization
default: 'single', else one of hclust methods
default: 1, integer, number of hierarchical clusters to define
default: NULL, if integer, plot only top genesets (recommended for visual clarity: 70)
default: NULL, if integer, plot only top genes (recommended for visual clarity: 150)
(Optional) dataframe with gene overlap information, including
symbol and genelist_overlap, see run_genelists_overlap()
default: FALSE, if TRUE, display drawn ComplexHeatmap
A ComplexHeatmap object displaying genesets (rows) and genes (columns), potentially clustered based on their binary associations. The heatmap includes:
Row annotations: Gene set size, p-value, and average effect size.
Column annotations: Gene p-values, effect sizes, and optional overlap categories.
Customized row/column labels highlighting significant elements.
A color-mapped heatmap showing clustering results.
plot_ComplexHeatmap(
get(load(system.file("extdata", "example_enrichment.rda", package = "goatea")))[seq.int(1, 3), ],
get(load(system.file("extdata", "example_genelist.rda", package = "goatea"))),
n_cluster = 3,
n_top_genes = 10
)