Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cz0013
    Junior Member
    • Jul 2014
    • 8

    #1

    Bowtie2-build error writing to reference index file

    I have been trying to make an index file for bowtie2.

    What I type is:
    bowtie2-build sequence.fasta sequence

    Then I get this error:
    Settings:
    Output files: "sequence.*.bt2"
    Line rate: 6 (line is 64 bytes)
    Lines per side: 1 (side is 64 bytes)
    Offset rate: 4 (one in 16)
    FTable chars: 10
    Strings: unpacked
    Max bucket size: default
    Max bucket size, sqrt multiplier: default
    Max bucket size, len divisor: 4
    Difference-cover sample period: 1024
    Endianness: little
    Actual local endianness: little
    Sanity checking: disabled
    Assertions: disabled
    Random seed: 0
    Sizeofs: void*:8, int:4, long:8, size_t:8
    Input files DNA, FASTA:
    sequence.fasta
    Building a SMALL index
    Reading reference sizes
    Error writing to the reference index file (.4.ebwt)
    Time reading reference sizes: 00:00:01
    Total time for call to driver() for forward index: 00:00:01
    Error: Encountered internal Bowtie 2 exception (#1)
    Command: bowtie2-build --wrapper basic-0 sequence.fasta sequence
    Deleting "sequence.3.bt2" file written during aborted indexing attempt.
    Deleting "sequence.4.bt2" file written during aborted indexing attempt.

    If anyone knows what is causing this error help would be greatly appreciated.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    That is a bit odd since you seem to have write permissions in the directory where you are running this command (is that correct)? What kind (length, multifasta)) of reference is in sequence.fasta?

    Are you using the latest bowtie2 package?

    Comment

    • cz0013
      Junior Member
      • Jul 2014
      • 8

      #3
      I do have write permissions, and I should be using the latest bowtie2 package. sequence.fasta is the the SL2.5 release of the tomato genome.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Can you try using a different "base name" for the index files (e.g. tomato instead of sequence)? One additional thing to try would be to force bowtie to create a "large" index by adding --large-index to command line.

        Comment

        • cz0013
          Junior Member
          • Jul 2014
          • 8

          #5
          I am now running like this:
          bowtie2 --large-index SL2.50_genome.fasta SL2.50_genome

          But now I get this error message:
          bowtie2 --large-index SL2.50_genome.fasta SL2.50_genome
          (ERR): Cannot find the large index 0.1.bt2l
          Exiting now ...

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            You need to do "bowtie2-build" first before you can use the index for alignments with bowtie2. Did the indexing part work?

            Are you now ready to do the alignment (looks like it)?

            Comment

            • cz0013
              Junior Member
              • Jul 2014
              • 8

              #7
              That is my bad. I should have been running bowtie2-build. I ran bowtie2 without realizing that it was the wrong command.I ran it again this time actually using bowtie2-build, and I ran into the same problem that I was having before. So I haven't gotten the indexing part to work.
              Settings:
              Output files: "SL2.50_genome.*.bt2l"
              Line rate: 7 (line is 128 bytes)
              Lines per side: 1 (side is 128 bytes)
              Offset rate: 4 (one in 16)
              FTable chars: 10
              Strings: unpacked
              Max bucket size: default
              Max bucket size, sqrt multiplier: default
              Max bucket size, len divisor: 4
              Difference-cover sample period: 1024
              Endianness: little
              Actual local endianness: little
              Sanity checking: disabled
              Assertions: disabled
              Random seed: 0
              Sizeofs: void*:8, int:4, long:8, size_t:8
              Input files DNA, FASTA:
              SL2.50_genome.fasta
              Building a LARGE index
              Reading reference sizes
              Error writing to the reference index file (.4.ebwt)
              Time reading reference sizes: 00:00:01
              Total time for call to driver() for forward index: 00:00:01
              Error: Encountered internal Bowtie 2 exception (#1)
              Command: bowtie2-build --wrapper basic-0 SL2.50_genome.fasta SL2.50_genome
              Deleting "SL2.50_genome.3.bt2l" file written during aborted indexing attempt.
              Deleting "SL2.50_genome.4.bt2l" file written during aborted indexing attempt.

              Comment

              • westerman
                Rick Westerman
                • Jun 2008
                • 1104

                #8
                Is it possible that you are running out of disk space? A quick and dirty way of checking is to start up the indexing process and in another window do something like:

                for i in `seq 1 20`; do df -h; sleep 60

                That way you will get 20 snapshots of disk space usage at 1 minute intervals. You should see the disk usage go up one one of your disks but, we hope, not to the limit.

                Comment

                • cz0013
                  Junior Member
                  • Jul 2014
                  • 8

                  #9
                  I think that was the problem. The server that I was running it on is out of space. I switched servers and now it is working. Thanks for the help guys, much appreciated.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                    by SEQadmin2



                    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                    ...
                    10-14-2026, 09:55 AM
                  • SEQadmin2
                    New Genomics Technologies Take Aim at Long-Standing Limits
                    by SEQadmin2


                    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                    ...
                    09-28-2026, 10:25 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, Yesterday, 11:13 AM
                  0 responses
                  16 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, Yesterday, 10:48 AM
                  0 responses
                  15 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-15-2026, 10:52 AM
                  0 responses
                  35 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  42 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...