From cd105b47f2ffea91a9bfe407affcaee97eaaf004 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Mon, 31 Jul 2017 14:49:39 -0400 Subject: [PATCH] r237: fixed a bug in outputting cs:Z --- format.c | 1 + main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/format.c b/format.c index ac25106..a84c735 100644 --- a/format.c +++ b/format.c @@ -85,6 +85,7 @@ static void write_cs(void *km, kstring_t *s, const mm_idx_t *mi, const mm_bseq1_ if (l_tmp > 0) { tmp[l_tmp] = 0; mm_sprintf_lite(s, "=%s", tmp); + l_tmp = 0; } mm_sprintf_lite(s, "*%c%c", "acgtn"[tseq[t_off + j]], "acgtn"[qseq[q_off + j]]); } else tmp[l_tmp++] = "ACGTN"[qseq[q_off + j]]; diff --git a/main.c b/main.c index 3a62613..f40c00a 100644 --- a/main.c +++ b/main.c @@ -8,7 +8,7 @@ #include "minimap.h" #include "mmpriv.h" -#define MM_VERSION "2.0rc1-r236-dirty" +#define MM_VERSION "2.0rc1-r237-dirty" void liftrlimit() {