Get the Subobject Names

.Subobjects(object, exclude = c("misc", "tools"), collapse = TRUE, ...)

Arguments

object

An S4 object

exclude

A character vector of slot names to exclude

collapse

Collapse the list into a vector

...

Arguments passed to IsNamedList

Value

If collapse = TRUE, then a vector with the names of all subobjects; otherwise, a named list where the names are the names of the collections and the values are the names of subobjects within the collection

Examples

.Subobjects(pbmc_small)
#>  [1] "RNA"                      "RNA_snn"                 
#>  [3] "pca"                      "tsne"                    
#>  [5] "NormalizeData.RNA"        "ScaleData.RNA"           
#>  [7] "RunPCA.RNA"               "BuildSNN.RNA.pca"        
#>  [9] "FindClusters"             "RunTSNE.pca"             
#> [11] "JackStraw.RNA.pca"        "ScoreJackStraw.pca"      
#> [13] "ProjectDim.RNA.pca"       "FindVariableFeatures.RNA"