From 981e2fd534f8df2da5a782159e09811656bb8dd2 Mon Sep 17 00:00:00 2001 From: marekkokot Date: Tue, 17 Jul 2018 10:52:54 +0200 Subject: [PATCH] force small k opt when k is lower than signature length --- kmer_counter/kmc.h | 45 ++++++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/kmer_counter/kmc.h b/kmer_counter/kmc.h index 2f70456..b6214b7 100644 --- a/kmer_counter/kmc.h +++ b/kmer_counter/kmc.h @@ -588,6 +588,8 @@ template bool CKMC 13) return false; + bool small_k_opt_required = Params.kmer_len < Params.signature_len; + uint32 counter_size = 4; //in bytes if ((uint64)Params.cutoff_max > ((1ull << 32) - 1)) counter_size = 8; @@ -605,32 +607,45 @@ template bool CKMC