timeclust | R Documentation |
This function performs clustering analysis of the time course data.
timeclust(
x,
algo,
k,
dist = "distance",
dist.method = "euclidean",
centers = NULL,
standardize = TRUE,
...
)
x |
a |
algo |
a character string giving a clustering method. Options
are " |
k |
a numeric value between |
dist |
a character string specifying either " |
dist.method |
a character string. It can be chosen from one of
the correlation methods in |
centers |
a numeric matrix giving intial centers for kmeams, pam or cmeans. If given, number of rows of the matrix must be equal to k. |
standardize |
logical, if TRUE, z-score transformation will performed on the data before clustering. See 'Details' below. |
... |
additional arguments passing to |
two types of clustering methods are provided: hard clustering
(kmeans
, pam
, hclust
)
and soft clustering(cmeans
). In hard clustering,
a data point can only be allocated to exactly one cluster
(for hclust
, cutree
is used to cut
a tree into clusters), while in soft clustering (also known as
fuzzy clustering), a data point can be assigned to multiple
clusters, membership values are used to indicate to what
degree a data point belongs to each cluster.
To better capture the differences of temporal patterns rather than expression levels, z-score transformation can be applied to covert the the expression values to z-scores by performing the following formula:
z = \frac{x - \mu}{\sigma}
x
is the value to be converted (e.g., expression value of a
genomic feature in one condition), \mu
is the population
mean (e.g., average expression value of a genomic feature across
different conditions), \sigma
is the standard deviation
(e.g., standard deviation of the expression values of a genomic
feature across different conditions).
If x is a TCA
object, a TCA
object will be returned.
If x is a matrix, a clust
object will be returned
Mengjun Wu
clust
, kmeans
,
pam
, hclust
, cutree
example.mat <- matrix(rnorm(1600,sd=0.3), nrow = 200,
dimnames = list(paste0('peak', 1:200), 1:8))
clust_res <- timeclust(x = example.mat, algo = 'cm', k = 4)
# return a clust object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.