r737: fixed an assertion when failed to convert sa

A bug pointed out by Mikkle Schubert
This commit is contained in:
Heng Li 2014-04-30 14:55:44 -04:00
parent 88f89be60e
commit d59d78838c
2 changed files with 2 additions and 1 deletions

View File

@ -297,6 +297,7 @@ int bwa_cal_pac_pos_pe(const bntseq_t *bns, const char *prefix, bwt_t *const _bw
p[j]->seQ = p[j]->mapQ = bwa_approx_mapQ(p[j], max_diff);
p[j]->pos = bwa_sa2pos(bns, bwt, p[j]->sa, p[j]->len + p[j]->ref_shift, &strand);
p[j]->strand = strand;
if (p[j]->pos == (bwtint_t)-1) p[j]->type = BWA_TYPE_NO_MATCH;
}
}
}

2
main.c
View File

@ -4,7 +4,7 @@
#include "utils.h"
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.7.8-r736-dirty"
#define PACKAGE_VERSION "0.7.8-r737-dirty"
#endif
int bwa_fa2pac(int argc, char *argv[]);