Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • genec
    Member
    • Oct 2009
    • 13

    #1

    bwa not producing any alignments

    I'm trying to use bwa for the first time, and for some reason, even though it runs it's not actually producing any alignments.

    This is what I'm doing:

    Code:
    bwa index -p hg19 -a bwtsw hg19.fasta
    
    INPUT1=reads.1.fastq
    INPUT2=reads.2.fastq
    OUTPUT1=bwa_out.1.sai
    OUTPUT2=bwa_out.2.sai
    OUTPUT3=bwa_out.sam
    
    bwa aln hg19 $INPUT1 > $OUTPUT1
    bwa aln hg19 $INPUT2 > $OUTPUT2
    bwa sampe hg19 $OUTPUT1 $OUTPUT2 $INPUT1 $INPUT2 > $OUTPUT3
    ln -s bwa.sam A.sam
    The input files are paired 76 nucleotide reads. The output consists of all the reads, unmapped:

    Code:
    READ_A 77      *       0       0       *       *       0       0       <sequence not shown>    <quality not shown>
    READ_A 141     *       0       0       *       *       0       0       <sequence not shown>    <quality not shown>
    ...
    Does anyone have any idea of what I'm missing here?

    Thanks


    ** EDIT **
    I forgot to mention that I'm running bwa-0.6.1 on Mac OS 10.6.8
    Last edited by genec; 04-04-2012, 03:00 PM.
  • crf2s
    Junior Member
    • Apr 2012
    • 2

    #2
    same problem

    Hi genec,

    Have you been able to correct your problem? I'm getting the exact same results!!! My sam file is identical to yours.

    Comment

    • genec
      Member
      • Oct 2009
      • 13

      #3
      I ended up running stampy which uses bwa as part of its pipeline -- that works fine. I never went back to spend more time on why bwa wasn't working properly when I tried to use it stand-alone.

      Gene

      Comment

      • sdriscoll
        I like code
        • Sep 2009
        • 436

        #4
        weird. i use bwa to align reads for SNP detection and i haven't had this issue. i'm running an older version though - 0.5.9-r16
        /* Shawn Driscoll, Gene Expression Laboratory, Pfaff
        Salk Institute for Biological Studies, La Jolla, CA, USA */

        Comment

        • crf2s
          Junior Member
          • Apr 2012
          • 2

          #5
          Hi genec,

          So I thought it was odd that you and I were having the same issue and both running bwa 0.6.1 on Mac OS 10.6.8. So, I tried bwa 0.5.9 and it worked fine. The problem in the in bwa aln step in 0.6.1, but not sure why.

          Comment

          • mdimon
            Member
            • Jan 2010
            • 10

            #6
            I've had this problem also. I messed with bwa 0.6.1 for several hours. I did the indexing then aln step then sampe step in a variety of different ways on a couple different references. Each time bwa would act as if everything was fine (no error messages) but the output SAM file showed none of the reads aligned. Strangely, when I downloaded just chr8 from UCSC (as a shorter test case) and repeated the steps exactly, that DID work. Finally I downloaded bwa 0.5.9 and repeated my steps exactly and it's working fine now.

            A few details:
            -- I'm working on Mac OS X
            -- I was testing 100,000 reads against the human genome (I tried the 1000Genomes version and the UCSC version of hg19)
            -- one step that seems to be failing is the "[bwa_aln_core] calculate SA coordinate..." step. For my test case of 100,00 reads, the step took 0.5 seconds when bwa 0.6.1 failed, it took 16 seconds when bwa 0.6.1 worked against chr8 and it took 40 seconds for bwa 0.5.9 to align all 100,000 reads to the whole human genome.
            -- the other difference I noticed is that my indexes seemed to be missing files when I ran the index in bwa 0.6.1. I was getting amb, ann, bwt, pac, and sa files (of the correct sizes) but not rbwt, rpac, or rsa files. To be fair, the chr8 test that worked with bwa 0.6.1 also didn't produce those files so maybe they aren't required anymore? Or maybe my chr8 test was a fluke.

            I can provide more details if it will help anyone.

            Comment

            • sdriscoll
              I like code
              • Sep 2009
              • 436

              #7
              so basically I shouldn't upgrade. just the other day i was pumped to find a new version. guess I'll wait a while...
              /* 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
              23 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
              42 views
              0 reactions
              Last Post SEQadmin2  
              Working...