Learn R Programming

clusterCons (version 1.2)

clrob: Calculate the cluster robustness from consensus clustering results

Description

This function calculates the cluster robustness from a consmatrix or mergematrix class object.

Usage

clrob(x,rm)

Arguments

x

either a consmatrix or mergematrix object.

rm

(optional) if a mergematrix object is passed then you must provide a reference clustering structure to calculate cluster robustness against. These structures are stored with every consmatrix object in the 'rm' slot. You would normally select a reference matrix for a cluster number matching that of the mergematrix (see example below).

Value

Returns a data.frame of the cluster robustness values indexed by cluster number.

References

Merged consensus clustering to assess and improve class discovery with microarray data. Simpson TI, Armstrong JD and Jarman AP. BMC Bioinformatics 2010, 11:590.

See Also

Also see cluscomp, consmatrix and mergematrix.

Examples

Run this code
# NOT RUN {
#load cmr (consensus clustering result produced by cluscomp)
data(testcmr);

#calculate the cluster robustness of the consensus matrix for pam where k=4
clrob(testcmr$e1_kmeans_k4);

#calculate the cluster robustness of the merge matrix in reference
#to the clustering structrure of pam where k=4
clrob(testcmr$merge_k4,testcmr$e1_kmeans_k4@rm);
# }

Run the code above in your browser using DataLab