From e2d4caa430112346f387709bd016eb1a8c737d8e Mon Sep 17 00:00:00 2001 From: Heng Li Date: Tue, 9 Nov 2010 04:35:52 +0000 Subject: [PATCH] * samtools-0.1.9-4 (r801) * fixed a minor issue in printing indel VCF --- bam2bcf.c | 4 +++- bamtk.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bam2bcf.c b/bam2bcf.c index c2d9944..384e481 100644 --- a/bam2bcf.c +++ b/bam2bcf.c @@ -181,7 +181,9 @@ int bcf_call2bcf(int tid, int pos, bcf_call_t *bc, bcf1_t *b, bcf_callret1_t *bc kputc(ref[pos], &s); for (i = 1; i < 4; ++i) { if (bc->a[i] < 0) break; - if (i > 1) kputc(',', &s); + if (i > 1) { + kputc(',', &s); kputc(ref[pos], &s); + } if (bca->indel_types[bc->a[i]] < 0) { // deletion for (j = -bca->indel_types[bc->a[i]]; j < bca->indelreg; ++j) kputc(ref[pos+1+j], &s); diff --git a/bamtk.c b/bamtk.c index 743f337..35eb2a5 100644 --- a/bamtk.c +++ b/bamtk.c @@ -9,7 +9,7 @@ #endif #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION "0.1.9-3 (r797)" +#define PACKAGE_VERSION "0.1.9-4 (r801)" #endif int bam_taf2baf(int argc, char *argv[]); -- 2.39.2