GetGroupCoordinates: Centroids calculation for a given group

Description Usage Arguments Value

View source: R/group.R

Description

Centroids calculation for a given group

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
GetGroupCoordinates(X, group.by, reduction, dims, ...)

## S3 method for class 'matrix'
GetGroupCoordinates(X, group.by, reduction = NULL, dims,
  ...)

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

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

Arguments

X

Seurat or SingleCellExperiment object, alternatively a matrix.

group.by

column name of meta.data (Seurat) or ColData (SingleCellExperiment). For Seurat object if NULL active.ident slot will be taken.

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.

...

Other arguments passed to methods

Value

A data.table with coordinates of the group centroids for the specidied dims.


Cortalak/cellID documentation built on Aug. 3, 2020, 9:01 p.m.