Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kmeans2

K-means clustering for gene expression data


Description

This function is a wrapper function for kmeans of the e1071 package. It performs hard clustering of genes based on their expression values using the k-means algorithm.

Usage

kmeans2(eset,k,iter.max=100)

Arguments

eset

object of the class ExpressionSet.

k

number of clusters.

iter.max

maximal number of iterations.

Value

An list of clustering components (see kmeans).

Author(s)

See Also

Examples

if (interactive()){
data(yeast)
# Data pre-processing
yeastF <- filter.NA(yeast)
yeastF <- fill.NA(yeastF)
yeastF <- standardise(yeastF)

# K-means clustering and visualisation
kl <- kmeans2(yeastF,k=20)
kmeans2.plot(yeastF,kl=kl,mfrow=c(2,2))
}

Mfuzz

Soft clustering of time series gene expression data

v2.50.0
GPL-2
Authors
Matthias Futschik <matthias.futschik@sysbiolab.eu>
Initial release
2016-10-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.