Skip to content

Commit

Permalink
r112: bugfix: first mapq not counted
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Aug 14, 2016
1 parent c9b6d84 commit 2c964b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion group.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,13 @@ void lt_grp_push_read(const lt_opt_t *opt, lt_groups_t *g, const bam_hdr_t *h, c
}
}
if (i == kdq_size(g->q)) {
int q = c->qual < 60? c->qual : 60;
lt_group_t *p;
p = kdq_pushp(lt_group_t, g->q);
p->tid = c->tid, p->st = st, p->en = en, p->is_rev = is_rev, p->n_frag = 1;
p->l_open = is_rev? 1 : 0;
p->r_open = is_rev? 0 : 1;
p->sum_mq2 = 0;
p->sum_mq2 = q * q;
p->n = 0, p->m = 4;
p->a = (int*)malloc(p->m * sizeof(int));
p->a[p->n++] = en - st;
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <sys/resource.h>
#include <sys/time.h>

#define LT_VERSION "r109"
#define LT_VERSION "r112"

int main_trim(int argc, char *argv[]);
int main_ldup(int argc, char *argv[]);
Expand Down

0 comments on commit 2c964b0

Please sign in to comment.