
Get the embedding
get_embedding.RdGeneral wrapper function that can be used to pull out any embedding stored in the class. This function is used for the single cell-related classes and methods.
Usage
get_embedding(x, embd_name, ...)
## S7 method for class <bixverse::MetaCells>
get_embedding(x, embd_name, ...)
# S3 method for class 'ScCache'
get_embedding(x, embd_name, ...)
## S7 method for class <bixverse::SingleCells>
get_embedding(x, embd_name, ...)
## S7 method for class <bixverse::SingleCellsSubset>
get_embedding(x, embd_name, ...)Examples
# any stored embedding, by name
sc <- demo_single_cells()
dim(get_embedding(sc, "pca"))
#> [1] 500 10
unlink(sc@dir_data, recursive = TRUE, force = TRUE)