r601: bugfix - a similar issue to r600

This bug unsets the alignment score of suboptimal alignments.
This commit is contained in:
Heng Li 2017-11-30 11:51:34 -05:00
parent af1d6afba9
commit 984f7846c0
2 changed files with 2 additions and 2 deletions

2
hit.c
View File

@ -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;
}

2
main.c
View File

@ -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 <sys/resource.h>