Get the names of objects within a Seurat
object that are of a
certain class
FilterObjects(object, classes.keep = c("Assay", "StdAssay", "DimReduc"))
A Seurat
object
A vector of names of classes to get
A vector with the names of objects within the Seurat
object
that are of class classes.keep
FilterObjects(pbmc_small)
#> Warning: `FilterObjects()` was deprecated in SeuratObject 5.0.0.
#> ℹ Please use `.FilterObjects()` instead.
#> [1] "RNA" "pca" "tsne"