-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAX_POS too small #732
Comments
Certainly, this should be an easy fix. |
hey i just had a look at the fix, and without being experienced in cython it seems to me that you just oversized the int32 - I would suggest to use an unsigned int or a long for the loops i haven't tested this but please have a look best klaus |
Thanks, indeed, will need to do this more carefully on a separate branch. |
The C code effectively uses |
Thanks, will do the same. |
Uh, when I said the C code effectively uses Perhaps this would be better using |
Dear pysam authors,
I am trying to work with a large genome, but unfortunately, I am not able to convert my BAM files to bigwig using deeptools. Digging in the code lead me to the suspicion that the problem comes from the module pysam/libchtslib.pyx. Indeed, if you check the source code you see that MAX_POS is defined as 2^29 instead of 2^31 (BAM format): Line 44: cdef int MAX_POS = 2 << 29
Is it something that can be easily fixed?
I would appreciate that. Thank you!
Sergej
The text was updated successfully, but these errors were encountered: