Find Subobjects Of A Certain Class

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

Arguments

object

An S4 object

classes.keep

A vector of classes to keep

Value

A vector of object names that are of class classes.keep

Examples

.FilterObjects(pbmc_small)
#> [1] "RNA"  "pca"  "tsne"
.FilterObjects(pbmc_small, "Graph")
#> [1] "RNA_snn"