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(sce, from, to, altExpName = "featureSubset")

Arguments

sce

SingleCellExperiment object returned from celda_C or celda_CG. Must contain column celda_cell_cluster in colData(altExp(sce, altExpName)).

from

Numeric vector. Unique values in the range of seq(celdaClusters(sce, altExpName = altExpName)) that correspond to the original cluster labels in sce.

to

Numeric vector. Unique values in the range of seq(celdaClusters(sce, altExpName = altExpName)) that correspond to the new cluster labels.

altExpName

The name for the altExp slot to use. Default "featureSubset".

Value

SingleCellExperiment object with recoded cell cluster labels.

Examples

1
2
data(sceCeldaCG)
sceReorderedZ <- recodeClusterZ(sceCeldaCG, c(1, 3), c(3, 1))

celda documentation built on Nov. 8, 2020, 8:24 p.m.