Renders probability and relative expression heatmaps to visualize the relationship between features and cell populations (or cell populations and samples).
celdaProbabilityMap(
sce,
useAssay = "counts",
altExpName = "featureSubset",
level = c("cellPopulation", "sample"),
ncols = 100,
col2 = circlize::colorRamp2(c(-2, 0, 2), c("#1E90FF", "#FFFFFF", "#CD2626")),
title1 = "Absolute probability",
title2 = "Relative expression",
showColumnNames = TRUE,
showRowNames = TRUE,
rowNamesgp = grid::gpar(fontsize = 8),
colNamesgp = grid::gpar(fontsize = 12),
clusterRows = FALSE,
clusterColumns = FALSE,
showHeatmapLegend = TRUE,
heatmapLegendParam = list(title = NULL, legend_height = grid::unit(6, "cm")),
...
)
# S4 method for SingleCellExperiment
celdaProbabilityMap(
sce,
useAssay = "counts",
altExpName = "featureSubset",
level = c("cellPopulation", "sample"),
ncols = 100,
col2 = circlize::colorRamp2(c(-2, 0, 2), c("#1E90FF", "#FFFFFF", "#CD2626")),
title1 = "Absolute probability",
title2 = "Relative expression",
showColumnNames = TRUE,
showRowNames = TRUE,
rowNamesgp = grid::gpar(fontsize = 8),
colNamesgp = grid::gpar(fontsize = 12),
clusterRows = FALSE,
clusterColumns = FALSE,
showHeatmapLegend = TRUE,
heatmapLegendParam = list(title = NULL, legend_height = grid::unit(6, "cm")),
...
)
A SingleCellExperiment object returned by celda_C, celda_G, or celda_CG.
A string specifying which assay slot to use. Default "counts".
The name for the altExp slot to use. Default "featureSubset".
Character. One of "cellPopulation" or "Sample".
"cellPopulation" will display the absolute probabilities and relative
normalized expression of each module in each cell population.
level = "cellPopulation"
only works for celda_CG sce
objects. "sample" will display the absolute probabilities and relative
normalized abundance of each cell population in each sample. Default
"cellPopulation".
The number of colors (>1) to be in the color palette of the absolute probability heatmap.
Passed to col
argument of Heatmap.
Set color boundaries and colors for the relative expression heatmap.
Passed to column_title
argument of
Heatmap. Figure title for the absolute probability
heatmap.
Passed to column_title
argument of
Heatmap. Figure title for the relative expression
heatmap.
Passed to show_column_names
argument of
Heatmap. Show column names.
Passed to show_row_names
argument of
Heatmap. Show row names.
Passed to row_names_gp
argument of
Heatmap. Set row name font.
Passed to column_names_gp
argument of
Heatmap. Set column name font.
Passed to cluster_rows
argument of
Heatmap. Cluster rows.
Passed to cluster_columns
argument of
Heatmap. Cluster columns.
Passed to show_heatmap_legend
argument of
Heatmap. Show heatmap legend.
Passed to heatmap_legend_param
argument of
Heatmap. Heatmap legend parameters.
Additional parameters passed to Heatmap.
data(sceCeldaCG)
celdaProbabilityMap(sceCeldaCG)