Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bwa aln fails on mac

    Has anyone had problems running bwa on a mac? Building from source using make compiles fine. Running aln gives no errors either. But the .sai file ends up being full of 0's.

    ./bwa aln ~/data_files/reference/ucsc.hg19.fasta ~/data_files/test/test_1.fastq > ~/data_files/test/tmp/test_1.sai
    [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
    [bwa_aln_core] calculate SA coordinate... 0.19 sec
    [bwa_aln_core] write to the disk... 0.00 sec
    [bwa_aln_core] 36921 sequences have been processed.
    [main] Version: 0.6.2-r131
    [main] CMD: ./bwa aln /Users/jason/data_files/reference/ucsc.hg19.fasta /Users/jason/data_files/test/test_1.fastq
    [main] Real time: 0.310 sec; CPU: 0.312 sec

  • #2
    I experienced the same problem. BWA 0.6.2 works on our Linux cluster, but not on my Mac Pro. Have you solved the problem?

    Comment


    • #3
      I have not. Works fine on Linux.

      Comment


      • #4
        Are you using indexes that were built on the Mac? If not, it may be useful to try and recreate the indexes on the Mac to see if that helps.

        Comment


        • #5
          I did build the index on Mac
          bwa index -a bwtsw genome.fa
          which produced the following files:
          genome.fa.ann genome.fa.pac genome.fa.amb genome.fa.bwt genome.fa.sa

          bwa failed to calculate SA coordinate. Note it only took 0.75 sec.

          Software/bwa-0.6.2/bwa aln Genome/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/version0.6.2/genome.fa ERR001014_1.fastq > ERR001014_1.sai
          [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
          [bwa_aln_core] calculate SA coordinate... 0.75 sec
          [bwa_aln_core] write to the disk... 0.02 sec
          [bwa_aln_core] 250000 sequences have been processed.
          [main] Version: 0.6.2-r126
          [main] CMD:Software/bwa-0.6.2/bwa aln Genome/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/version0.6.2/genome.fa ERR001014_1.fastq
          [main] Real time: 1.118 sec; CPU: 1.114 sec

          Comment


          • #6
            Originally posted by quincymo View Post
            I did build the index on Mac
            bwa index -a bwtsw genome.fa
            which produced the following files:
            genome.fa.ann genome.fa.pac genome.fa.amb genome.fa.bwt genome.fa.sa
            File sizes for the index files look ok?
            e.g. .sa file should be about 1.5G and .bwt 2.9G.

            Comment


            • #7
              I think it looks OK.

              2.9G genome.fa
              8.0K genome.fa.amb
              4.0K genome.fa.ann
              2.9G genome.fa.bwt
              738M genome.fa.pac
              1.4G genome.fa.sa
              8.0G total

              Comment


              • #8
                bwa 0.5.9 works fine on my Mac, but 0.6.x do not work.

                Comment


                • #9
                  Originally posted by quincymo View Post
                  I think it looks OK.

                  2.9G genome.fa
                  8.0K genome.fa.amb
                  4.0K genome.fa.ann
                  2.9G genome.fa.bwt
                  738M genome.fa.pac
                  1.4G genome.fa.sa
                  8.0G total
                  That looks good.

                  Is the alignment failing for all files or just one file?

                  Comment


                  • #10
                    It failed for all the files I tested. But bwa 0.5.9 worked fine on the same files.

                    Comment


                    • #11
                      Originally posted by quincymo View Post
                      It failed for all the files I tested. But bwa 0.5.9 worked fine on the same files.
                      Perhaps someone else on the forum can chime in (do not have a Mac handy to test now) if they are successfully using bwa (v.0.6.2) on OS X. Please indicate exact OS X version.

                      Comment


                      • #12
                        Thanks for your replies.

                        My Mac OS version is Mac OS X Lion 10.7.5.

                        Comment


                        • #13
                          I am also having the same problem running the current bwa release (0.6.2) on Mac OSX Moutain Lion (10.8.2). All indexes were made on the Mac using bwa.

                          Using the older version of bwa (0.5.9) everything works fine

                          Comment


                          • #14
                            Uhm, by the way, I have started running the latest bwa on my Macbook (Mac OSX 10.7.4; Lion) yesterday.

                            Runs fine - the first round of paired end alignment is complete, the program ran right through and processed my 60million odd reads.

                            The only issues I encountered were with bwa having problems to infer the insert size, but I suspect that is due to either a problem with my fastq files or my ineptitude at selecting the right settings.

                            The program itself works and is lightning-fast even on my crappy machine!

                            Edit: I actually had problems with directing bwa to the file directories. No idea why, but even though the path to the files WAS DEFINITELY right, bwa failed to open the files. So, I have copied everything to my home directory and run from there --> no more problems.
                            Last edited by TabeaK; 11-09-2012, 02:08 AM.

                            Comment


                            • #15
                              It 'worked' lightening fast for me too, except when I looked at the resulting BAM files none of the reads were aligned properly

                              Try running samtools flagstat to check the number of mapped reads

                              Comment

                              Latest Articles

                              Collapse

                              • seqadmin
                                Strategies for Sequencing Challenging Samples
                                by seqadmin


                                Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                                03-22-2024, 06:39 AM
                              • seqadmin
                                Techniques and Challenges in Conservation Genomics
                                by seqadmin



                                The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

                                Avian Conservation
                                Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
                                03-08-2024, 10:41 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by seqadmin, 03-27-2024, 06:37 PM
                              0 responses
                              12 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 03-27-2024, 06:07 PM
                              0 responses
                              11 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 03-22-2024, 10:03 AM
                              0 responses
                              53 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 03-21-2024, 07:32 AM
                              0 responses
                              69 views
                              0 likes
                              Last Post seqadmin  
                              Working...
                              X