From 984f7846c0e851af0cc1fdc21e5fc1d6eb6bec21 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Thu, 30 Nov 2017 11:51:34 -0500 Subject: [PATCH] r601: bugfix - a similar issue to r600 This bug unsets the alignment score of suboptimal alignments. --- hit.c | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hit.c b/hit.c index a7c2c8a..2312eaa 100644 --- a/hit.c +++ b/hit.c @@ -147,7 +147,7 @@ void mm_set_parent(void *km, float mask_level, int n, mm_reg1_t *r, int sub_diff ri->parent = rp->parent; rp->subsc = rp->subsc > ri->score? rp->subsc : ri->score; if (ri->cnt >= rp->cnt) cnt_sub = 1; - if (rp->p && ri->p && (rp->rs != ri->rs || rp->re != ri->re || ol != min)) { // the last condition excludes identical hits after DP + if (rp->p && ri->p && (rp->rid != ri->rid || rp->rs != ri->rs || rp->re != ri->re || ol != min)) { // the last condition excludes identical hits after DP rp->p->dp_max2 = rp->p->dp_max2 > ri->p->dp_max? rp->p->dp_max2 : ri->p->dp_max; if (rp->p->dp_max - ri->p->dp_max <= sub_diff) cnt_sub = 1; } diff --git a/main.c b/main.c index 442cba0..35b6bea 100644 --- a/main.c +++ b/main.c @@ -6,7 +6,7 @@ #include "mmpriv.h" #include "getopt.h" -#define MM_VERSION "2.5-r600-dirty" +#define MM_VERSION "2.5-r601-dirty" #ifdef __linux__ #include