对bwa-mem过程进行加速优化
 
 
 
 
 
 
Go to file
Heng Li deb19593aa r418: use the new mapQ estimator by default 2013-11-02 12:25:53 -04: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 use kthread for multi-threading 2013-11-02 12:13:11 -04:00
NEWS Release bwa-0.7.5a 2013-05-30 16:20:16 -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.md r402: updated NEWS (prepare for the 0.7.5 release) 2013-05-28 11:18:42 -04:00
bamlite.c Removed more dependencies on utils.h 2013-05-03 11:38:48 +01:00
bamlite.h Removed more dependencies on utils.h 2013-05-03 11:38:48 +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 updated README 2013-05-24 20:49:36 -04:00
bwa.c conform to the latest (unpublished) SAM spec 2013-05-22 19:45:16 -04:00
bwa.h move mem_fill_scmat() to bwa.{h,c} 2013-03-05 09:38:12 -05:00
bwamem.c r418: use the new mapQ estimator by default 2013-11-02 12:25:53 -04:00
bwamem.h r413: fixed an issue causing redundant alignment 2013-09-09 11:36:50 -04:00
bwamem_pair.c Check that paired reads have the same QNAME 2013-06-14 13:57:22 +01:00
bwape.c Check that paired reads have the same QNAME 2013-06-14 13:57:22 +01:00
bwase.c Release bwa-0.7.5a 2013-05-30 16:20:16 -04:00
bwase.h removed color-space support 2013-02-12 10:21:17 -05:00
bwaseqio.c Removed more dependencies on utils.h 2013-05-03 11:38:48 +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 Removed more dependencies on utils.h 2013-05-03 11:38:48 +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 r397: multi changes/bugfixes to bwa-backtrack 2013-05-24 16:28:18 -04:00
bwtaln.h r397: multi changes/bugfixes to bwa-backtrack 2013-05-24 16:28:18 -04:00
bwtgap.c r397: multi changes/bugfixes to bwa-backtrack 2013-05-24 16:28:18 -04:00
bwtgap.h r397: multi changes/bugfixes to bwa-backtrack 2013-05-24 16:28:18 -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 r416: removed a line of debugging code 2013-09-12 10:41:43 -04:00
is.c Removed more dependencies on utils.h 2013-05-03 11:38:48 +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 Removed more dependencies on utils.h 2013-05-03 11:38:48 +01:00
kthread.c use kthread for multi-threading 2013-11-02 12:13:11 -04:00
kvec.h Reduce dependency on utils.h - new malloc wrapping scheme. 2013-05-02 15:12:01 +01:00
main.c r418: use the new mapQ estimator by default 2013-11-02 12:25:53 -04: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.md

###Getting started

git clone https://github.com/lh3/bwa.git
cd bwa; make
./bwa index ref.fa
./bwa mem ref.fa read-se.fq.gz | gzip -3 > aln-se.sam.gz
./bwa mem ref.fa read1.fq read2.fq | gzip -3 > aln-pe.sam.gz

###Introduction

BWA is a software package for mapping low-divergent sequences against a large reference genome, such as the human genome. It consists of three algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is designed for Illumina sequence reads up to 100bp, while the rest two for longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar features such as the support of long reads and chimeric alignment, but BWA-MEM, which is the latest, is generally recommended for high-quality queries as it is faster and more accurate. BWA-MEM also has better performance than BWA-backtrack for 70-100bp Illumina reads.

For all the algorithms, BWA first needs to construct the FM-index for the reference genome (the index command). Alignment algorithms are invoked with different sub-commands: aln/samse/sampe for BWA-backtrack, bwasw for BWA-SW and mem for the BWA-MEM algorithm.

###Availability

BWA is released under GPLv3. The latest souce code is freely available at github. Released packages can be downloaded at SourceForge. After you acquire the source code, simply use make to compile and copy the single executable bwa to the destination you want.

###Seeking helps

The detailed usage is described in the man page available together with the source code. You can use man ./bwa.1 to view the man page in a terminal. The HTML version of the man page can be found at the BWA website. If you have questions about BWA, you may sign up the mailing list and then send the questions to bio-bwa-help@sourceforge.net. You may also ask questions in forums such as BioStar and SEQanswers.

###Citing BWA

  • Li H. and Durbin R. (2009) Fast and accurate short read alignment with Burrows-Wheeler transform. Bioinformatics, 25, 1754-1760. [PMID: 19451168]. (if you use the BWA-backtrack algorithm)

  • Li H. and Durbin R. (2010) Fast and accurate long-read alignment with Burrows-Wheeler transform. Bioinformatics, 26, 589-595. [PMID: 20080505]. (if you use the BWA-SW algorithm)

  • Li H. (2013) Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. arXiv:1303.3997v2 [q-bio.GN]. (if you use the BWA-MEM algorithm or the fastmap command, or want to cite the whole BWA package)

Please note that the last reference is a preprint hosted at arXiv.org. I do not have plan to submit it to a peer-reviewed journal in the near future.