forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTOHeatmap.Rd
49 lines (42 loc) · 1.59 KB
/
HTOHeatmap.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{HTOHeatmap}
\alias{HTOHeatmap}
\title{Hashtag oligo heatmap}
\usage{
HTOHeatmap(
object,
assay = "HTO",
classification = paste0(assay, "_classification"),
global.classification = paste0(assay, "_classification.global"),
ncells = 5000,
singlet.names = NULL,
raster = TRUE
)
}
\arguments{
\item{object}{Seurat object. Assumes that the hash tag oligo (HTO) data has been added and normalized, and demultiplexing has been run with HTODemux().}
\item{assay}{Hashtag assay name.}
\item{classification}{The naming for metadata column with classification result from HTODemux().}
\item{global.classification}{The slot for metadata column specifying a cell as singlet/doublet/negative.}
\item{ncells}{Number of cells to plot. Default is to choose 5000 cells by random subsampling, to avoid having to draw exceptionally large heatmaps.}
\item{singlet.names}{Namings for the singlets. Default is to use the same names as HTOs.}
\item{raster}{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).}
}
\value{
Returns a ggplot2 plot object.
}
\description{
Draws a heatmap of hashtag oligo signals across singlets/doublets/negative cells. Allows for the visualization of HTO demultiplexing results.
}
\examples{
\dontrun{
object <- HTODemux(object)
HTOHeatmap(object)
}
}
\seealso{
\code{\link{HTODemux}}
}