Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chadn737
    Senior Member
    • Jan 2009
    • 392

    #1

    Bowtie to BWA parameters

    I use a pipeline that uses bowtie as the aligner, however, due to genome size, I have had to alter this pipeline to use BWA. I need to run BWA in a way that will give me results equivalent as possible to how I run bowtie, but I am not entirely certain how to do this.

    Here are the arguments we use in running bowtie:

    -S -k 1 -m 1 --chunkmbs 3072 --best --strata -o 4 -e 80 -l 20 -n 0

    Anyone have any suggestions on the best way to run BWA?
  • sdriscoll
    I like code
    • Sep 2009
    • 436

    #2
    assuming you mean bwa 'aln' and not 'mem'...

    -S -k1 -m1 --chunkmbs --best and --strata all correspond to how bwa works by default.

    -l 20 in bowtie is -l 20 in bwa.
    -n 0 in bowtie is -k 0 in bwa
    -e will be impossible to mimic because bwa doesn't care about base qualities however you can tinker with -n (in bwa) to adjust the mismatch allowance by either setting a strict limit (-n INT) or an automatic limit based on read length (0 < -n < 1).
    The -o option is not mirrored in bwa.

    The only other difference is bowtie does not report gapped alignments and BWA does. I have tried to figure out how to disable this behavior in BWA thought it seems like the -i option should be able to kill them off (-i is a number of bases from the end of a read limit for indels). In most aligners if you set this kind of setting to a value equal to or greater than your read length it disables gaps.

    If you're talking about using bwa 'mem' then things work a little differently and you actually have much less control.

    FYI it sounds like the new bowtie2 release can handle genomes > 4GB. bowtie2 is easier to configure in a way that mimics the behavior of bowtie 1. to the best of my knowledge you're going to have to change your mismatch allowance rule no matter what because bowtie1 is the only one I know of that uses that -e setting (where sum of base quals of mismatches is used as a limit).

    To match your options with bowtie2 (and produce un-gapped alignments) you can use the following:

    --gbar <read length or larger> --mp A,B --np 1 --score-min L,0,C -L 20 -N 0

    A, B and C should be replaced with values that you can tailor for mismatch allowance. bowtie2 will rely on a minimum alignment score setting for reporting alignments so to control mismatches you have to be specific about mismatch penalties. The --mp option is used to set the penalty for high-qual and low-qual bases. If you wanted a penalty of 2 for high qual and 1 for low qual you'd use --mp 2,1. The --score-min option sets the minimum score relative to your read length. The way I have it written the formula for minimum score will be read_length*-C. So with --score-min L,0,-0.04 and 100bp reads you're allowing a minimum score of -4 which could be divided up into -2 and -1 penalties for high-qual and low-qual mismatches (assuming --mp 2,1).

    By the way I've found bowtie2 to be very good at reproducing correct alignments in simulations. I'd say it's a great upgrade to the performance of bowtie1.
    Last edited by sdriscoll; 02-15-2014, 12:12 AM. Reason: updated knowledge
    /* Shawn Driscoll, Gene Expression Laboratory, Pfaff
    Salk Institute for Biological Studies, La Jolla, CA, USA */

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    20 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    43 views
    0 reactions
    Last Post SEQadmin2  
    Working...