Skip to content

Commit

Permalink
r967: no duplicated @sq lines with --split-prefix
Browse files Browse the repository at this point in the history
resolves #527 and #400
  • Loading branch information
lh3 committed Jan 18, 2020
1 parent 04e015d commit 24f50f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "mmpriv.h"
#include "ketopt.h"

#define MM_VERSION "2.17-r966-dirty"
#define MM_VERSION "2.17-r967-dirty"

#ifdef __linux__
#include <sys/resource.h>
Expand Down Expand Up @@ -361,7 +361,10 @@ int main(int argc, char *argv[])
}
if ((opt.flag & MM_F_OUT_SAM) && idx_rdr->n_parts == 1) {
if (mm_idx_reader_eof(idx_rdr)) {
ret = mm_write_sam_hdr(mi, rg, MM_VERSION, argc, argv);
if (opt.split_prefix == 0)
ret = mm_write_sam_hdr(mi, rg, MM_VERSION, argc, argv);
else
ret = mm_write_sam_hdr(0, rg, MM_VERSION, argc, argv);
} else {
ret = mm_write_sam_hdr(0, rg, MM_VERSION, argc, argv);
if (opt.split_prefix == 0 && mm_verbose >= 2)
Expand Down

0 comments on commit 24f50f3

Please sign in to comment.