WarrenWeckesser / heatmapcluster

A python library for generating a clustered heatmap with dendrograms.
BSD 2-Clause "Simplified" License
29 stars 8 forks source link

Consider passing linkage function to heatmapcluster constructor #4

Open kshefchek opened 7 years ago

kshefchek commented 7 years ago

This library is very useful for generating heatmap/dendrogram plots; however, I found myself manually editing your code to change the linkage method.

Would it be possible to pass in a linkage function as a lambda, similar to the plotly python API for dendrogram/heatmaps? See http://stackoverflow.com/a/43128409/7794534 as an example.

WarrenWeckesser commented 7 years ago

That's a good idea. I'll look into it.

WarrenWeckesser commented 7 years ago

@kshefchek: I just updated the function to accept linkage functions for the row and column dendrograms. README.rst now includes a second example where the new options, row_linkage and col_linkage, are used.