Make a heatmap of cell clusters.
Usage
marker_heatmap(
seu,
markers,
groups,
assay = NULL,
slot = "data",
top_n = 5,
top_n_wt = "fdr",
title = "Heatmap",
subtitle = "",
fill_scale = ggplot2::scale_fill_gradient(low = "white", high = "red"),
y_text_size = 8,
angle = 0,
...
)Arguments
- seu
A
Seuratobject.- markers
A dataframe with markers (returned from
scran_markers()) or a character vector of gene SYMBOLs.- groups
A character vector: assignment of cells to groups (clusters).
- assay, slot, angle, ...
Passed to
Seurat::DoHeatmap().- top_n, top_n_wt
Passed to
filter_markers(). Iftop_nisNULL, all markers inmarkerswill be used (SYMBOLcolumn in casemarkersis a dataframe-like object). Iftop_nis numeric,markersmust be a dataframe-like object.- title
A character scalar: heatmap title.
- subtitle
A character scalar: heatmap subtitle.
- fill_scale
A
Scaleobject fromggplot2, e.g.ggplot2::scale_fill_gradient(low = "white", high = "red")(default).- y_text_size
A numeric scalar: text size on y-axe of the heatmap.