forked from 10XGenomics/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CellSelector.Rd
44 lines (39 loc) · 1.43 KB
/
CellSelector.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{CellSelector}
\alias{CellSelector}
\alias{FeatureLocator}
\title{Cell selector}
\usage{
CellSelector(plot, object = NULL, ident = "SelectedCells", ...)
FeatureLocator(plot, ...)
}
\arguments{
\item{plot}{A ggplot2 plot}
\item{object}{An optional Seurat object; if passes, will return an object with
the identities of selected cells set to \code{ident}}
\item{ident}{An optional new identity class to assign the selected cells}
\item{...}{Extra parameters, such as dark.theme, recolor, or smooth for using a dark theme,
recoloring based on selected cells, or using a smooth scatterplot, respectively}
}
\value{
If \code{object} is \code{NULL}, the names of the points selected; otherwise,
a Seurat object with the selected cells identity classes set to \code{ident}
}
\description{
Select points on a scatterplot and get information about them
}
\examples{
\dontrun{
plot <- DimPlot(object = pbmc_small)
# Follow instructions in the terminal to select points
cells.located <- CellSelector(plot = plot)
cells.located
# Automatically set the identity class of selected cells and return a new Seurat object
pbmc_small <- CellSelector(plot = plot, object = pbmc_small, ident = 'SelectedCells')
}
}
\seealso{
\code{\link[graphics]{locator}} \code{\link[ggplot2]{ggplot_build}}
\code{\link[SDMTools]{pnt.in.poly}} \code{\link{DimPlot}} \code{\link{FeaturePlot}}
}