AddMDS: Generates a Multidimensional Scaling (MDS) for the active...

View source: R/object_funcs.R

AddMDSR Documentation

Generates a Multidimensional Scaling (MDS) for the active assay of the given object. Checks for a distance object in the 'misc' field; calculates one based on correlation distance if not present.

Description

Generates a Multidimensional Scaling (MDS) for the active assay of the given object. Checks for a distance object in the 'misc' field; calculates one based on correlation distance if not present.

Usage

AddMDS(pisces.obj, num.dims = 2)

Arguments

pisces.obj

A Seurat object with 'scale.data' in the active assay.

num.dims

Number of dimensions to return. Default of 2.

Value

A Seurat object with a 'mds' object added to the 'misc' field of the active assay.


califano-lab/PISCES documentation built on Jan. 11, 2023, 5:34 a.m.