GetGroupGeneDistance: Centroids-Genes distances

View source: R/group.R

GetGroupGeneDistanceR Documentation

Centroids-Genes distances

Description

Distance calculation between genes and group of cells centroids.

Usage

GetGroupGeneDistance(X, group.by, reduction, dims, features)

## S3 method for class 'Seurat'
GetGroupGeneDistance(
  X,
  group.by = NULL,
  reduction = "mca",
  dims = seq(50),
  features = NULL
)

## S3 method for class 'SingleCellExperiment'
GetGroupGeneDistance(
  X,
  group.by,
  reduction = "MCA",
  dims = seq(50),
  features = NULL
)

Arguments

X

Seurat or SingleCellExperiment object, alternatively a matrix.

group.by

column name of meta.data (Seurat) or ColData (SingleCellExperiment)

reduction

Which dimensionality reduction to use, must be based on MCA.

dims

A vector of integers indicating which dimensions to use with reduction embeddings and loadings for distance calculation.

features

A character vector of features name to subset feature coordinates for distance calculation.

Value

Distance Matrix between groups (column) and genes (row)


RausellLab/CelliD documentation built on Jan. 12, 2024, 3:44 a.m.