基于bwa,做一些优化,注释
 
 
 
 
 
 
Go to file
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
.gitignore Added Makefile.bak and bwamem-lite to .gitignore 2013-03-13 09:18:18 +00:00
COPYING Imported from my local bwa repository, the master repository. 2011-01-13 20:52:12 -05:00
ChangeLog Update to the latest modfication 0.5.9rc1-2. Update ChangeLog 2011-01-13 20:54:10 -05:00
Makefile Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
NEWS r386: typo in NEWS 2013-04-23 12:30:22 -04:00
QSufSort.c removed a few unused variables 2013-02-23 13:26:50 -05:00
QSufSort.h move bwt_gen/* to the root directory 2011-10-20 11:56:24 -04:00
README added SEAL 2011-11-12 20:48:35 -05:00
bamlite.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bamlite.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bntseq.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bntseq.h r283: prepare for fixing cross-ref aln 2013-02-25 22:49:15 -05:00
bwa.1 Released bwa-0.7.4-r385 2013-04-23 11:40:56 -04:00
bwa.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwa.h move mem_fill_scmat() to bwa.{h,c} 2013-03-05 09:38:12 -05:00
bwamem.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwamem.h r388: cleanup mem_process_seqs() interface 2013-04-26 12:31:18 -04:00
bwamem_pair.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwape.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwase.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwase.h removed color-space support 2013-02-12 10:21:17 -05:00
bwaseqio.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwt.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwt.h Updated NEWS; added stddef.h for size_t 2013-03-08 14:14:42 -05:00
bwt_gen.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwt_lite.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwt_lite.h Imported from my local bwa repository, the master repository. 2011-01-13 20:52:12 -05:00
bwtaln.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwtaln.h r329: ditch stdaln.{c,h}; no changes to bwa-mem 2013-03-05 12:00:24 -05:00
bwtgap.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwtgap.h API: aln seems working 2012-04-07 00:23:01 -04:00
bwtindex.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwtsw2.h r132: optionally copy FASTA/Q comment to SAM 2012-10-26 12:54:32 -04:00
bwtsw2_aux.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwtsw2_chain.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwtsw2_core.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
bwtsw2_main.c Ensure exit status of 1 if given invalid options or index files are not found. 2013-04-29 13:58:28 +01:00
bwtsw2_pair.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
example.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
fastmap.c Ensure exit status of 1 if given invalid options or index files are not found. 2013-04-29 13:58:28 +01:00
is.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
kbtree.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
khash.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
kopen.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
kseq.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
ksort.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
kstring.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
kstring.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
ksw.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
ksw.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
kvec.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
main.c Merge branch 'master' into master_fixes. Merged up to r389. 2013-04-29 12:09:30 +01:00
malloc_wrap.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
malloc_wrap.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
pemerge.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
qualfa2fq.pl Imported from my local bwa repository, the master repository. 2011-01-13 20:52:12 -05:00
utils.c Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
utils.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
xa2multi.pl Bugfix: reverse (complement) sequence and phred string if alternative alignment has different orientation than primary alignment 2011-09-07 14:31:28 +02:00

README

Released packages can be downloaded from SourceForge.net:

  http://sourceforge.net/projects/bio-bwa/files/

Introduction and FAQ are available at:

  http://bio-bwa.sourceforge.net

Manual page at:

  http://bio-bwa.sourceforge.net/bwa.shtml

Mailing list:

  bio-bwa-help@lists.sourceforge.net

To sign up:

  http://sourceforge.net/mail/?group_id=276243

Publications (Open Access):

  http://www.ncbi.nlm.nih.gov/pubmed/20080505
  http://www.ncbi.nlm.nih.gov/pubmed/19451168

Incomplete list of citations (via HubMed.org):

  http://www.hubmed.org/references.cgi?uids=20080505
  http://www.hubmed.org/references.cgi?uids=19451168

Related projects:

  http://pbwa.sourceforge.net/
  http://www.many-core.group.cam.ac.uk/projects/lam.shtml
  http://biodoop-seal.sourceforge.net/
  http://gitorious.org/bwa-cuda