Commit Graph

808 Commits (c56c2e4677d64cc301167b7345b88210e83762e0)

Author SHA1 Message Date
Andreas Tille c56c2e4677 Several trivial Debian patches
[Andreas Tille]
Check exact number of arguments of bwtupdate
Fix spelling

[Fabian Klötzl]
change printing as size_t is unsigned
2017-07-04 21:24:15 +01:00
John Marshall 690649872b Copy the whole kstring_t even if it contains NULs
FASTQ files containing NULs are invalid but should not cause bwa to
crash, as it does if the quality line contains a NUL.  Fixes #122.
2017-06-30 12:46:56 +01:00
John Marshall a61b1dc610 Expand tot_seqs variable to long long
This counter is only used in a log message.  Fixes #131.
2017-06-29 15:36:46 +01:00
Rintze M. Zelle 5ede7eb981 Update README.md
Correct header formatting, fix some typos in headers
2017-06-28 12:07:27 +01:00
John Marshall bc58bf265d Add "bwa mem -o FILE" synonym and documentation
As -o is still free in the mem command, use that standard option to
specify an output file (and keep -f to parallel bwase/bwape commands).
Document it in the usage and man page.
2017-06-27 17:05:44 +01:00
José Manuel Abuín Mosquera d28da05f36 Added option to write output to file 2017-06-27 16:47:13 +01:00
John Marshall ab3a92bc73 Prevent Clang warnings on abs() and fabs() calls
In the bwa.c and bwase.c calls, rlen is an int64_t returned from
bns_get_seq() and is the number of reference bases covered by the
alignment; l_query/len is an int and the query length of the alignment;
and the result is an int given to an int parameter of ksw_global[2]().

As even the result is int and as rlen is effectively bounded by the
maximum length of a reference sequence, we maintain the status quo in
this code and simply cast rlen to int to silence Clang's "use llabs()"
(llabs() would not be a great answer given an int64_t anyway).

The bwtsw2_pair.c call needs to remain fabs() so both divisions are
done in floating point; cast to double to prevent Clang suggesting
changing the call to integer abs().
2017-06-26 10:45:13 +01:00
Gwen Ives 6a5caf764f Fixed BWTIncFree() memory leaks
[Based on PR #37 with the additions below.]

Don't free non-malloced items in BWTFree().  If BWTCreate() is ever
called with a non-NULL decodeTable, BWTFree() will need to not free
decodeTable -- see FIXME comment.

Close packedFile in BWTIncConstructFromPacked() in the normal case.
Ignore it in error cases, as they immediately call exit() anyway.
2017-05-12 16:34:57 +01:00
John Marshall 1972a97813 Only realloc(pac,...) if it needs to be made larger
Similarly to the realloc(pac,...) within add1(), only bother to call
realloc() if appending the reverse complemented sequence requires more
space than is currently in the pac/m_pac buffer.

Avoids realloc(pac,0) (and a "Failed to allocate 0 bytes at bntseq.c"
message from wrap_realloc()) in the corner case of an empty reference
FASTA file.  Fixes #54.
2017-05-10 19:47:12 +01:00
John Marshall beff2e27f8 Add missing <stdint.h> include
Fixes compilation on non-glibc platforms, e.g., FreeBSD and Alpine Linux.
2017-04-25 13:54:31 +01:00
John Marshall af87825525 Replace u_int32_t by the more common uint32_t
The u_int32_t type comes from <sys/types.h>, which is often included
as a byproduct of other headers on glibc platforms, but not on FreeBSD
or Alpine Linux.  Use <stdint.h>'s uint32_t instead, which is used
elsewhere in bwa source code.
2017-04-25 13:51:52 +01:00
Heng Li f123871451 r1142: added option -5 for Hi-C data 2016-05-31 11:01:36 -04:00
Heng Li 850dd811fc Release bwa-0.7.15-r1140 2016-05-31 09:42:50 -04:00
Heng Li 58bcc251f2 r1138: fixed typo in insert size estimate (#65)
credit to @sjackman
2016-05-20 18:05:15 -04:00
Heng Li 5db0c362f5 Release 0.7.14-r1136 2016-05-04 14:41:37 -04:00
Heng Li 7ec3261877 r1134: use AH:* instead of AH:Y 2016-05-03 11:28:58 -04:00
Heng Li 3c038250f9 r1130: changed "ah" to "AH" 2016-04-28 15:39:18 -04:00
Heng Li 9e5852c540 Released bwa-0.7.13 (r1126) 2016-02-23 11:24:19 -05:00
Heng Li b94a78adbf use /usr/env/perl 2016-02-23 11:08:43 -05:00
Heng Li f1ce529cd9 added comment 2016-02-23 11:08:11 -05:00
Heng Li 11437a14f4 Port #48 to the dev branch 2016-02-23 11:07:27 -05:00
Heng Li 9a828344ec moved indexing to libbwa 2016-02-13 18:48:46 -05:00
Heng Li 86170ffd2f r1102: resumed versioning 2016-02-01 11:57:14 -05:00
Heng Li ede7b092a2 updated GRCh38 download link 2016-02-01 11:50:25 -05:00
Heng Li 1e6a10ce2d a typo in fastmap command-line prompt 2016-02-01 11:41:46 -05:00
Heng Li 6f0ea0b7e3 use /usr/bin/env perl 2016-02-01 11:39:50 -05:00
Heng Li fdf47000e7 integer overflow on indexing 2016-01-26 23:21:23 -05:00
Heng Li c819643412 make kthread.c compiled with g++ 2016-01-26 22:49:28 -05:00
Heng Li 1247dc2346 removed the pbread mode
It is not working well. Not at all.
2016-01-26 22:37:01 -05:00
Heng Li 616a53491d Merge branch 'dev' of github.com:lh3/bwa into dev 2016-01-26 17:19:16 -05:00
Heng Li feeb41f42d updated dependencies 2016-01-26 13:54:47 -05:00
Heng Li be2020c4af ropebwt2 for bwt construction 2016-01-26 13:46:08 -05:00
Heng Li e3ea2a8222 Merge pull request #47 from mfcovington/feature/fix-maxk-error
Include 'unistd.h' to explicitly declare 'getopt'
2015-11-14 20:47:22 -05:00
Mike Covington c2efebefa7 Include 'unistd.h' to explicitly declare 'getopt' 2015-11-14 17:27:57 -08:00
Heng Li 6c668d3e1a fixed a bug in reverse-complement 2015-08-27 10:44:08 -04:00
Heng Li 3ae437ac13 r1044: fixed an out-of-order bug in kthread 2015-03-25 12:16:06 -04:00
Heng Li 163f949a33 added maxk: max unique k-mer at each position 2015-02-08 16:49:25 -05:00
Heng Li 1f99921b73 changed download link: 0.7.11 => 0.7.12 2014-12-29 16:43:22 -05:00
Heng Li 8211fbcb62 Released 0.7.12 2014-12-28 15:44:59 -05:00
Heng Li e746a3eac7 r1038: wrong 0x100|0x800 flags in PE mode 2014-12-24 13:22:46 -05:00
Heng Li 3ae8d4b80b r1037: wrong read number flag 2014-12-24 00:55:33 -05:00
Heng Li b9bbf2d3df r1036: PE ALT mapping incorrect
No SA/XA tags!
2014-12-24 00:49:50 -05:00
Heng Li 408fd5e072 Released bwa-0.7.11-r1034 2014-12-23 15:29:18 -05:00
Heng Li d7ce7e1395 hs38D1=>hs38DH; cmd help for run-gen-ref 2014-12-23 11:48:59 -05:00
Heng Li ed95769a33 updated documentations
(prepare for release)
2014-12-21 16:30:29 -05:00
Heng Li c05a721f28 improved doc and don't type HLA by default 2014-12-21 00:12:11 -05:00
Heng Li 5aba188969 write empty .gt file as a placeholder
to suppress error messages from run-bwamem
2014-12-20 22:27:27 -05:00
Heng Li 32c4e3fe5a updated decoy sequences and names 2014-12-20 22:24:13 -05:00
Heng Li c561759222 r1027: segfault caused by the last commit 2014-12-12 16:56:54 -05:00
Heng Li 925ddfb697 r1025: accept file with -H; allow to replace @SQ 2014-12-11 10:38:36 -05:00