Skip to content

Commit

Permalink
optionally mark multi-part hits as secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng Li committed Nov 24, 2011
1 parent 9f84384 commit 196b50d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bwtsw2_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ static void print_hits(const bntseq_t *bns, const bsw2opt_t *opt, bsw2seq1_t *ks
bsw2aux_t *q = b->aux + i;
int j, beg, end, type = 0;
// print mandatory fields before SEQ
ksprintf(&str, "%s\t%d", ks->name, q->flag);
ksprintf(&str, "%s\t%d", ks->name, q->flag | (opt->multi_2nd && i? 0x100 : 0));
ksprintf(&str, "\t%s\t%ld", q->chr>=0? bns->anns[q->chr].name : "*", (long)q->pos + 1);
if (p->l == 0) { // not a repetitive hit
ksprintf(&str, "\t%d\t", q->pqual);
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "utils.h"

#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.6.0-r91-dev"
#define PACKAGE_VERSION "0.6.0-r97-dev"
#endif

static int usage()
Expand Down

0 comments on commit 196b50d

Please sign in to comment.