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

unboundLocalError: local variable 'out_bam_file' referenced before assignment #823

Closed distilledchild closed 1 year ago

distilledchild commented 1 year ago

Welcome to the HiCExplorer GitHub repository! Before opening the issue please check that the following requirements are met :

Retry your command, is it solved now? If not please continue with the following:

hicInfo 3.7.2 Python 3.10.6 command: hicBuildMatrix --samFiles smpl_R1.bam smpl_R2.bam \ --binSize 1000 5000 10000 50000 25000 50000 100000 250000 500000 1000000 2500000 \ --restrictionSequence GAATC GAGTC GATTC GACTC GATC CTAAG CTGAG CTTAG CTCAG TTAA \ --danglingSequence AAT AGT ATT ACT GATC TAA TGA TTA TCA TA --restrictionCutFile GAATC.bed GAGTC.bed GATTC.bed GACTC.bed GATC.bed CTAAG.bed CTGAG.bed CTTAG.bed CTCAG.bed TTAA.bed \ --threads 4 --inputBufferSize 400000 --outBam smpl_hicexplorer_hic.bam \ --outFileName smpl_hicexplorer_hic_matrix.h5 \ --chromosomeSizes chrom.sizes \ --genomeAssembly rn7chr.fa \ --doTestRun --doTestRunLines 1000000 \ --QCfolder hicQC/

After running, I got an error, Traceback (most recent call last): File "hicexplorer/bin/hicBuildMatrix", line 7, in main() File "hicexplorer/lib/python3.10/site-packages/hicexplorer/hicBuildMatrix.py", line 1400, in main out_bam_file.write(mate1) UnboundLocalError: local variable 'out_bam_file' referenced before assignment

And, it seems to be stuck. Could you help me to solve this error if it is stuck and errors please?

distilledchild commented 1 year ago

I ran it just /hicQuickQC command, and it doesn't cause any errors.