Skip to contents

Returns the PCA loadings (feature-based scores). This function is used for the single cell-related classes and methods.

Usage

get_pca_loadings(x, ...)

## S7 method for class <bixverse::MetaCells>
get_pca_loadings(x, ...)

# S3 method for class 'ScCache'
get_pca_loadings(x, ...)

## S7 method for class <bixverse::SingleCells>
get_pca_loadings(x, ...)

## S7 method for class <bixverse::SingleCellsSubset>
get_pca_loadings(x, ...)

Arguments

x

An object to get PCA loadings from.

...

Other parameters.

Value

The PCA feature loadings from the object (if found).

Examples

# HVGs x PCs
sc <- demo_single_cells()
dim(get_pca_loadings(sc))
#> [1] 30 10

unlink(sc@dir_data, recursive = TRUE, force = TRUE)