Returns a list of cells that match a particular set of criteria such as identity class, high/low values for particular PCs, ect..
OldWhichCells(object, ...)# S3 method for Assay
OldWhichCells(
object,
cells,
subset.name = NULL,
low.threshold = -Inf,
high.threshold = Inf,
accept.value = NULL,
...
)
# S3 method for Seurat
OldWhichCells(
object,
cells = NULL,
subset.name = NULL,
low.threshold = -Inf,
high.threshold = Inf,
accept.value = NULL,
ident.keep = NULL,
ident.remove = NULL,
max.cells.per.ident = Inf,
random.seed = 1,
assay = NULL,
...
)
An object
Arguments passed to other methods and FetchData
Subset of cell names
Parameter to subset on. Eg, the name of a gene, PC_1, a column name in object@meta.data, 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)
Returns all cells with the subset name equal to this value
Create a cell subset based on the provided identity classes
Subtract out cells from these identity classes (used for filtration)
Can be used to downsample the data to a certain max per cell ident. Default is INF.
Random seed for downsampling
Which assay to filter on
A vector of cell names
# NOT RUN {
OldWhichCells(object = pbmc_small, ident.keep = 2)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab