Commit Graph

30 Commits (main)

Author SHA1 Message Date
zzh b50360bb48 整合了ert seeding,结果正确,完善了shm 2024-08-06 03:08:10 +08:00
zzh 364ee9756e 添加了共享内存支持,成功构建ert索引 2024-08-03 17:26:32 +08:00
zzh 3e20d7ee0f 解决了创建bwt索引时,一同创建fmt相关的索引相关的bug,现在可以正常一起创建索引了,接下来还可以将sa和bytesa一起创建来减小时间 2024-04-06 15:05:20 +08:00
zzh 123aceb6a6 将fmt和kmer合并到建索引的过程中 2024-04-02 07:49:38 +08:00
zzh 20e072f6af 所有代码都合并了,还差一点建立索引的时候,一起都建立了 2024-04-02 07:42:37 +08:00
zzh 4bd0fd4f91 做了一些代码清理,目前结果应该是完全一致的 2024-02-22 01:26:57 +08:00
Heng Li 02a9add042 added MIT license to some non-GPL source files 2020-07-01 23:02:01 -04:00
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 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 9a828344ec moved indexing to libbwa 2016-02-13 18:48:46 -05:00
Heng Li fdf47000e7 integer overflow on indexing 2016-01-26 23:21:23 -05:00
Heng Li be2020c4af ropebwt2 for bwt construction 2016-01-26 13:46:08 -05:00
Heng Li bf7d1d46ca r808: a minor bug with the new index -b 2014-08-25 10:36:24 -04:00
Heng Li 1bba5ef20e r807: allow to change block size in bwt_gen
For a very large reference genome, the default is too small.
2014-08-25 10:31:54 -04:00
Rob Davies 96e445d9e4 Reduce dependency on utils.h - new malloc wrapping scheme.
Remove xmalloc, xcalloc, xrealloc and xstrdup from utils.h and revert calls
to the normal malloc, calloc, realloc, strdup.  Add new files malloc_wrap.[ch]
with the wrapper functions.  malloc_wrap.h #defines malloc etc. to the
wrapper, but only if USE_MALLOC_WRAPPERS has been defined.

Put #include "malloc_wrap.h" in any file that uses *alloc or strdup.  This
is also in a #ifdef USE_MALLOC_WRAPPERS ... #endif block to make using the
wrappers optional.  Add -DUSE_MALLOC_WRAPPERS into the makefile so they
should normally get added.

This is an improvement on the previous method as we now don't need to
worry about stray function calls that were not changed to the wrapped version
and the code will still work even if the wrapping is disabled.

Other possible methods of doing this are using malloc_hook (glibc-specific),
adding -include malloc_wrap.h to the gcc command-line (somewhat
gcc-specific) or making our own malloc function and using dlopen (scary).
This way is probably the most portable.
2013-05-02 15:12:01 +01:00
Rob Davies aabd990e8f Merge branch 'master' into master_fixes
Conflicts:
	Makefile
	bwape.c
	bwase.c
	bwtsw2_aux.c
	stdaln.c
2013-03-08 16:46:45 +00:00
Heng Li 557d50c7e1 r335: fixed a compiling error
Caused by the last change
2013-03-06 21:57:13 -05:00
Rob Davies 3d33ab063e Merge branch 'master' into master_fixes
Merged to master version b621d3a

Conflicts:
	Makefile
	bntseq.c
	bwa.c
	bwase.c
	bwaseqio.c
	bwtaln.c
	bwtindex.c
	bwtio.c
	bwtmisc.c
	bwtsw2_aux.c
	cs2nt.c
	fastmap.c
	khash.h
	kseq.h
	ksw.c
	kvec.h
	simple_dp.c
	utils.c
	utils.h
2013-03-01 09:37:46 +00:00
Heng Li 6230f86799 merged bwtmisc.c to bwtindex.c
bwtmisc.c implements routines related to indexing
2013-02-22 17:23:34 -05:00
Heng Li 6ad5a3c086 removed color-space support
which has been broken since 0.6.x
2013-02-12 10:21:17 -05:00
Rob Davies 55f1b36534 New wrapper for gzclose; added err_fflush calls and made it call fsync too.
Added a new utils.c wrapper err_gzclose and changed gzclose calls to use it.

Put in some more err_fflush calls before files being written are closed.

Made err_fflush call fsync.  This is useful for remote filesystems where
errors may not be reported on fflush or fclose as problems at the server
end may only be detected after they have returned.  If bwa is being used
only to write to local filesystems, calling fsync is not really necessary.
To disable it, comment out #define FSYNC_ON_FLUSH in utils.c.
2013-01-03 16:57:37 +00:00
Rob Davies b081ac9b8b Use wrapper functions to catch system errors
Use the wrapper functions in utils.c plus a few extra bits of error
checking code to catch system errors and exit non-zero when they occur.
2012-12-16 10:34:57 +00:00
Heng Li c875085b2b do not use .64 suffix by default 2012-03-29 12:31:01 -04:00
Heng Li bdc953cad9 Tim's suggestion suffix file name with .64 2012-03-29 12:22:51 -04:00
Heng Li dec584d50b fixed a long-existing bug in trimming 2011-11-23 23:11:50 -05:00
Heng Li 1cb409aaf2 use forward-only pac to reduce memory 2011-10-21 12:03:14 -04:00
Heng Li 66629512d9 more carefully computed the availableWords 2011-10-20 23:49:03 -04:00
Heng Li 46123639cf removed reverse pac; bwa is not working right now 2011-10-20 12:09:35 -04:00
Heng Li 72563c38f3 automatically choose the algorithm for BWT 2011-06-09 17:33:25 -04:00
Heng Li 007c3eb75d Imported from my local bwa repository, the master repository. 2011-01-13 20:52:12 -05:00