getDimensions-method: Generic method to get a dimensions matrix from obj.

getDimensionsR 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()


MD-Anderson-Bioinformatics/NGCHM-R documentation built on April 1, 2024, 12:34 p.m.