AddDist: Generates a distance matrix for the active assay of the given...

View source: R/object_funcs.R

AddDistR Documentation

Generates a distance matrix for the active assay of the given object.

Description

Generates a distance matrix for the active assay of the given object.

Usage

AddDist(pisces.obj, use.pcs = TRUE, dist.method = c("cor", "l1", "l2"))

Arguments

pisces.obj

A Seurat object w/ either 'scale.data' in the active assay or 'pca' object in the 'misc' field of the active assay.

use.pcs

Flag to indicate whether PCA should be used. If true, object must have 'pca' object in the 'misc' field of the active assay.

dist.method

One of 'cor', 'l1', or 'l2'. Default of 'cor'.

Value

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


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