-
Notifications
You must be signed in to change notification settings - Fork 6
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
feature request: include sequences #3
Comments
Do you know the relevant functions in pysam? I’ll look into it. Thanks for the suggestion. |
I haven't looked at your code but if you are using AlignedSegment, then query_sequence should give it to you https://pysam.readthedocs.io/en/latest/api.html#pysam.AlignedSegment.query_sequence |
I'll look into it. Will probably have lots of time Monday 👍 |
Noticed that this was just a one line change, so I just submitted a PR now #4 |
Here is some code that needs changing too: https://github.com/pyranges/bamread/blob/master/bamread/src/bamread.pyx I'll do it, but do you have an example bam I could use? |
I don't think anything else needs changing. I've been using the branch with my PR to read in sequences without any other changes. Here's an example BAM, in case it's helpful: https://github.com/openvax/varlens/blob/master/test/data/rna_chr17_41244936.bam |
Looking at this now. I've had lots to do - sorry for being tardy! |
Thanks for a great library. It would be very helpful as a general purpose tool if
bamread.read_bam_full
had the ability to include the query sequences.The text was updated successfully, but these errors were encountered: