
Get the PCA factors
get_pca_factors.RdReturns the PCA factors (sample-based scores). This function is used for the single cell-related classes and methods.
Usage
get_pca_factors(x, ...)
## S7 method for class <bixverse::MetaCells>
get_pca_factors(x, ...)
# S3 method for class 'ScCache'
get_pca_factors(x, ...)
## S7 method for class <bixverse::SingleCells>
get_pca_factors(x, ...)
## S7 method for class <bixverse::SingleCellsSubset>
get_pca_factors(x, ...)Examples
# cells x PCs
sc <- demo_single_cells()
dim(get_pca_factors(sc))
#> [1] 500 10
unlink(sc@dir_data, recursive = TRUE, force = TRUE)