Skip to content

Commit

Permalink
new code works for SE
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Mar 12, 2013
1 parent c7edaa8 commit ebb45dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bwamem.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ void mem_sam_se(const mem_opt_t *opt, const bntseq_t *bns, const uint8_t *pac, b
s->sam = str.s;
}

void mem_aln2sam_se(const mem_opt_t *opt, const bntseq_t *bns, const uint8_t *pac, bseq1_t *s, mem_alnreg_v *a, int extra_flag, const mem_aln_t *m)
void mem_reg2sam_se(const mem_opt_t *opt, const bntseq_t *bns, const uint8_t *pac, bseq1_t *s, mem_alnreg_v *a, int extra_flag, const mem_aln_t *m)
{
kstring_t str;
str.l = str.m = 0; str.s = 0;
Expand Down Expand Up @@ -1024,7 +1024,8 @@ static void *worker2(void *data)
if (!(w->opt->flag&MEM_F_PE)) {
for (i = w->start; i < w->n; i += w->step) {
mem_mark_primary_se(w->opt, w->regs[i].n, w->regs[i].a);
mem_sam_se(w->opt, w->bns, w->pac, &w->seqs[i], &w->regs[i], 0, 0);
//mem_sam_se(w->opt, w->bns, w->pac, &w->seqs[i], &w->regs[i], 0, 0);
mem_reg2sam_se(w->opt, w->bns, w->pac, &w->seqs[i], &w->regs[i], 0, 0);
free(w->regs[i].a);
}
} else {
Expand Down

0 comments on commit ebb45dc

Please sign in to comment.