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

Fix incorrect alignments in Giraffe when a tail doubles back onto the anchor node #4534

Merged
merged 3 commits into from
Mar 4, 2025

Conversation

adamnovak
Copy link
Member

Changelog Entry

To be copied to the draft changelog by merger:

  • vg giraffe should no longer produce final mappings with nonzero offsets or other wrong answers when a read tail doubles back on itself.

Description

This should fix the problem Zilan reported where a read couldn't be converted to GAF, because it had an offset on its last mapping, because when the flipped right tail was aligned right-anchored it doubled back onto the anchoring node and the extra cut-off part wasn't accounted for when translating back to the base graph.

I'm also adding more asserts, because we wouldn't have ever noticed this in GAM output mode, only GAF.

@adamnovak adamnovak merged commit e897604 into master Mar 4, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant