Learn R Programming

SeuratObject (version 5.0.2)

[.DimReduc: Get Feature Loadings

Description

Pull feature loadings from a dimensional reduction

Usage

# S3 method for DimReduc
[(x, i, j, drop = FALSE, ...)

Value

Feature loadings for features i and dimensions j

Arguments

x

A DimReduc object

i

Feature identifiers or indices

j

Dimension identifiers or indices

drop

Coerce the result to the lowest possible dimension; see drop for further details

...

Arguments passed to other methods

Details

[ does not distinguish between projected and unprojected feature loadings; to select whether projected or unprojected loadings should be pulled, please use Loadings

See Also

Loadings

Dimensional reduction object, validity, and interaction methods CreateDimReducObject(), DimReduc-class, DimReduc-validity, [[.DimReduc(), dim.DimReduc(), merge.DimReduc(), print.DimReduc(), subset.DimReduc()

Examples

Run this code
pca <- pbmc_small[["pca"]]
pca[1:10, 1:5]

Run the code above in your browser using DataLab