eucldist
dot-eucldist.RdComputes pairwise Euclidean distances between group centroids (mean embedding vectors) in a specified low-dimensional representation of a Seurat object.
Arguments
- seurat_object
A
Seuratobject.- groupby
A character scalar giving the name of a metadata column in
seurat_object@meta.datathat defines group labels.- reduction
A character scalar giving the name of a dimensional reduction (e.g.,
"pca","harmony") used for distance calculations. This should be a geometry-preserving representation; visualization-oriented nonlinear embeddings (e.g.,"umap","tsne") are not recommended for distance computation.- verbose
Logical; if
TRUE, prints progress messages.