This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Inconsistency between alignment rates of BWA-mem and bowtie2

I have been trying to align a few bacterial species with the human genome to check the alignment rate (using BWA-mem and Bowtie2). However, both tools give very different alignment rates. While using bowtie2 all species have an overall alignment rate < 1% whereas while using bwa-mem, the alignment rates are very high (10% - 30%). Does anyone know why this is happening?

bowtie ngs bwa

align a few bacterial species with the human genome

What exactly does this mean? What form is the query data in? Fastq reads or fasta genomes?

I am using fastq reads of bacterial species against human genome reference

Curious as to the reason behind doing this? Trying to align data to non-homologous reference is going to produce alignments that may be found simply due to chance sequence similarity in short reads.

You also need to pay attention to default parameters that allow certain number of mismatches (likely different for the two programs). This will affect results as you are observing.

Actually, I am trying to find if my samples have any human contamination. That's why I thought of aligning it with a non-homologous reference. As for the parameters, I have used the default parameters for both tools

Better option then would be try and bin the reads using the human genome. You may want to look at removehuman from BBMap suite.

1 answer

Bowtie2, by default, performs global alignment, and BWA-MEM only does local. To compare mapping rates, you should first decide if local makes sense and, if so, run Bowtie2 with the local flag (and appropriate parameters).

Here are some presets according to the help:

Presets:                 Same as:
  For --end-to-end:
   --very-fast            -D 5 -R 1 -N 0 -L 22 -i S,0,2.50
   --fast                 -D 10 -R 2 -N 0 -L 22 -i S,0,2.50
   --sensitive            -D 15 -R 2 -N 0 -L 22 -i S,1,1.15 (default)
   --very-sensitive       -D 20 -R 3 -N 0 -L 20 -i S,1,0.50

  For --local:
   --very-fast-local      -D 5 -R 1 -N 0 -L 25 -i S,1,2.00
   --fast-local           -D 10 -R 2 -N 0 -L 22 -i S,1,1.75
   --sensitive-local      -D 15 -R 2 -N 0 -L 20 -i S,1,0.75 (default)
   --very-sensitive-local -D 20 -R 3 -N 0 -L 20 -i S,1,0.50

Log in to answer this question.