recodeClusterZ: Recode cell cluster labels

Description Usage Arguments Value Examples

View source: R/celda_functions.R

Description

Recode cell subpopulaton clusters using a mapping in the 'from' and 'to' arguments.

Usage

1
recodeClusterZ(celdaMod, from, to)

Arguments

celdaMod

Celda object of class 'celda_C' or 'celda_CG'.

from

Numeric vector. Unique values in the range of seq(K) that correspond to the original cluster labels in 'celdaMod'.

to

Numeric vector. Unique values in the range of seq(K) that correspond to the new cluster labels.

Value

Celda object with cell subpopulation clusters, with class corresponding to that of 'celdaMod'.

Examples

1
2
data(celdaCGMod)
celdaModReorderedZ <- recodeClusterZ(celdaCGMod, c(1, 3), c(3, 1))

celda documentation built on June 9, 2020, 2 a.m.