Skip to content
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

query_alignment_length returns read length if read is unmapped / query_alignment_end returns end of read if unmapped #1319

Open
schorlton-bugseq opened this issue Dec 9, 2024 · 0 comments

Comments

@schorlton-bugseq
Copy link

As per title. I would have thought an umapped read would return 0 for this field. I can see that query_alignment_end is returning the end of the read, even though it is unmapped. Thanks for your help!

pysam 0.22.1 in micromamba container

(Pdb) print(read)
my_read     4       *       0       0       None    *       0       0       GAGAATGCTAAGATTTTCTTGCCACTTGACCCTTCGAAAAGTGCGAAAGGGTCAGACGAGATAGATTGTGCATAACCACCTCTTAGGTGATTTACTTGTTGGAAGTAAATTTTGCCATTTTTGATTAATGCTATTCTCAATTTTATGTATT       array('B', [37, 25, 25, 37, 37, 11, 11, 25, 25, 37, 37, 11, 37, 11, 37, 11, 11, 25, 25, 37, 11, 11, 37, 11, 11, 11, 37, 11, 11, 11, 11, 37, 11, 37, 11, 11, 11, 37, 25, 37, 25, 25, 11, 25, 11, 25, 37, 37, 25, 11, 25, 37, 11, 37, 11, 11, 11, 11, 11, 11, 37, 37, 37, 37, 25, 37, 25, 11, 25, 37, 11, 11, 11, 37, 37, 11, 11, 37, 11, 25, 37, 25, 11, 25, 37, 37, 11, 25, 11, 37, 25, 11, 11, 11, 11, 25, 11, 11, 37, 25, 11, 37, 37, 37, 11, 11, 37, 37, 25, 37, 37, 11, 11, 11, 37, 11, 37, 11, 25, 37, 11, 11, 37, 25, 37, 11, 11, 37, 11, 11, 37, 25, 37, 11, 37, 11, 37, 11, 11, 11, 11, 11, 11, 37, 37, 25, 11, 37, 11, 25, 11])      [('LC', 'N')]

(Pdb) read.query_alignment_start
0
(Pdb) read.query_alignment_end
151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant