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

SAMFragment end position is wrong #15

Open
pamelarussell opened this issue Dec 2, 2015 · 2 comments
Open

SAMFragment end position is wrong #15

pamelarussell opened this issue Dec 2, 2015 · 2 comments

Comments

@pamelarussell
Copy link
Contributor

SAMFragment.getReferenceEndPosition() calculates the end position by adding the size to the start position. Size is the sum of the sizes of the blocks and does not include introns. Therefore the reference end position is wrong.

@charcuterie
Copy link

I have this changed in my branch. I never figured out what the "incorrect CIGAR parser" referred to in the comment. Returning the code to

return record.getAlignmentEnd()

works for me, and passes my unit tests.

@pamelarussell
Copy link
Contributor Author

Has this been committed? I'm still getting the same bug.

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

2 participants