|
a |
|
b/man/getUpDownCluster.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/getUpDownCluster.R |
|
|
3 |
\name{getUpDownCluster} |
|
|
4 |
\alias{getUpDownCluster} |
|
|
5 |
\title{Up-Down clustering} |
|
|
6 |
\usage{ |
|
|
7 |
getUpDownCluster(X, diff_threshold = 0) |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{X}{a dataframe or list of dataframe with the same number of rows.} |
|
|
11 |
|
|
|
12 |
\item{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).} |
|
|
13 |
} |
|
|
14 |
\description{ |
|
|
15 |
Performs a clustering based on the signs of variation between 2 timepoints. |
|
|
16 |
Optionally, if the difference between 2 timepoints is lower than a given threshold, |
|
|
17 |
the returned difference will be 0. |
|
|
18 |
} |
|
|
19 |
\examples{ |
|
|
20 |
demo <- suppressWarnings(get_demo_cluster()) |
|
|
21 |
X <- list(X = demo$X, Y = demo$Y, Z = demo$Z) |
|
|
22 |
res <- getUpDownCluster(X) |
|
|
23 |
class(res) |
|
|
24 |
getCluster(res) |
|
|
25 |
|
|
|
26 |
X <- demo$X |
|
|
27 |
res <- getUpDownCluster(X) |
|
|
28 |
res <- getUpDownCluster(X, diff_threshold = 15) |
|
|
29 |
res_cluster <- getCluster(res) |
|
|
30 |
} |