* fixed a bug when there are reads without coordinates
int bam_plbuf_push(const bam1_t *b, bam_plbuf_t *buf)
{
if (b) { // fill buffer
+ if (b->core.tid < 0) return 0;
if (b->core.flag & buf->flag_mask) return 0;
bam_copy1(&buf->tail->b, b);
buf->tail->beg = b->core.pos; buf->tail->end = bam_calend(&b->core, bam1_cigar(b));
#include "bam.h"
#ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.3-7 (r246)"
+#define PACKAGE_VERSION "0.1.3-8 (r251)"
#endif
int bam_taf2baf(int argc, char *argv[]);