fixed a bug in bwase: no RG for unmapped read pairs

This commit is contained in:
Heng Li 2011-01-15 10:32:45 -05:00
parent 5b362b8718
commit f335b33624
2 changed files with 2 additions and 1 deletions

View File

@ -518,6 +518,7 @@ void bwa_print_sam1(const bntseq_t *bns, bwa_seq_t *p, const bwa_seq_t *mate, in
if (p->strand) seq_reverse(p->len, p->qual, 0); // reverse quality
printf("%s", p->qual);
} else printf("*");
if (bwa_rg_id) printf("\tRG:Z:%s", bwa_rg_id);
if (p->clip_len < p->full_len) printf("\tXC:i:%d", p->clip_len);
putchar('\n');
}

2
main.c
View File

@ -3,7 +3,7 @@
#include "main.h"
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.5.9rc1-2 (r1605)"
#define PACKAGE_VERSION "0.5.9rc1-9"
#endif
static int usage()