deeptools / HiCExplorer

HiCExplorer is a powerful and easy to use set of tools to process, normalize and visualize Hi-C data.
https://hicexplorer.readthedocs.org
GNU General Public License v3.0
233 stars 70 forks source link

all_nan array dtype in hicCorrelation #593

Closed brainfo closed 4 years ago

brainfo commented 4 years ago

my hicexploer is in v 3.5 and python in 3.7.8. when using hicCorrelation on cooler files, it turns out that dtype of all_nan array is float instead of int/bool, so the remove nan process cannot be done and the program will fail and exit. I add a all_nan = all_nan.astype(int) then it will process well. I do not know if this is a common issue so I wanna hear from you about this.

joachimwolff commented 4 years ago

Thanks for letting us know. We do not really understand why this bug appears now, at the release time of 3.5 this was working fine. We suspect something changed in our dependencies. However, we have registered this bug last week and it is already fixed in the dev version: https://github.com/deeptools/HiCExplorer/blob/develop/hicexplorer/hicCorrelate.py#L328

We will release soon a bug fix version 3.5.1.

Best,

Joachim