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
227 stars 70 forks source link

chicPlotViewpoint doesn't accept interaction file #807

Open ahorvath opened 2 years ago

ahorvath commented 2 years ago

Dear Developers,

I'm trying to generate compiled 3C-like profiles for a tRNA and I encountered the following error message:

chicViewpointBackgroundModel --matrices CTR.h5 T1.h5 T2.h5 --referencePoints reference_point.bed --outFileName background_model.bed

chicViewpoint --matrices CTR.h5 T1.h5 T2.h5 --range 50000 50000 --referencePoint reference_point.bed --backgroundModelFile background_model.bed --threads 20

chicSignificantInteractions --interactionFile tRNAs_output_interaction.h5 --pValue 0.05 --backgroundModelFile background_model.bed --range 50000 50000 --threads 20

ERROR:hicexplorer.chicSignificantInteractions:'str' object has no attribute 'decode'Traceback (most recent call last): File "/home/admin/anaconda3/envs/hicexplorer/lib/python3.8/site-packages/hicexplorer/chicSignificantInteractions.py", line 134, in compute_interaction_file data = pViewpointObj.readInteractionFile(pFilePath, sample) File "/home/admin/anaconda3/envs/hicexplorer/lib/python3.8/site-packages/hicexplorer/lib/viewpoint.py", line 149, in readInteractionFile chromosome = interactionFileHDF5Object.get(internal_path + '/' + 'chromosome')[()].decode("utf-8") AttributeError: 'str' object has no attribute 'decode

Can you please help resolve this?

Many thanks in advance.

Best, Attila chicFiles.zip

Python 3.8.13 hicInfo 3.7.2