https://github.com/satijalab/seurat
Raw File
Tip revision: 4c7d9374f707b98cd48e428ceb276d862f6df21e authored by AustinHartman on 07 November 2022, 21:41:21 UTC
4.2.1
Tip revision: 4c7d937
CellSelector.Rd
% 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{...}{Ignored}
}
\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{
data("pbmc_small")
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{DimPlot}} \code{\link{FeaturePlot}}
}
\concept{visualization}
back to top