View source: R/ConsensusClustering.R
| ConsensusClustering | R Documentation |
Performs consensus clustering using the ConsensusClusterPlus package. The input may be a data matrix or a symmetric distance matrix.
ConsensusClustering(
Data,
ClusterNo = NULL,
PlotIt = FALSE,
PlotConsensus = FALSE,
...
)
Data |
Data set with n observations and d features |
ClusterNo |
Integer or |
PlotIt |
Logical. If |
PlotConsensus |
FALSE, NULL, "png", "pdf", or "pngBMP". |
... |
Further arguments passed to
|
If ClusterNo is not NULL, a list with components:
Cls |
Numeric vector of cluster assignments. |
Object |
Complete object returned by
|
If ClusterNo = NULL, the complete result from
ConsensusClusterPlus::ConsensusClusterPlus() is returned directly.
If ConsensusClusterPlus is unavailable, a fallback list is returned with
all observations assigned to cluster 1 and an explanatory message in
Object.
Michael Thrun
Wilkerson, D. M. and Hayes, N. D.: ConsensusClusterPlus: a class discovery tool with confidence assessments and item tracking, Bioinformatics,Vol. 26(12), pp. 1572–1573, 2010.
# Requires the Bioconductor package ConsensusClusterPlus
# set.seed(1)
# Data <- matrix(rnorm(100), ncol = 5)
#
# result <- ConsensusClustering(
# Data = Data,
# ClusterNo = 3,
# PlotIt = FALSE,
# reps = 100,
# clusterAlg = "hc",
# distance = "euclidean",
# seed = 123
# )
#
# result$Cls
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.