-
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
samfile.fetch() does not retrieve reads beyond ~2^29 for large chromosomes #996
Comments
Came here to say the same thing. |
Thanks for the report. Left over after #732, there is one remaining instance of --- a/pysam/libcalignmentfile.pyx
+++ b/pysam/libcalignmentfile.pyx
@@ -2219,7 +2222,7 @@ cdef class IteratorRowAllRefs(IteratorRow):
self.rowiter = IteratorRowRegion(self.samfile,
self.tid,
0,
- 1<<29)
+ MAX_POS)
# set htsfile and header of the rowiter
# to the values in this iterator to reflect multiple_iterators
self.rowiter.htsfile = self.htsfile |
Hi @jmarshall,
|
Thanks for confirming. The instance in csq.c relates to something else, so is a bit of a coincidence and doesn't limit any chromosome length. |
Thank you @jmarshall for the quick fix. Can I reinstall pysam with |
I assume |
I see. Thank you @jmarshall! |
Hi There,
I work on wheat (has very large chromosomes). I found pysam AlignmentFile fetch could not retrieve reads beyond ~2^29 for large chromosomes, but it works if I give it a chromosome name. Here is the code I tested with pysam 0.16.0.1.
The text was updated successfully, but these errors were encountered: