r906: de tag is wrongly calculated given "N"

Resolves #309
This commit is contained in:
Heng Li 2019-01-11 19:39:09 -05:00
parent c404f49569
commit 48e230f40d
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ double mm_event_identity(const mm_reg1_t *r)
if (op == 1 || op == 2) if (op == 1 || op == 2)
++n_gapo, n_gap += len; ++n_gapo, n_gap += len;
} }
return (double)r->mlen / (r->blen - r->p->n_ambi - n_gap + n_gapo); return (double)r->mlen / (r->blen - n_gap + n_gapo);
} }
static inline void write_tags(kstring_t *s, const mm_reg1_t *r) static inline void write_tags(kstring_t *s, const mm_reg1_t *r)

2
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h" #include "mmpriv.h"
#include "ketopt.h" #include "ketopt.h"
#define MM_VERSION "2.15-r905" #define MM_VERSION "2.15-r906-dirty"
#ifdef __linux__ #ifdef __linux__
#include <sys/resource.h> #include <sys/resource.h>