Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • kgulukota
    Member
    • Oct 2011
    • 30

    Bowtie2 chokes on -a flag?

    I am working on project where I need to get ALL hits to each read - defined fairly stringently. I tried to use bowtie2 with a command like this:

    bowtie2 --threads 20 --reorder --score-min L,-0.5,-0.2 -a -x trdb -U R15.fq -S 15_tr.sam

    My reads are 100 bp long hence the parameters for match are fairly stringent here. I expected that bowtie2 might take a while but will complete the job. Without the '-a' flag the job completed in about 30 mins. But with -a, I was waiting nearly 3 days and still undone.

    To judge from the sam file, bowtie2 completed the alignments for about 70K of the reads reads (in ~ 10 mins) and then kept spinning with no writes to the sam file thereafter.

    I know bowtie2 manual says it is not optimized for the -a flag. But this looks much worse than unoptimized. Its unusable. Anyone have experience with this?

    Thanks,
    Gulu
    Kamalakar Gulukota,
    Director,
    Center for Bioinformatics and Computational Biology
    NorthShore University Health System, [email protected]
  • gringer
    David Eccles (gringer)
    • May 2011
    • 845

    #2
    Yep, same results from us. The problem is that bowtie2 handles inserts, misreads, and (in local mode) read clipping. That's a lot of errors that take a much longer time to account for.

    What you may be able to try to speed things up is to get bowtie2 to dump all the multiple-mapped reads to another file (e.g. with '-k 2'), and only do the '-a' on those reads.

    Comment

    • kgulukota
      Member
      • Oct 2011
      • 30

      #3
      Originally posted by gringer View Post
      What you may be able to try to speed things up is to get bowtie2 to dump all the multiple-mapped reads to another file (e.g. with '-k 2'), and only do the '-a' on those reads.
      Thank gringer! I will try that.
      Kamalakar Gulukota,
      Director,
      Center for Bioinformatics and Computational Biology
      NorthShore University Health System, [email protected]

      Comment

      • kgulukota
        Member
        • Oct 2011
        • 30

        #4
        An update:
        Yes, bowtie2 does have a big issue with the '-a' flag. I ran bowtie2 on about 8.8 million reads. Following gringer's advice I first ran it with a generous '-k 50' option i.e:

        bowtie2 --score-min L,-0.5,-0.2 -k 50 -x trdb -U rd.fq -S k50.sam

        This ran and finished in about 20 mins or less. I found that 6,594 of the reads had 50 hits. Next, I created a new fastq file with just these 50's ("The50s.fq") and re-ran bowtie2 with the -a flag:

        bowtie2 --score-min L,-0.5,-0.2 -a -x trdb -U The50s.fq -S 50s_tr.sam

        Its been running for over 2 hours with no results being output. Overall, beware of the '-a' flag in bowtie2.

        Now, the 6594 sequences do appear a bit repetitive - I'll strengthen my filtering upstream. So, its understandable why bowtie2 is choking. Still, it should be possible to put in some defenses against this flailing, right? So, if anyone active in bowtie2 development sees this, I have a request:

        please have bowtie search till a Max_K parameter and come back more quickly with a message like "6,594 sequences had more than Max_K (1000) hits each - they are being ignored. See filtered.fastq for these sequences".
        Kamalakar Gulukota,
        Director,
        Center for Bioinformatics and Computational Biology
        NorthShore University Health System, [email protected]

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
          by SEQadmin2


          Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

          The systematic characterization of the human proteome has
          ...
          Today, 11:48 AM
        • SEQadmin2
          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by SEQadmin2



          Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
          ...
          07-09-2026, 11:10 AM
        • SEQadmin2
          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
          by SEQadmin2



          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
          07-08-2026, 05:17 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Today, 11:10 AM
        0 responses
        8 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-13-2026, 10:26 AM
        0 responses
        30 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-09-2026, 10:04 AM
        0 responses
        38 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-08-2026, 10:08 AM
        0 responses
        25 views
        0 reactions
        Last Post SEQadmin2  
        Working...