From c710c6ea48952b1cf0887f2ea6667c763e9abf53 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Fri, 10 Apr 2020 21:49:01 -0400 Subject: [PATCH] r221: sync with hifiasm parameter Probably has no practical effect --- CommandLines.h | 2 +- Hash_Table.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CommandLines.h b/CommandLines.h index b4a00d5..8db5b3d 100644 --- a/CommandLines.h +++ b/CommandLines.h @@ -3,7 +3,7 @@ #include -#define HA_VERSION "0.3.0-dirty-r220" +#define HA_VERSION "0.3.0-dirty-r221" #define VERBOSE 0 diff --git a/Hash_Table.cpp b/Hash_Table.cpp index 845936b..96961de 100644 --- a/Hash_Table.cpp +++ b/Hash_Table.cpp @@ -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);