SegataLab / hclust2

Hclust2 is a handy tool for plotting heat-maps with several useful options to produce high quality figures that can be used in publication.
MIT License
11 stars 3 forks source link

help with Matplotlib error, as called by hclust2 #12

Open binzo21 opened 2 months ago

binzo21 commented 2 months ago

Hi- I'm trying to run hclust2 and getting the following error:

Traceback (most recent call last): File "/project/crml-bio/.conda/envs/hclust2/bin/hclust2.py", line 825, in hclust2_main() File "/project/crml-bio/.conda/envs/hclust2/bin/hclust2.py", line 779, in hclust2_main read = ReadCmd( ) ^^^^^^^^^^ File "/project/crml-bio/.conda/envs/hclust2/bin/hclust2.py", line 768, in init Heatmap.input_parameters( p ) File "/project/crml-bio/.conda/envs/hclust2/bin/hclust2.py", line 518, in input_parameters pylab.register_cmap(name=n,cmap=my_cmap) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pylab' has no attribute 'register_cmap'

Any help or work around for this would be appreciated!

Thanks! Lindsay

henryjuho commented 3 weeks ago

A quick fix for me was to install it into a conda environment with python 2 instead of 3.

conda create --name hclust2 -c bioconda hclust2 python=2