get_obsm: Extract reductions

View source: R/get_obsm.R

get_obsmR Documentation

Extract reductions

Description

Extract dimensionality keys objects from any single-cell object class.

Usage

get_obsm(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 matrix of cell embeddings coordinates.

Examples

obj <- example_obj("cds")
obsm <- get_obsm(obj)

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