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

hicAverageRegions local variable 'viewpoint' referenced before assignment #818

Closed sjquon closed 1 year ago

sjquon commented 1 year ago

hicInfo 3.7.2 Python 3.8.13

Installed with conda create --name hicexplorer hicexplorer=3.7.2 python=3.8 -c bioconda -c conda-forge

Full command: hicAverageRegions -m Matrix.cool -r BedFile.bed --range 200000 200000 --outFileName FileName

Error Message:
File "hicAverageRegions", line 7, in main() File "hicexplorer/lib/python3.8/site-packages/hicexplorer/hicAverageRegions.py", line 156, in main start_range_genomic, end_range_genomic, start_out, end_out = calculateViewpointRange(hic_ma, viewpoint, args.range, args.coordinatesToBinMapping) UnboundLocalError: local variable 'viewpoint' referenced before assignment

Hi,

I am trying to run hicAverageRegions with a bedfile and HiC matrix in cool format, but am running into the error that viewpoint is referenced before assignment. I've tried different version of HiCExplorer, but run into the same error. Is there a way to fix this?

97xsl1013 commented 3 months ago

I don't know how you solved this problem, but I also had this problem when I ran this hicAverageRegions.