Skip to content

Commit c232375

Browse files
committed
r1272: more stringent on @hd checking via -H
1 parent 3c99c2b commit c232375

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ ifeq ($(shell uname -s),GNU/kFreeBSD)
2222
LIBS += -lrt
2323
endif
2424

25+
ifneq ($(asan),)
26+
CFLAGS+=-fsanitize=address
27+
LIBS+=-fsanitize=address -ldl
28+
endif
29+
2530
.SUFFIXES:.c .o .cc
2631

2732
.c.o:
@@ -81,7 +86,7 @@ fastmap.o: bwa.h bntseq.h bwt.h bwamem.h kvec.h malloc_wrap.h utils.h kseq.h
8186
is.o: malloc_wrap.h
8287
kopen.o: malloc_wrap.h
8388
kstring.o: kstring.h malloc_wrap.h
84-
ksw.o: ksw.h neon_sse.h scalar_sse.h malloc_wrap.h
89+
ksw.o: scalar_sse.h ksw.h malloc_wrap.h
8590
main.o: kstring.h malloc_wrap.h utils.h
8691
malloc_wrap.o: malloc_wrap.h
8792
maxk.o: bwa.h bntseq.h bwt.h bwamem.h kseq.h malloc_wrap.h

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
**Note: [minimap2][minimap2] has replaced BWA-MEM for __PacBio and Nanopore__ read
77
alignment.** It retains all major BWA-MEM features, but is ~50 times as fast,
88
more versatile, more accurate and produces better base-level alignment.
9-
A beta version of [BWA-MEM2][bwa-mem2] has been released for short-read mapping.
10-
BWA-MEM2 is about twice as fast as BWA-MEM and outputs near identical alignments.
9+
[BWA-MEM2][bwa-mem2] is 50-100% faster than BWA-MEM and outputs identical alignments.
1110

1211
[minimap2]: https://github.com/lh3/minimap2
1312
[bwa-mem2]: https://github.com/bwa-mem2/bwa-mem2

bwa.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ uses soft clipping for the primary alignment and hard clipping for
359359
supplementary alignments.
360360
.TP
361361
.B -M
362-
Mark shorter split hits as secondary (for Picard compatibility).
362+
Mark shorter split hits as secondary
363363
.TP
364364
.BI -v \ INT
365365
Control the verbosity level of the output. This option has not been fully

bwa.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,10 @@ void bwa_print_sam_hdr(const bntseq_t *bns, const char *hdr_line)
412412
if (hdr_line) {
413413
// check for HD line
414414
const char *p = hdr_line;
415-
if ((p = strstr(p, "@HD")) != 0) {
416-
++n_HD;
417-
}
415+
while ((p = strstr(p, "@HD\t")) != 0) {
416+
if (p == hdr_line || *(p-1) == '\n') ++n_HD;
417+
p += 4;
418+
}
418419
// check for SQ lines
419420
p = hdr_line;
420421
while ((p = strstr(p, "@SQ\t")) != 0) {

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "utils.h"
3131

3232
#ifndef PACKAGE_VERSION
33-
#define PACKAGE_VERSION "0.7.18-r1271-dirty"
33+
#define PACKAGE_VERSION "0.7.18-r1272-dirty"
3434
#endif
3535

3636
int bwa_fa2pac(int argc, char *argv[]);

0 commit comments

Comments
 (0)