aidenlab / straw

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

error when calling straw.straw python api #34

Open gurkanyardimci opened 5 years ago

gurkanyardimci commented 5 years ago

Got this error when using straw.straw on a local hic file

Traceback (most recent call last):
  File "dumpWGstraw.py", line 16, in <module>
    result = straw.straw(norm, hicname, '14', '22', 'BP', resolution)
  File "/net/noble/vol2/home/gurkan/bin/anaconda2/envs/straw/lib/python3.6/site-packages/straw/straw.py", line 574, in straw
    records=readBlock(req, idx['size'])
  File "/net/noble/vol2/home/gurkan/bin/anaconda2/envs/straw/lib/python3.6/site-packages/straw/straw.py", line 384, in readBlock
    if (countsnot != 0x7fc00000):
NameError: name 'countsnot' is not defined

Not sure what is causing this error. Straw was installed with pip as instructed in the github page.

srcoulombe commented 4 years ago

Which version of straw are you using?

nchernia commented 4 years ago

Could you send the hic file that caused this error to Aiden lab?

On Tue, Jul 2, 2019 at 7:43 PM gurkanyardimci notifications@github.com wrote:

Got this error when using straw.straw on a local hic file

Traceback (most recent call last): File "dumpWGstraw.py", line 16, in result = straw.straw(norm, hicname, '14', '22', 'BP', resolution) File "/net/noble/vol2/home/gurkan/bin/anaconda2/envs/straw/lib/python3.6/site-packages/straw/straw.py", line 574, in straw records=readBlock(req, idx['size']) File "/net/noble/vol2/home/gurkan/bin/anaconda2/envs/straw/lib/python3.6/site-packages/straw/straw.py", line 384, in readBlock if (countsnot != 0x7fc00000): NameError: name 'countsnot' is not defined

Not sure what is causing this error. Straw was installed with pip as instructed in the github page.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aidenlab/straw/issues/34?email_source=notifications&email_token=AAK2EW7F5D53P6RL2F5LCHTP5PRYNA5CNFSM4H5AU2PKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5AFCUA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK2EW56E2HUDE3OYEC6WATP5PRYNANCNFSM4H5AU2PA .

-- Neva Cherniavsky Durand, Ph.D. Staff Scientist, Aiden Lab www.aidenlab.org

nchernia commented 4 years ago

@gurkanyardimci we've done a bunch of improvements (still working on them), can you let us know if this is still a problem? and if so please email the hic file, we'd like to debug.

gurkanyardimci commented 4 years ago

Hi Neva,

I think I had this problem with a specific hic file I got from a publication repository (it was the SNIPER paper from Jian Ma's lab). I think I did not run into this problem with other hic files.

Gurkan

nchernia notifications@github.com, 29 Oca 2020 Çar, 10:55 tarihinde şunu yazdı:

@gurkanyardimci https://github.com/gurkanyardimci we've done a bunch of improvements (still working on them), can you let us know if this is still a problem? and if so please email the hic file, we'd like to debug.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aidenlab/straw/issues/34?email_source=notifications&email_token=AHEVNLEIWVE5DUE6XUWJB6TRAHGKXA5CNFSM4H5AU2PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKIKTZI#issuecomment-579906021, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHEVNLGVPBQMJHG7KW344D3RAHGKXANCNFSM4H5AU2PA .