Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • holywoool
    Member
    • Sep 2010
    • 27

    #16
    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 met the same problem while building hg18 index,aborted!However,while coping with single chromosome it worked well.Does this mean insufficient memory?The total memory of the machine is 4GB.The manual says to build hg18 with command bwtsw requires only 2.5GB,then what's wrong with it?
    Any help is appreciated!

    Comment

    • eseq_prak
      Junior Member
      • Jan 2013
      • 2

      #17
      Hello,
      Im having an index error as well. I am trying to index human genome build 37. I am using a Mac OS 10.5.8, 64 bit, 8GB of RAM and 280GB of space.
      When I run the command:
      bwa index -a bwtsw -p human_g1k_v37 human_g1k_v37.fasta

      BWA starts indexing the genome but stops and provides an error message (error code=12)

      BWTIncConstructFromPacked] 630 iterations done. 1740074246 characters processed.
      [BWTIncConstructFromPacked] 640 iterations done. 1778041526 characters processed.
      [BWTIncConstructFromPacked] 650 iterations done. 1811782918 characters processed.
      [BWTIncConstructFromPacked] 660 iterations done. 1841768294 characters processed.
      [BWTIncConstructFromPacked] 670 iterations done. 1868415350 characters processed.
      [BWTIncConstructFromPacked] 680 iterations done. 1892095270 characters processed.
      [bwt_gen] Finished constructing BWT in 688 iterations.
      [bwa_index] 2010.81 seconds elapse.
      [bwa_index] Update BWT... bwa(3627) malloc: *** mmap(size=3101806592) failed (error code=12)
      *** error: can't allocate region
      *** set a breakpoint in malloc_error_break to debug
      Bus error

      Any Help with this will be appreciated.

      Thanks a bunch!

      Comment

      • weirdkid
        Member
        • Jun 2013
        • 10

        #18
        So this seems to be the place for bwa errors, so ill just add mine, any help would be greatly appreciated.

        I downloaded the human genome hg19, and was going to index it, started like this:
        VirtualBox[bwa-0.7.5a] ./bwa index -a bwtsw ../hum_genome/hum_genome19.fa
        [bwa_index] Pack FASTA...
        28.35 sec
        [bwa_index] Construct BWT for the packed sequence...
        [BWTIncCreate] textLength=6191387966, availableWord=447648912
        [BWTIncConstructFromPacked] 10 iterations done. 99999998 characters processed.
        [BWTIncConstructFromPacked] 20 iterations done. 199999998 characters processed.
        [BWTIncConstructFromPacked] 30 iterations done. 299999998 characters processed.
        .
        .
        but at the end i get this
        [BWTIncConstructFromPacked] 680 iterations done. 6177547390 characters processed.
        [bwt_gen] Finished constructing BWT in 687 iterations.
        [bwa_index] 2953.98 seconds elapse.
        [bwa_index] Update BWT... [bwt_bwtupdate_core] Failed to allocate 3095694032 bytes at bwtindex.c line 135: Cannot allocate memory

        any suggestions???
        thanks

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #19
          Originally posted by weirdkid View Post
          So this seems to be the place for bwa errors, so ill just add mine, any help would be greatly appreciated.

          I downloaded the human genome hg19, and was going to index it, started like this:
          VirtualBox[bwa-0.7.5a] ./bwa index -a bwtsw ../hum_genome/hum_genome19.fa
          [bwa_index] Pack FASTA...
          28.35 sec
          [bwa_index] Construct BWT for the packed sequence...
          [BWTIncCreate] textLength=6191387966, availableWord=447648912
          [BWTIncConstructFromPacked] 10 iterations done. 99999998 characters processed.
          [BWTIncConstructFromPacked] 20 iterations done. 199999998 characters processed.
          [BWTIncConstructFromPacked] 30 iterations done. 299999998 characters processed.
          .
          .
          but at the end i get this
          [BWTIncConstructFromPacked] 680 iterations done. 6177547390 characters processed.
          [bwt_gen] Finished constructing BWT in 687 iterations.
          [bwa_index] 2953.98 seconds elapse.
          [bwa_index] Update BWT... [bwt_bwtupdate_core] Failed to allocate 3095694032 bytes at bwtindex.c line 135: Cannot allocate memory

          any suggestions???
          thanks
          How much RAM have you currently allocated to this virtual server? Is your virtual server using a 32-bit or 64-bit OS?

          Comment

          • weirdkid
            Member
            • Jun 2013
            • 10

            #20
            I figured it out, just had to make more RAM for the vm, it was 4gb which i thought would be enough, but it worked when i make it just over 5gb.
            thanks anyway

            Comment

            • mmmm
              Senior Member
              • Jul 2013
              • 131

              #21
              bwa index

              BWA users- I get less than 8 output files when using BWA to index the reference genome- any explanation, please and would this affect BWA alignment?

              bwa index reference.fna

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #22
                Originally posted by mmmm View Post
                BWA users- I get less than 8 output files when using BWA to index the reference genome- any explanation, please and would this affect BWA alignment?

                bwa index reference.fna
                Please post additional information about what OS (32/64-bit) you are using (virtual or real), amount of memory you have. Are there any error messages? I assume "reference.fna" is a multi-fasta file? Which files are you seeing (extensions)?

                Comment

                • mmmm
                  Senior Member
                  • Jul 2013
                  • 131

                  #23
                  the reference.fna is not a multi-fasta files. it is the complete bacterial genome.
                  I can see (.amb, .ann, .bwt, .pac, .sa) but can not see (.rpac, .rsa, .rbwt)

                  I have more than enough space on the server. there is no error message?

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #24
                    That looks right.

                    As of bwa version 0.6.x the forward and reverse indexes were merged, eliminating the .rxxx files.

                    Comment

                    • mmmm
                      Senior Member
                      • Jul 2013
                      • 131

                      #25
                      grateful thanks for clarification. Now, I am trying to detect the gene coverage cin the mapped reads compared to the reference genome using

                      bedtools
                      coverageBed -abam alignment.bam -b gff > coverage.txt

                      (but I have found that no genes have been mapped at all to the reference genome when opened the coverage.txt in a libreoffice)?

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #26
                        See the notes for "genomecov": http://bedtools.readthedocs.org/en/l...genomecov.html

                        Have you sorted your bam file?

                        Comment

                        • mmmm
                          Senior Member
                          • Jul 2013
                          • 131

                          #27
                          I did sort the bam file- should this be ok?

                          bedtools
                          coverageBed -abam sortedbam -b gff > coverage.txt

                          Comment

                          • GenoMax
                            Senior Member
                            • Feb 2008
                            • 7142

                            #28
                            Originally posted by mmmm View Post
                            I did sort the bam file- should this be ok?

                            bedtools
                            coverageBed -abam sortedbam -b gff > coverage.txt
                            That should be ok. Are you not seeing anything in the coverage.txt file?

                            Do you want to try "multicov" along with a BED format file for the genes? http://bedtools.readthedocs.org/en/l.../multicov.html

                            Comment

                            • mmmm
                              Senior Member
                              • Jul 2013
                              • 131

                              #29
                              the coverage.txt file contains genes annotations (gff) but none of my aligned reads are covered by these annotated genes; I get (0) in the last column of the coverage.txt file for all genes

                              Comment

                              • GenoMax
                                Senior Member
                                • Feb 2008
                                • 7142

                                #30
                                The "gff" in your command line above is the actual GFF format file for the annotations, correct (here if the format reference for GFF3: http://www.sequenceontology.org/gff3.shtml And the file actually matches the original genome used for alignment?

                                Have you checked your aligned bam file (using IGV for example) to make sure that the alignments look good?
                                Last edited by GenoMax; 12-04-2013, 04:24 AM.

                                Comment

                                Latest Articles

                                Collapse

                                • SEQadmin2
                                  Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                                  by SEQadmin2



                                  Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                                  There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                                  Yesterday, 05:17 AM
                                • GATTACAT
                                  Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                                  by GATTACAT
                                  Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                                  07-01-2026, 11:43 AM
                                • SEQadmin2
                                  Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                                  by SEQadmin2


                                  I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                                  Here are nine questions we think about, in roughly the order they matter, before...
                                  06-18-2026, 07:11 AM

                                ad_right_rmr

                                Collapse

                                News

                                Collapse

                                Topics Statistics Last Post
                                Started by SEQadmin2, Yesterday, 10:08 AM
                                0 responses
                                6 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-07-2026, 11:05 AM
                                0 responses
                                8 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-02-2026, 11:08 AM
                                0 responses
                                31 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 06-30-2026, 05:37 AM
                                0 responses
                                29 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...