average_distance: Calculates the average distance between groups in seurat...

Description Usage Arguments Value

View source: R/distance.R

Description

Calculates the distance between the closet pair of points between two clusters.

Usage

1
2
average_distance(seurat_object, group, reduction = "pca", dims = 1:30,
  distance = "euclidian", output = "seurat")

Arguments

seurat_object

A seurat object

group

Seurat Categories or groups for which the distances between are calculated. Cell wise data.

reduction

Dimensionality reduction data to use

dims

Which dimensions to use

distance

Point to point distance to use. Options are "euclidean", "maximum", "manhattan", "canberra", "binary", "minkowski"

output

Output type. Default is "seurat". Options are "seurat" (Seurat S4 object), "list" (List of tables by split_by), "seurat_list" (List of Seurat objects). Seurat objects returned have the distance data stored internally.

Value

Distances between groups


sbrn3/disscat documentation built on Dec. 12, 2019, 7:54 a.m.