powered by
Performs hierarchical clustering on a stack of consensus matrices to obtain consensus class labels.
CSPA(E, k)
is an array of clustering results.
number of clusters
cluster assignments for the consensus class
Other consensus functions: LCA(), LCE(), k_modes(), majority_voting()
LCA()
LCE()
k_modes()
majority_voting()
# NOT RUN { data(hgsc) dat <- hgsc[1:100, 1:50] x <- consensus_cluster(dat, nk = 4, reps = 4, algorithms = c("hc", "diana"), progress = FALSE) CSPA(x, k = 4) # }
Run the code above in your browser using DataLab