Skip to contents

Extract cluster assignments from Consensus Clustering results for a specific number of clusters.

Usage

get.class(cc.res, k)

Arguments

cc.res

Consensus clustering results from ConsensusClusterPlus.

k

Integer. The number of clusters to extract.

Value

A data frame with the following columns: - ID: The sample identifier. - Cluster: The assigned cluster label, prefixed by 'C'.

Author

Zaoqu Liu; Email: liuzaoqu@163.com

Examples

data <- mtcars
cc_res <- RunCC(data)
clu <- get.class(cc_res, 2)
clu