-
Notifications
You must be signed in to change notification settings - Fork 82
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] Wrong alignment score #3043 #3098
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
447126b
to
eaf671c
Compare
Codecov ReportBase: 98.22% // Head: 98.22% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3098 +/- ##
==========================================
- Coverage 98.22% 98.22% -0.01%
==========================================
Files 275 275
Lines 12181 12192 +11
==========================================
+ Hits 11965 11975 +10
- Misses 216 217 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -18,8 +18,8 @@ static constexpr seqan3::detail::trace_directions N = seqan3::detail::trace_dire | |||
static constexpr seqan3::detail::trace_directions D = seqan3::detail::trace_directions::diagonal; | |||
static constexpr seqan3::detail::trace_directions u = seqan3::detail::trace_directions::up; | |||
static constexpr seqan3::detail::trace_directions l = seqan3::detail::trace_directions::left; | |||
static constexpr seqan3::detail::trace_directions U = seqan3::detail::trace_directions::up_open; | |||
static constexpr seqan3::detail::trace_directions L = seqan3::detail::trace_directions::left_open; | |||
static constexpr seqan3::detail::trace_directions U = seqan3::detail::trace_directions::carry_up_open; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes as to not need to touch every test
: (best_trace |= previous_cell.horizontal_trace(), diagonal_score); | ||
diagonal_score = | ||
(diagonal_score < horizontal_score) | ||
? (best_trace = previous_cell.horizontal_trace() | (best_trace & trace_directions::carry_up_open), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(best_trace & trace_directions::carry_left_open)
is not needed in the above (L 79) case, because the horizontal trace is always set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for resolving this issue!
I just had some reading problems. Decide yourself if it makes sense to change it.
include/seqan3/alignment/pairwise/detail/policy_affine_gap_with_trace_recursion.hpp
Show resolved
Hide resolved
Added carry bit to up and left open trace directions in order to capture original open signal even if it is overwritten by the orhtogonal direction. In the particular issue the left extension overrites the up open signal in the last column and fifth row. The traceback now follows the vertical or horizontal direction unitl it encounters the carry bit signal.
6e23815
to
4fe5489
Compare
Resolves #3043
Added carry bit to up and left open trace directions in order to capture original open signal even if it is overwritten by the orhtogonal direction. In the particular issue the left extension overwrites the
up Open
signal in the last column and fifth row. The traceback now follows the vertical or horizontal direction unitl it encounters the carry bit signal.