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
                                Non-Coding RNA Research and Technologies
                                by seqadmin




                                Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

                                Nobel Prize for MicroRNA Discovery
                                This week,...
                                10-07-2024, 08:07 AM
                              • seqadmin
                                Recent Developments in Metagenomics
                                by seqadmin





                                Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
                                09-23-2024, 06:35 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by seqadmin, 10-02-2024, 04:51 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 10-01-2024, 07:10 AM
                              0 responses
                              111 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 09-30-2024, 08:33 AM
                              1 response
                              114 views
                              0 likes
                              Last Post EmiTom
                              by EmiTom
                               
                              Started by seqadmin, 09-26-2024, 12:57 PM
                              0 responses
                              20 views
                              0 likes
                              Last Post seqadmin  
                              Working...
                              X