aidenlab / straw

Extract data quickly from Juicebox via straw
MIT License
62 stars 36 forks source link

Long running then return an empty list (Python version) #68

Closed Nanguage closed 3 years ago

Nanguage commented 3 years ago

Describe the bug The straw python package can't fetch data correctly, when running:

result = matrixObj.getDataFromBinRegion(4000000,6000000,4000000,6000000)

It will be blocked for a monment, then return an empty list.

To Reproduce see the Screenshot. My test data can be downloaded from here.

Expected behavior Return list with readed values.

Screenshots image

Desktop (please complete the following information):

sa501428 commented 3 years ago

The Bin coordinates (in getDataFromBinRegion) are defined as genomic_position/resolution, so the issue here will likely be resolved after fixing those coordinates. Alternatively, you may want to use strawC, which is faster, can be installed from the pybind11 folder, and supports the old usage syntax.

Nanguage commented 3 years ago

Thanks for your reply. I will try to use strawC.