Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • seq_GA
    Senior Member
    • Feb 2009
    • 124

    BWA error

    I am trying to map solexa pair end reads using BWA.
    1. As the first step, I converted solexa fastq format into sanger fastq using maq.
    Code:
    maq-0.7.1/maq sol2sanger s_5_2_sequence.txt s_5_2_fastq.txt
    2. I build the indices for BWA for human genome
    Code:
    BWA/bwa-0.5.6/bwa index -a bwtsw -p hg18 hg18.fa
    3. Next step is to generate suffice array coordiantes for read1 as below:
    Code:
     BWA/bwa-0.5.6/bwa aln /BWA/Genomes/hg18/hg18.fa s_5_1_fastq.txt > s_5_1.sai
    I am getting error as below.
    Code:
    [bwa_aln] 17bp reads: max_diff = 2
    [bwa_aln] 38bp reads: max_diff = 3
    [bwa_aln] 64bp reads: max_diff = 4
    [bwa_aln] 93bp reads: max_diff = 5
    [bwa_aln] 124bp reads: max_diff = 6
    [bwa_aln] 157bp reads: max_diff = 7
    [bwa_aln] 190bp reads: max_diff = 8
    [bwa_aln] 225bp reads: max_diff = 9
    [bwt_restore_bwt] fail to open file '/BWA/Genomes/hg18/hg18.fa.bwt'. Abort!
    Aborted
    I have all the fasta as well as built indices under the same directory as below:
    hg18.fa
    hg18.pac
    hg18.ann
    hg18.amb
    hg18.rpac
    hg18.bwt
    hg18.rbwt
    hg18.sa
    hg18.rsa

    Anything wrong with this or do I have to move hg18.fa out of this directory? Thanks.
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    If you used "hg18" as your prefix in your "bwa index" step, you should use the same prefix in your "bwa aln" step:
    Code:
     BWA/bwa-0.5.6/bwa aln /BWA/Genomes/hg18/hg18 s_5_1_fastq.txt > s_5_1.sai
    Ideally, you would not specify "-p" (unless of course you use both Illumina and ABI SOLiD data).

    Comment

    • seq_GA
      Senior Member
      • Feb 2009
      • 124

      #3
      Thanks and it works.

      Comment

      • seq_GA
        Senior Member
        • Feb 2009
        • 124

        #4
        For a pair end read, I tried as below:
        Code:
        BWA/bwa-0.5.6/bwa aln /BWA/Genomes/hg18/hg18 s_5_1_fastq.txt > s_5_1.sai
        BWA/bwa-0.5.6/bwa aln /BWA/Genomes/hg18/hg18 s_5_2_fastq.txt > s_5_2.sai
        
        BWA/bwa-0.5.6/bwa sampe BWA/Genomes/hg18/hg18 s_5_1.sai s_5_2.sai s_5_1_fastq.txt s_5_2_fastq.txt > out.sam
        I get the following error:
        Code:
        [bwa_read_seq] 0.0% bases are trimmed.
        [bwa_read_seq] 0.0% bases are trimmed.
        [bwa_sai2sam_pe_core] convert to sequence coordinate... 
         Segmentation fault
        How to resolve the issue? Thanks.
        Last edited by seq_GA; 05-24-2010, 09:26 PM.

        Comment

        • nilshomer
          Nils Homer
          • Nov 2008
          • 1283

          #5
          Originally posted by seq_GA View Post
          For a pair end read, I tried as below:
          Code:
          BWA/bwa-0.5.6/bwa aln /BWA/Genomes/hg18/hg18 s_5_1_fastq.txt > s_5_1.sai
          BWA/bwa-0.5.6/bwa aln /BWA/Genomes/hg18/hg18 s_5_2_fastq.txt > s_5_2.sai
          
          BWA/bwa-0.5.6/bwa sampe BWA/Genomes/hg18/hg18 s_5_1.sai s_5_2.sai s_5_1_fastq.txt s_5_2_fastq.txt > out.sam
          I get the following error:
          Code:
          [bwa_read_seq] 0.0% bases are trimmed.
          [bwa_read_seq] 0.0% bases are trimmed.
          [bwa_sai2sam_pe_core] convert to sequence coordinate...
          How to resolve the issue? Thanks.
          What's the error (the above is a status message)? Did it not finish?

          Comment

          • seq_GA
            Senior Member
            • Feb 2009
            • 124

            #6
            I was trying to edit my post.. You are too fast.. Anyway I get segmentation fault. Thanks.

            Comment

            • nilshomer
              Nils Homer
              • Nov 2008
              • 1283

              #7
              Originally posted by seq_GA View Post
              I was trying to edit my post.. You are too fast.. Anyway I get segmentation fault. Thanks.
              Sounds like a bug. Did you try sending an email to the BWA mailing list or author (lh3 is his handle on seqanswers)?

              Comment

              • seq_GA
                Senior Member
                • Feb 2009
                • 124

                #8
                I am not able to join the mailing list and post because of some error.
                I am trying to contenate all fasta of hg18 as hg18.fa and then build index. Anything wrong in that approach?

                Comment

                • drio
                  Senior Member
                  • Oct 2008
                  • 323

                  #9
                  Originally posted by seq_GA View Post
                  I am not able to join the mailing list and post because of some error.
                  I am trying to contenate all fasta of hg18 as hg18.fa and then build index. Anything wrong in that approach?
                  You are using an old version of bwa. Please update to -svn or get the latest release.
                  -drd

                  Comment

                  • seq_GA
                    Senior Member
                    • Feb 2009
                    • 124

                    #10
                    Hi,
                    Thx for the response. I am using bwa-0.5.6 and I am upgrading to latest version available bwa-0.5.7. How to check out the version from svn? Can you please provide me the link? Thanks.

                    Comment

                    • nilshomer
                      Nils Homer
                      • Nov 2008
                      • 1283

                      #11
                      Originally posted by seq_GA View Post
                      Hi,
                      Thx for the response. I am using bwa-0.5.6 and I am upgrading to latest version available bwa-0.5.7. How to check out the version from svn? Can you please provide me the link? Thanks.
                      Here's the command. Make sure you have subversion installed:
                      Code:
                      svn co http://bio-bwa.svn.sourceforge.net/svnroot/bio-bwa bio-bwa

                      Comment

                      • seq_GA
                        Senior Member
                        • Feb 2009
                        • 124

                        #12
                        Thx for the info.

                        Comment

                        • drio
                          Senior Member
                          • Oct 2008
                          • 323

                          #13
                          Originally posted by seq_GA View Post
                          Hi,
                          Thx for the response. I am using bwa-0.5.6 and I am upgrading to latest version available bwa-0.5.7. How to check out the version from svn? Can you please provide me the link? Thanks.
                          If you want to avoid svn (I'd suggest you don't), from here:



                          click in SF download page. That will take you to the latest release (already binary).

                          ALso, perhaps you can tell Heng how you got to the older version. I think there are some links there that still point to old versions.
                          -drd

                          Comment

                          • seq_GA
                            Senior Member
                            • Feb 2009
                            • 124

                            #14
                            Hi,
                            i get the same error even if I use the build from svn..

                            Comment

                            • drio
                              Senior Member
                              • Oct 2008
                              • 323

                              #15
                              Run your binary via gdb:

                              Code:
                              $ gdb your_bwa_binary
                              .... gdb output ... 
                              > run sampe BWA/Genomes/hg18/hg18 s_5_1.sai s_5_2.sai s_5_1_fastq.txt s_5_2_fastq.txt > out.sam
                              .... gdb output ....
                              > bt
                              And show us the output.
                              -drd

                              Comment

                              Latest Articles

                              Collapse

                              • seqadmin
                                Pathogen Surveillance with Advanced Genomic Tools
                                by seqadmin




                                The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
                                Yesterday, 11:48 AM
                              • seqadmin
                                New Genomics Tools and Methods Shared at AGBT 2025
                                by seqadmin


                                This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

                                The Headliner
                                The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
                                03-03-2025, 01:39 PM
                              • seqadmin
                                Investigating the Gut Microbiome Through Diet and Spatial Biology
                                by seqadmin




                                The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
                                02-24-2025, 06:31 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by seqadmin, 03-20-2025, 05:03 AM
                              0 responses
                              39 views
                              0 reactions
                              Last Post seqadmin  
                              Started by seqadmin, 03-19-2025, 07:27 AM
                              0 responses
                              44 views
                              0 reactions
                              Last Post seqadmin  
                              Started by seqadmin, 03-18-2025, 12:50 PM
                              0 responses
                              35 views
                              0 reactions
                              Last Post seqadmin  
                              Started by seqadmin, 03-03-2025, 01:15 PM
                              0 responses
                              191 views
                              0 reactions
                              Last Post seqadmin  
                              Working...