SubsetByPredicate: Return a subset of the Seurat object.
Description
Creates a Seurat object containing only a subset of the cells in the
original object. Forms a dataframe by fetching the variables in vars.use, then
subsets it using base::subset with predicate as the filter.
Returns the corresponding subset of the Seurat object.
Usage
SubsetByPredicate(object, vars.use, predicate)
Arguments
object
Seurat object
vars.use
Variables to fetch for use in base::subset. Character vector.
predicate
String to be parsed into an R expression and evaluated as an input to base::subset.