getDimensions {NGCHM}R Documentation

Generic method to get a dimensions matrix from obj.

Description

The return value must be NULL or a numeric matrix, each column of which is a (reduced) dimension. The rows of the returned matrix must be named.

Usage

getDimensions(obj, ...)

## Default S3 method:
getDimensions(obj, ...)

## S3 method for class 'prcomp'
getDimensions(obj, ...)

## S3 method for class 'umap'
getDimensions(obj, ...)

## S3 method for class 'Seurat'
getDimensions(obj, dimName, ...)

Arguments

obj

The object from which to obtain the dimension(s).

...

Additional class-specific parameters for specifying the desired dimension.

dimName

The name of the dimension matrix to obtain.

Value

A matrix with one dimension per column and one named row per observation in obj.

See Also

chmAddReducedDim()


[Package NGCHM version 1.0.3 Index]