-
Notifications
You must be signed in to change notification settings - Fork 19
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
Still cannot read 10x bam file #16
Comments
I see your problem. My knee-jerk reaction is to think that mapping asynchronously is causing the file cursor to come out alignment. Depending on the function you are using to the pull the reads, you may need to use the |
Okay, my first reaction was wrong. After looking at it, it is a fault in how I coded serial access. It is faulting because it is reaching the end of file...I just never coded in EOF marker checking in serial access. I should be able to fix that tomorrow. Sorry for the delay. |
Thank you so much! This works perfectly now. One tip you can advertise about |
Would you be able to do a version bump soon? That way the PR I'm submitting to dib-lab/sourmash uses a pip version rather than a commit hash :) |
That was exactly one of my initial issues with pysam. As great as it is, I wanted to do some multiprocessing. Furthermore, pysam's So, part of making bamnostic pickle-able is due to my hash method--which takes into account the read name as well, ensuring distinct hashes. Also, v0.9.0 is available on PyPI and GitHub. Conda-forge has to to through some CI before the maintainers accept it. |
Hello, thank you so much for fixing the previous error with 10x genomics! Unfortunately I'm still running into a buffering bug while reading the alignments.
Describe the bug
Cannot use bamnostic to read single-cell chromium bam file produced by 10x genomics.
To Reproduce
Steps to reproduce the behavior:
Same code as here: #15 (comment)
Expected behavior
Expected to be able to iterate over each read without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Python 3.6.5 :: Anaconda, Inc.
Additional context
NA
The text was updated successfully, but these errors were encountered: