recodeClusterY {celda}R Documentation

Recode feature module clusters

Description

Recode feature module clusters using a mapping in the 'from' and 'to' arguments.

Usage

recodeClusterY(celdaMod, from, to)

Arguments

celdaMod

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

from

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

to

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

Value

Celda object with recoded feature module clusters, with class corresponding to that of 'celdaMod'.

Examples

data(celdaCGMod)
celdaModReorderedY <- recodeClusterY(celdaCGMod, c(1, 3), c(3, 1))

[Package celda version 1.0.1 Index]