View source: R/heatmapEnrichment.R
heatmapEnrichment | R Documentation |
This function allows to the user to examine the heatmap with the mean enrichment values by group. The heatmap will have the gene sets as rows and columns will be the grouping variable.
heatmapEnrichment(
input.data,
assay = NULL,
group.by = NULL,
gene.set.use = "all",
cluster.rows = FALSE,
cluster.columns = FALSE,
facet.by = NULL,
scale = FALSE,
summary.stat = "mean",
palette = "inferno"
)
input.data |
Output of |
assay |
Name of the assay holding enrichment scores when 'input.data' is a single‑cell object. Ignored otherwise. |
group.by |
Metadata column plotted on the *x*‑axis. Defaults to the Seurat/SCE 'ident' slot when 'NULL'. |
gene.set.use |
Vector of gene‑set names to plot, or |
cluster.rows , cluster.columns |
Logical; if |
facet.by |
Optional metadata column used to facet the plot. |
scale |
If |
summary.stat |
Optional method used to summarize expression within each
group. One of: |
palette |
Character. Any palette from |
A ggplot2
object.
gs <- list(Bcells = c("MS4A1", "CD79B", "CD79A", "IGH1", "IGH2"),
Tcells = c("CD3E", "CD3D", "CD3G", "CD7","CD8A"))
pbmc <- SeuratObject::pbmc_small |>
runEscape(gene.sets = gs, min.size = NULL)
heatmapEnrichment(pbmc, assay = "escape", palette = "viridis")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.