Creates a Seurat object containing only a subset of the cells in the original object. Takes either a list of cells to use as a subset, or a parameter (for example, a gene), to subset on.
SubsetCells(object, cells.use = NULL, subset.name = NULL,
accept.low = -Inf, accept.high = Inf, do.center = TRUE,
do.scale = TRUE, ...)
Seurat object
A vector of cell names to use as a subset. If NULL (default), then this list will be computed based on the next three arguments. Otherwise, will return an object consissting only of these cells
Parameter to subset on. Eg, the name of a gene, PC1, a column name in object@data.info, etc. Any argument that can be retreived using FetchData
Low cutoff for the parameter (default is -Inf)
High cutoff for the parameter (default is Inf)
Recenter the new object@scale.data
Rescale the new object@scale.data
Additional arguments to be passed to FetchData (for example, use.imputed=TRUE)
Returns a Seurat object containing only the relevant subset of cells