Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • seq-nerd
    Junior Member
    • Nov 2010
    • 3

    bwa index error

    Hi, I'm having trouble indexing my genome. Here is the command I am using:

    bwa index -a bwtsw /data/Bioinfo/genomes/hg18.fa

    Here is the error:

    [bwa_index] Pack FASTA... [bns_fasta2bntseq] fail to open file '/data/Bioinfo/genomes/hg18.fa.pac'. Abort!
    Aborted

    I have all the various hg18.fa files in the same directory as well:

    hg18.fa
    hg18.pac
    hg18.ann
    hg18.amb
    hg18.rpac
    hg18.bwt
    hg18.rbwt
    hg18.sa
    hg18.rsa

    I don't know what I'm doing wrong. Any suggestions would be appreciated! Thanks!
  • drio
    Senior Member
    • Oct 2008
    • 323

    #2
    try /data/Bioinfo/genomes/hg18.fa instead of /data/Bioinfo/genomes/hg18.fa.pac
    -drd

    Comment

    • Bruins
      Member
      • Feb 2010
      • 78

      #3
      the various files are missing .fa in their extension.

      Comment

      • seq-nerd
        Junior Member
        • Nov 2010
        • 3

        #4
        I do not specify the .pac at the end. I don't know why the command is showing that. I specify only hg18.fa....any ideas?

        Comment

        • seq-nerd
          Junior Member
          • Nov 2010
          • 3

          #5
          the .fa's are i just forgot to type them.....

          Comment

          • kmewis
            Junior Member
            • Sep 2010
            • 7

            #6
            I'm getting an error trying to index the hg19 as well.

            I have all the .fa files from the chromosomes, I concatenated them into hg19.fa. I then run:

            bwa index hg19.fa

            and I get:

            shakti:~/Documents/Bioinformatics/hg19 kmewis$ bwa index hg19.fa
            [bwa_index] Pack FASTA... 70.84 sec
            [bwa_index] Reverse the packed sequence... 38.55 sec
            [bwa_index] Construct BWT for the packed sequence...
            bwa(1791) malloc: *** vm_allocate(size=3095678976) failed (error code=3)
            bwa(1791) malloc: *** error: can't allocate region
            bwa(1791) malloc: *** set a breakpoint in szone_error to debug
            Bus error

            What could this mean? I'm running this on a PowerPC Mac with 16gb of RAM.

            Thanks!

            Comment

            • drio
              Senior Member
              • Oct 2008
              • 323

              #7
              What does file /path/to/bwa tell you? Was bwa generated as a 64 bits binary? It seems bwa failed while allocating memory.
              -drd

              Comment

              • kmewis
                Junior Member
                • Sep 2010
                • 7

                #8
                Originally posted by drio View Post
                What does file /path/to/bwa tell you? Was bwa generated as a 64 bits binary? It seems bwa failed while allocating memory.
                I don't know what file path/to/bwa is supposed to tell me, it says:

                /path/to/bwa: cannot open (/path/to/bwa)

                My bwa executable is in ~/bin.

                How can I tell if it was generated as a 64 bit binary instead of a 32 bit? I just used the makefile that came with bwa 0.5.8a...

                Comment

                • drio
                  Senior Member
                  • Oct 2008
                  • 323

                  #9
                  What do you get when you run?:

                  Code:
                  $ file ~/bin/bwa
                  -drd

                  Comment

                  • kmewis
                    Junior Member
                    • Sep 2010
                    • 7

                    #10
                    Here's the output:

                    shakti:~/Documents/Personal Stuff/Genome kmewis$ file ~/bin/bwa
                    /Users/kmewis/bin/bwa: Mach-O executable ppc

                    I'm using this on a PowerPC, so this is what I'd expect.

                    Comment

                    • drio
                      Senior Member
                      • Oct 2008
                      • 323

                      #11
                      It seems is 32 bits binary. The file command reports 64 bits in a 64bit system. Have you tried any other aligner or tool that requires to address big chunks of memory?

                      Code:
                      $ file ./bwa
                      ./bwa: Mach-O 64-bit executable x86_64
                      Also, it would be useful is you post here the gcc directives you used while compiling (output of make).
                      -drd

                      Comment

                      • kmewis
                        Junior Member
                        • Sep 2010
                        • 7

                        #12
                        I haven't tried any other tools yet, though I've heard that bowtie is another good aligner to use.

                        I just tried the other alignment option, BWT, and it seems to be doing alright now.

                        bwa index -a bwtsw hg19.fa

                        I read that this is for single end reads, which I assume is what the hg19 sequence I downloaded is.

                        Thanks so much for the help though; just knowing that someone out there is willing to help gives me more motivation to try to get it working! I appreciate it. I'm sure I'll have additional questions once I've got this going, but these forums are very helpful.

                        Comment

                        • drio
                          Senior Member
                          • Oct 2008
                          • 323

                          #13
                          Be careful with bwtsw. That's the algorithm for longer reads. It may not be what you are
                          looking for.
                          I
                          think your system is not 64bits. You will have the same issues with other tools. I suggest you spend some time figuring that out.
                          -drd

                          Comment

                          • kmewis
                            Junior Member
                            • Sep 2010
                            • 7

                            #14
                            I don't think my system is 64 bits either; is a 64 bit system required?

                            It's been a couple weeks since I made bwa. It seems to have made properly, it gave me the bwa.exe file as an output. I made a new directory to try to make bwa again to give you the output, but it seems to not be working. Output is:

                            shakti:~/Documents/bwa-0.5.8a kmewis$ makefile
                            /Applications/muscle3.6_src/makefile: line 12: CFLAGS: command not found
                            /Applications/muscle3.6_src/makefile: line 13: LDLIBS: command not found
                            /Applications/muscle3.6_src/makefile: line 16: OBJ: command not found
                            /Applications/muscle3.6_src/makefile: line 17: EXE: command not found
                            RM: =: No such file or directory
                            RM: rm: No such file or directory
                            RM: -f: No such file or directory
                            CP: =: No such file or directory
                            /Applications/muscle3.6_src/makefile: line 22: GPP: command not found
                            /Applications/muscle3.6_src/makefile: line 1: GPP: command not found
                            /Applications/muscle3.6_src/makefile: line 1: CFLAGS: command not found
                            LD: can't open: = (No such file or directory, errno = 2)
                            LD: no object files loaded
                            /Applications/muscle3.6_src/makefile: line 1: GPP: command not found
                            /Applications/muscle3.6_src/makefile: line 1: CFLAGS: command not found
                            powerpc-apple-darwin8-gcc-4.0.1: =: No such file or directory
                            powerpc-apple-darwin8-gcc-4.0.1: warning: '-x c' after last input file has no effect
                            powerpc-apple-darwin8-gcc-4.0.1: no input files
                            /Applications/muscle3.6_src/makefile: line 26: all:: command not found
                            /Applications/muscle3.6_src/makefile: line 1: wildcard: command not found

                            If I understand you correctly, you're saying the indexing of the database is different depending if I'm going to be comparing longer (Sanger, 454) reads instead of short (Illumina) reads? What would be different between the two?

                            Comment

                            • drio
                              Senior Member
                              • Oct 2008
                              • 323

                              #15
                              1. You have to address more than 4G of memory, a 32bit system won't allow you to do that.

                              2. run make not makefile

                              3. Yes. The mapping strategies are different. There are two different papers explaining
                              both algorithms (sort/long reads).
                              -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
                              36 views
                              0 reactions
                              Last Post seqadmin  
                              Started by seqadmin, 03-19-2025, 07:27 AM
                              0 responses
                              43 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
                              190 views
                              0 reactions
                              Last Post seqadmin  
                              Working...