r131: wrong EOF test; make mb_size <= batch_size

This commit is contained in:
Heng Li 2017-07-01 09:26:09 -04:00
parent d4301736b8
commit a9f089f0aa
3 changed files with 3 additions and 3 deletions

2
bseq.c
View File

@ -53,7 +53,7 @@ bseq1_t *bseq_read(bseq_file_t *fp, int chunk_size, int with_qual, int *n_)
size += seqs[n++].l_seq;
if (size >= chunk_size) break;
}
if (n == 0) fp->is_eof = 1;
if (size < chunk_size) fp->is_eof = 1;
*n_ = n;
return seqs;
}

View File

@ -279,7 +279,7 @@ mm_idx_t *mm_idx_gen(bseq_file_t *fp, int w, int k, int b, int is_hpc, int mini_
{
pipeline_t pl;
memset(&pl, 0, sizeof(pipeline_t));
pl.mini_batch_size = mini_batch_size;
pl.mini_batch_size = mini_batch_size < batch_size? mini_batch_size : batch_size;
pl.keep_name = keep_name;
pl.batch_size = batch_size;
pl.fp = fp;

2
main.c
View File

@ -10,7 +10,7 @@
#include "minimap.h"
#include "mmpriv.h"
#define MM_VERSION "2.0-r129-pre"
#define MM_VERSION "2.0-r131-pre"
void liftrlimit()
{