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

add condition to BSW in case of reversing #361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add condition to BSW in case of reversing
  • Loading branch information
gayoung-MetisX committed Jul 22, 2022
commit 329d73fc5e3651208c611ff1f862316530039569
1 change: 1 addition & 0 deletions ksw.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ int ksw_extend2(int qlen, const uint8_t *query, int tlen, const uint8_t *target,
if (beg < i - w) beg = i - w;
if (end > i + w + 1) end = i + w + 1;
if (end > qlen) end = qlen;
if (beg >= end) break; // in case of reversing beg and end
// compute the first column
if (beg == 0) {
h1 = h0 - (o_del + e_del * (i + 1));
Expand Down