A named list of length two. The first element "cluster.list"
is a list of clusters, and the second element "cluster.plot" the
cluster analysis object (dendogram) that can be plotted.
Arguments
Data
S (sample) matrix
minSamplesPerCluster
the minimum number of samples required for a cluster
row_ids
A vector of custom row names to be added to dendrogram
dist_method
Distance metric to be used in stats::dist. This should
be one of "euclidean", "maximum", "manhattan", "canberra",
"binary" or "minkowski".
hclust_method
Cluster method to be used in stats::hclust. This
should be one of "ward.D", "ward.D2", "single",
"complete", "average" (= UPGMA), "mcquitty" (= WPGMA),
"median" (= WPGMC) or "centroid" (= UPGMC).