bwa
Map DNA sequences against a reference genome
TLDR
Index the reference genome
SYNOPSIS
bwa command [options] [arguments]
DESCRIPTION
bwa (Burrows-Wheeler Aligner) is a software package for mapping low-divergent DNA sequences against a large reference genome, such as the human genome. It uses the Burrows-Wheeler Transform to build an index of the reference.
The mem algorithm is recommended for most applications, supporting reads from 70bp to a few megabases and providing accurate mapping.
PARAMETERS
-t threads
Number of CPU threads-M
Mark shorter splits as secondary (Picard compatible)-C
Append FASTA/Q comment to output-R string
Read group header line-o file
Output file name
SUBCOMMANDS
index
Build index from reference genomemem
Map reads using BWA-MEM algorithmaln
Align reads (older algorithm)samse/sampe
Generate SAM from aln output
CAVEATS
Indexing large genomes requires significant memory and time. Output is uncompressed SAM by default; pipe through gzip for storage. Quality of results depends on read quality and reference completeness.
HISTORY
BWA was developed by Heng Li and first published in 2009. The MEM algorithm was introduced in 2013 and has become the preferred method for most mapping tasks.
