Get the names of objects within a Seurat object that are of a certain class

FilterObjects(object, classes.keep = c("Assay", "StdAssay", "DimReduc"))

Arguments

object

A Seurat object

classes.keep

A vector of names of classes to get

Value

A vector with the names of objects within the Seurat object that are of class classes.keep

Lifecycle

[Deprecated]

FilterObjects was deprecated in version 5.0.0; use .FilterObjects instead

Examples

FilterObjects(pbmc_small)
#> Warning: `FilterObjects()` was deprecated in SeuratObject 5.0.0.
#>  Please use `.FilterObjects()` instead.
#> [1] "RNA"  "pca"  "tsne"