Draws a heatmap of hashtag oligo signals across singlets/doublets/negative cells. Allows for the visualization of HTO demultiplexing results.
HTOHeatmap(
object,
assay = "HTO",
classification = paste0(assay, "_classification"),
global.classification = paste0(assay, "_classification.global"),
ncells = 5000,
singlet.names = NULL,
raster = TRUE
)
Returns a ggplot2 plot object.
Seurat object. Assumes that the hash tag oligo (HTO) data has been added and normalized, and demultiplexing has been run with HTODemux().
Hashtag assay name.
The naming for metadata column with classification result from HTODemux().
The slot for metadata column specifying a cell as singlet/doublet/negative.
Number of cells to plot. Default is to choose 5000 cells by random subsampling, to avoid having to draw exceptionally large heatmaps.
Namings for the singlets. Default is to use the same names as HTOs.
If true, plot with geom_raster, else use geom_tile. geom_raster may look blurry on some viewing applications such as Preview due to how the raster is interpolated. Set this to FALSE if you are encountering that issue (note that plots may take longer to produce/render).
HTODemux
if (FALSE) {
object <- HTODemux(object)
HTOHeatmap(object)
}
Run the code above in your browser using DataLab