Skip to contents

Computes the Euclidean distance between the means of two groups in a Seurat object.

Usage

.eucldist(seurat_object, groupby, reduction, verbose = TRUE)

Arguments

seurat_object

An object of class Seurat.

groupby

An object of class character. Points to the column in the Seurat object's meta data that contains the group labels.

reduction

An object of class character. The reduction / embedding in seurat_object that is used to compute the means. Can be "pca", "harmony", or any linear dimensionality reduction.

verbose

An object of class logical. If TRUE, prints messages. Default is TRUE.

Value

Returns an object of class data.frame containing the Euclidean distance between each pair of groups.

Note

This function is for internal use and is not exported. Computes the Euclidean distance between the means of two groups in a Seurat object.