recodeClusterY: Recode feature module clusters

Description Usage Arguments Value Examples

View source: R/celda_functions.R

Description

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

Usage

1
recodeClusterY(celda.mod, from, to)

Arguments

celda.mod

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

from

Numeric vector. Unique values in the range of 1:L that correspond to the original cluster labels in 'celda.mod'.

to

Numeric vector. Unique values in the range of 1:L that correspond to the new cluster labels.

Value

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

Examples

1
celda.mod.reordered.y = recodeClusterY(celda.CG.mod, c(1, 3), c(3, 1))

compbiomed/celda documentation built on May 25, 2019, 3:58 a.m.