r221: sync with hifiasm parameter

Probably has no practical effect
This commit is contained in:
Heng Li
2020-04-10 21:49:01 -04:00
parent c37ea00d6a
commit c710c6ea48
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
#include <pthread.h>
#define HA_VERSION "0.3.0-dirty-r220"
#define HA_VERSION "0.3.0-dirty-r221"
#define VERBOSE 0

View File

@@ -383,7 +383,7 @@ int32_t ha_chain_lis_core(k_mer_hit *a, int32_t n_a, Chain_Data *dp, int32_t min
tot_len += dy;
if (tot_indel > tot_len * bw_thres) break;
dg = dx < dy? dx : dy;
if (dd > 10 && dd > dg * bw_thres) break;
if (dd > THRESHOLD_MAX_SIZE && dd > dg * bw_thres) break;
score = dg < min_sc? dg : min_sc;
gap_rate = (double)tot_indel / tot_len;
score -= (int)(gap_rate * score * bw_pen);