Skip to content

Commit

Permalink
Removed the debug output; resolves lh3#320
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Mar 9, 2021
1 parent 110bf9b commit 34374c5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bwamem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,13 +1205,11 @@ static void worker1(void *data, int i, int tid)
if (!(w->opt->flag&MEM_F_PE)) {
if (bwa_verbose >= 4) printf("=====> Processing read '%s' <=====\n", w->seqs[i].name);
w->regs[i] = mem_align1_core(w->opt, w->bwt, w->bns, w->pac, w->seqs[i].l_seq, w->seqs[i].seq, w->aux[tid]);
fprintf(stderr, "Q1\t%s\t%.3f\t%d\n", w->seqs[i].name, peakrss() / 1073741824.0, tid);
} else {
if (bwa_verbose >= 4) printf("=====> Processing read '%s'/1 <=====\n", w->seqs[i<<1|0].name);
w->regs[i<<1|0] = mem_align1_core(w->opt, w->bwt, w->bns, w->pac, w->seqs[i<<1|0].l_seq, w->seqs[i<<1|0].seq, w->aux[tid]);
if (bwa_verbose >= 4) printf("=====> Processing read '%s'/2 <=====\n", w->seqs[i<<1|1].name);
w->regs[i<<1|1] = mem_align1_core(w->opt, w->bwt, w->bns, w->pac, w->seqs[i<<1|1].l_seq, w->seqs[i<<1|1].seq, w->aux[tid]);
fprintf(stderr, "Q1\t%s\t%.3f\t%d\n", w->seqs[i<<1|0].name, peakrss() / 1073741824.0, tid);
}
}

Expand All @@ -1225,12 +1223,10 @@ static void worker2(void *data, int i, int tid)
mem_mark_primary_se(w->opt, w->regs[i].n, w->regs[i].a, w->n_processed + i);
if (w->opt->flag & MEM_F_PRIMARY5) mem_reorder_primary5(w->opt->T, &w->regs[i]);
mem_reg2sam(w->opt, w->bns, w->pac, &w->seqs[i], &w->regs[i], 0, 0);
fprintf(stderr, "Q2\t%s\t%.3f\n", w->seqs[i].name, peakrss() / 1073741824.0);
free(w->regs[i].a);
} else {
if (bwa_verbose >= 4) printf("=====> Finalizing read pair '%s' <=====\n", w->seqs[i<<1|0].name);
mem_sam_pe(w->opt, w->bns, w->pac, w->pes, (w->n_processed>>1) + i, &w->seqs[i<<1], &w->regs[i<<1]);
fprintf(stderr, "Q2\t%s\t%.3f\n", w->seqs[i<<1|0].name, peakrss() / 1073741824.0);
free(w->regs[i<<1|0].a); free(w->regs[i<<1|1].a);
}
}
Expand Down

0 comments on commit 34374c5

Please sign in to comment.