get_varm: Extract variable loadings

View source: R/get_varm.R

get_varmR Documentation

Extract variable loadings

Description

Extract variable feature loadings from any single-cell object class.

Usage

get_varm(obj, keys = NULL, n = NULL, verbose = TRUE)

Arguments

obj

Object of class:

  • DimReduc

  • Seurat

  • AnnData

  • prcomp

  • CellDataSet

  • list

  • matrix/data.frame

keys

The keys of reductions to extract from.

n

The maximum number of elements to return from that list.

verbose

Print messages.

Value

A named list of matrices containing the feature loadings.

Examples

obj <- example_obj("seurat")
varm <- get_varm(obj)

bschilder/scKirby documentation built on April 22, 2024, 12:13 a.m.