getUpDownCluster: Up-Down clustering

View source: R/getUpDownCluster.R

getUpDownClusterR Documentation

Up-Down clustering

Description

Performs a clustering based on the signs of variation between 2 timepoints. Optionally, if the difference between 2 timepoints is lower than a given threshold, the returned difference will be 0.

Usage

getUpDownCluster(X, diff_threshold = 0)

Arguments

X

a dataframe or list of dataframe with the same number of rows.

diff_threshold

a number (optional, default 0), if the difference between 2 values is lower than the threshold, the returned sign will be 0 (no variation).

Examples

demo <- suppressWarnings(get_demo_cluster())
X <- list(X = demo$X, Y = demo$Y, Z = demo$Z)
res <- getUpDownCluster(X)
class(res)
getCluster(res)

X <- demo$X
res <- getUpDownCluster(X)
res <- getUpDownCluster(X, diff_threshold = 15)
res_cluster <- getCluster(res)

abodein/timeOmics_BioC documentation built on April 10, 2024, 10:01 a.m.