r1130: changed "ah" to "AH"

This commit is contained in:
Heng Li 2016-04-28 15:39:18 -04:00
parent 9e5852c540
commit 3c038250f9
2 changed files with 6 additions and 3 deletions

7
bwa.c
View File

@ -379,8 +379,11 @@ void bwa_print_sam_hdr(const bntseq_t *bns, const char *hdr_line)
}
}
if (n_SQ == 0) {
for (i = 0; i < bns->n_seqs; ++i)
err_printf("@SQ\tSN:%s\tLN:%d\n", bns->anns[i].name, bns->anns[i].len);
for (i = 0; i < bns->n_seqs; ++i) {
err_printf("@SQ\tSN:%s\tLN:%d", bns->anns[i].name, bns->anns[i].len);
if (bns->anns[i].is_alt) err_printf("\tAH:Y\n");
else err_fputc('\n', stdout);
}
} else if (n_SQ != bns->n_seqs && bwa_verbose >= 2)
fprintf(stderr, "[W::%s] %d @SQ lines provided with -H; %d sequences in the index. Continue anyway.\n", __func__, n_SQ, bns->n_seqs);
if (hdr_line) err_printf("%s\n", hdr_line);

2
main.c
View File

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