Skip to content

Commit

Permalink
r225: count N matches as mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Sep 17, 2024
1 parent 3bb365f commit cea81a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bwa-sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static void sw_core(void *km, const rb3_swopt_t *opt, const rb3_fmi_t *f, const
sw_cell2sai(p, &ik);
rb3_fmd_extend_cached(f, rc, &ik, ok, 1);
for (c = 1; c < 6; ++c) {
int32_t sc = c == t->c? opt->match : -opt->mis;
int32_t sc = c == t->c && c != 5? opt->match : -opt->mis;
if (ok[c].size == 0) continue;
if (p->H + sc <= 0 || p->H + sc < max_min_sc) continue;
if (c != t->c && p->qlen < opt->end_len) continue;
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "io.h"
#include "ketopt.h"

#define RB3_VERSION "3.6-r224-dirty"
#define RB3_VERSION "3.6-r225-dirty"

int main_build(int argc, char *argv[]);
int main_merge(int argc, char *argv[]);
Expand Down

0 comments on commit cea81a4

Please sign in to comment.