X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam2bcf.c;h=e55212ca98cbb28041fb6a6dfc46619ff595ee09;hb=4fe4b27b44d067c21948870d9e48976662dec397;hp=95532254a084caf3fbd6e05840819225848e952b;hpb=4e4e3fdee9dd2331d38effa3f3af29a0a2c4f268;p=samtools.git diff --git a/bam2bcf.c b/bam2bcf.c index 9553225..e55212c 100644 --- a/bam2bcf.c +++ b/bam2bcf.c @@ -158,6 +158,7 @@ int bcf_call2bcf(int tid, int pos, bcf_call_t *bc, bcf1_t *b) { kstring_t s; int i; + b->n_smpl = bc->n; b->tid = tid; b->pos = pos; b->qual = 0; s.s = b->str; s.m = b->m_str; s.l = 0; kputc('\0', &s); @@ -179,7 +180,7 @@ int bcf_call2bcf(int tid, int pos, bcf_call_t *bc, bcf1_t *b) // FMT kputs("PL", &s); kputc('\0', &s); b->m_str = s.m; b->str = s.s; b->l_str = s.l; - bcf_sync(bc->n, b); + bcf_sync(b); memcpy(b->gi[0].data, bc->PL, b->gi[0].len * bc->n); return 0; }