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

Fixes #3266: Incorrect begin/end of alignment for banded alignment #3269

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

rrahn
Copy link
Contributor

@rrahn rrahn commented Jul 16, 2024

In case the sequences are sliced by cutting off a prefix of the original seuence due to the band configuration, the relative positions of the sliced sequences was reported inside of the alignment result.
However, this slicing happens only internally and thus the positions reported should correspond to the ones of the original sequences.
We fix this by tracking the offset of the prefix that was cut off and add this to the relative positions during result creation to get the absolute positions.

In case the sequences are sliced by cutting off a prefix of the original seuence due to the band configuration, the relative positions of the sliced sequences was reported inside of the alignment result.
However, this slicing happens only internally and thus the positions reported should correspond to the ones of the original sequences.
We fix this by tracking the offset of the prefix that was cut off and add this to the relative positions during result creation to get the absolute positions.
Copy link

vercel bot commented Jul 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
seqan3 ✅ Ready (Inspect) Visit Preview Jul 16, 2024 4:03pm

@seqan-actions seqan-actions added the lint [INTERNAL] signal for linting label Jul 16, 2024
@rrahn rrahn requested a review from eseiler July 16, 2024 15:33
@seqan-actions seqan-actions removed the lint [INTERNAL] signal for linting label Jul 16, 2024
Copy link
Member

@eseiler eseiler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small stuff, you can squash merge if my comments are fine

@seqan-actions seqan-actions added lint [INTERNAL] signal for linting and removed lint [INTERNAL] signal for linting labels Jul 16, 2024
@rrahn
Copy link
Contributor Author

rrahn commented Jul 16, 2024

Thanks a lot for fixing the small stuff right away. 👍

@rrahn rrahn merged commit 4cc708d into seqan:main Jul 16, 2024
32 checks passed
@rrahn rrahn deleted the fix/issue_3266 branch July 16, 2024 17:39
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.

3 participants