jokergoo / ComplexHeatmap

Make Complex Heatmaps
https://jokergoo.github.io/ComplexHeatmap-reference/book/
Other
1.25k stars 220 forks source link

Why clustering with k-means? #1185

Open richardheery opened 1 month ago

richardheery commented 1 month ago

Hello,

I am wondering if the use of k-means in the parameters km, row_km and col_km may be a misnomer? It seems to me that the resulting clusters are simply the result of cutting the dendrograms produced by hierarchical clustering associated with the rows and columns to achieve the required number of clusters. Using K-means clustering could give quite different clusters to those produced using hierarchical clustering and so showing them on the dendogram would be quite confusing.

Or did I miss something?

Thanks

Richard

Yunuuuu commented 1 week ago

You can use row_split and column_split to split by dendrogram