From 4ee320253999d6df6607c1413ec563bb182df191 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Sat, 8 Jul 2017 18:16:18 -0400 Subject: [PATCH] r164: unmapped read not properly flagged --- format.c | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/format.c b/format.c index 7690baf..8707947 100644 --- a/format.c +++ b/format.c @@ -111,7 +111,7 @@ void mm_write_sam(kstring_t *s, const mm_idx_t *mi, const bseq1_t *t, const mm_r int flag = 0; s->l = 0; if (r == 0) { - mm_sprintf_lite(s, "%s\t0\t*\t0\t0\t*\t*\t0\t0\t", t->name); + mm_sprintf_lite(s, "%s\t4\t*\t0\t0\t*\t*\t0\t0\t", t->name); sam_write_sq(s, t->seq, t->l_seq, 0, 0); mm_sprintf_lite(s, "\t"); if (t->qual) sam_write_sq(s, t->qual, t->l_seq, 0, 0); diff --git a/main.c b/main.c index e27a6b9..b360efb 100644 --- a/main.c +++ b/main.c @@ -10,7 +10,7 @@ #include "minimap.h" #include "mmpriv.h" -#define MM_VERSION "2.0-r163-pre" +#define MM_VERSION "2.0-r164-pre" void liftrlimit() {