Marsilea-viz / marsilea

Declarative creation of composable visualization for Python (Complex heatmap, Upset plot, Oncoprint and more~)
https://marsilea.rtfd.io/
MIT License
166 stars 6 forks source link

Is it possible to use the pre-calculated linkage matrix? #11

Closed liuzj039 closed 1 year ago

liuzj039 commented 1 year ago

Amazing visualization package. I was wondering if it is possible to use a precomputed linkage matrix in the add_dendrogram function, similar to the row (col) linkage parameter in seaborn.clustermap? Thank you very much for your help.

Mr-Milk commented 1 year ago

Nice suggestion, this should be a simple feature. I'll add it to the next release.

liuzj039 commented 1 year ago

Thank you very much for your prompt response. I am eagerly anticipating the upcoming updates.

Mr-Milk commented 1 year ago

You may try the new dev version, a new parameter linkage is added to the add_dendrogram method

To install the dev version directly from GitHub

pip install git+https://github.com/Marsilea-viz/marsilea.git
liuzj039 commented 1 year ago

It worked very well. Thank you very much for your help."