ncls icon indicating copy to clipboard operation
ncls copied to clipboard

Resize-error in all_overlaps_both

Open endrebak opened this issue 5 years ago • 2 comments

https://github.com/biocore-ntnu/pyranges/issues/167

endrebak avatar Jan 03 '21 07:01 endrebak

Any update on this? I'm getting a similar error. I'm using the C/Cython method for deriving the overlaps and getting something like this:

  File "C:/Users/PycharmProjects/MobNetMatchingGroup/main.py", line 139, in <module>
    main()
  File "C:/Users/PycharmProjects/MobNetMatchingGroup/main.py", line 130, in main
    l_indices, r_indices = ncl_month.all_overlaps_both(april_2012_dataset.startTime.values, april_2012_dataset.endTime.values, april_2012_dataset.index.values)
  File "ncls/src/ncls.pyx", line 75, in ncls.src.ncls.NCLS64.all_overlaps_both
    cpdef all_overlaps_both(self,
  File "ncls/src/ncls.pyx", line 116, in ncls.src.ncls.NCLS64.all_overlaps_both
    output_arr = np.resize(output_arr, length)
  File "<__array_function__ internals>", line 5, in resize
  File "C:\Users\PycharmProjects\MobNetMatchingGroup\venv\lib\site-packages\numpy\core\fromnumeric.py", line 1425, in resize
    raise ValueError('all elements of `new_shape` must be non-negative')
ValueError: all elements of `new_shape` must be non-negative

unsure what the fix might be, as this seems to be internal.

jd3builds avatar Nov 17 '21 15:11 jd3builds

I think it is just an overflow error. You have too many hits?

endrebak avatar Nov 23 '21 17:11 endrebak