I'm experiencing an issue with hicDetectLoops, where it gives a ValueError. I'm using python version 3.10.14 and hicexplorer version 3.7.2. Here is the command I run:
hicDetectLoops -m E145_combine_10k.cool -o E145_combine_10k.loops.bedgraph --maxLoopDistance 2000000 --windowSize 10 --peakWidth 6 --pValuePreselection 0.05 --pValue 0.05
ERROR:hicexplorer.hicDetectLoops:The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()Traceback (most recent call last):
File "/home/panzhiyuan/miniconda3/envs/hicexplorer/lib/python3.10/site-packages/hicexplorer/hicDetectLoops.py", line 900, in compute_loops
candidates, pValueList = compute_long_range_contacts(pHiCMatrix,
File "/home/panzhiyuan/miniconda3/envs/hicexplorer/lib/python3.10/site-packages/hicexplorer/hicDetectLoops.py", line 368, in compute_long_rangecontacts
candidates, = neighborhood_merge(
File "/home/panzhiyuan/miniconda3/envs/hicexplorer/lib/python3.10/site-packages/hicexplorer/hicDetectLoops.py", line 479, in neighborhood_merge
if 'Fail: ' in new_candidate_list_threads[i]:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Hi ,
I'm experiencing an issue with hicDetectLoops, where it gives a ValueError. I'm using python version 3.10.14 and hicexplorer version 3.7.2. Here is the command I run: hicDetectLoops -m E145_combine_10k.cool -o E145_combine_10k.loops.bedgraph --maxLoopDistance 2000000 --windowSize 10 --peakWidth 6 --pValuePreselection 0.05 --pValue 0.05
ERROR:hicexplorer.hicDetectLoops:The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()Traceback (most recent call last): File "/home/panzhiyuan/miniconda3/envs/hicexplorer/lib/python3.10/site-packages/hicexplorer/hicDetectLoops.py", line 900, in compute_loops candidates, pValueList = compute_long_range_contacts(pHiCMatrix, File "/home/panzhiyuan/miniconda3/envs/hicexplorer/lib/python3.10/site-packages/hicexplorer/hicDetectLoops.py", line 368, in compute_long_rangecontacts candidates, = neighborhood_merge( File "/home/panzhiyuan/miniconda3/envs/hicexplorer/lib/python3.10/site-packages/hicexplorer/hicDetectLoops.py", line 479, in neighborhood_merge if 'Fail: ' in new_candidate_list_threads[i]: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()