Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • susanklein
    Senior Member
    • Feb 2014
    • 116

    #1

    Bowtie2 mystery problem: empty fasta file

    Hi,

    until recently I was using Bowtie2 with no problems. Today I am trying to build a new index e.g.

    bowtie2-build test.fna test

    the fasta file was some plasmid sequence but kept giving me the below error after a few mintues 'stalled':


    **********************************************
    fchr[A]: 0
    fchr[C]: 51813
    fchr[G]: 65001
    fchr[T]: 84678
    fchr[$]: 126810
    Exiting Ebwt::buildToDisk()
    Returning from initFromVector
    Wrote 4236774 bytes to primary EBWT file: p.1.bt2
    Wrote 31708 bytes to secondary EBWT file: p.2.bt2
    Re-opening _in1 and _in2 as input streams
    Returning from Ebwt constructor
    Headers:
    len: 126810
    bwtLen: 126811
    sz: 31703
    bwtSz: 31703
    lineRate: 6
    offRate: 4
    offMask: 0xfffffff0
    ftabChars: 10
    eftabLen: 20
    eftabSz: 80
    ftabLen: 1048577
    ftabSz: 4194308
    offsLen: 7926
    offsSz: 31704
    lineSz: 64
    sideSz: 64
    sideBwtSz: 48
    sideBwtLen: 192
    numSides: 661
    numLines: 661
    ebwtTotLen: 42304
    ebwtTotSz: 42304
    color: 0
    reverse: 0
    Total time for call to driver() for forward index: 00:00:00
    Warning: Empty fasta file: 'test.fna'
    Warning: All fasta inputs were empty
    Total time for backward call to driver() for mirror index: 00:00:41
    Error: Encountered internal Bowtie 2 exception (#1)
    Command: bowtie2-build --wrapper basic-0 test.fna p
    Deleting "p.3.bt2" file written during aborted indexing attempt.
    Deleting "p.4.bt2" file written during aborted indexing attempt.
    Deleting "p.1.bt2" file written during aborted indexing attempt.
    Deleting "p.2.bt2" file written during aborted indexing attempt.

    ******************************************************

    I experimented with the file size, and irrespective of the actual sequence used
    my limit is 126811 bases.
    Any longer and the program gives the 'empty fasta file' error. Anyone have any clue what is going on?? previously I have had no problems iwth much bigger files on the same machine (80GB RAM).

    Thanks,

    S
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Try redownloading bowtie2.

    Comment

    • susanklein
      Senior Member
      • Feb 2014
      • 116

      #3
      Originally posted by dpryan View Post
      Try redownloading bowtie2.

      yes, that was my next move. thanks.

      Comment

      • susanklein
        Senior Member
        • Feb 2014
        • 116

        #4
        I just installed the latest version, 2.2.4 from source.

        I still get exactly the same file size error... so this appears to really be another file size bug in bowtie2?

        Does anyone know how I can fix this. I really need to build an index with this (pseudo) genome.

        Btw, bowtie1 gives the same error. So does every other version I have tried a few 10s of bp smaller and the file works. and a few hundred larger and it works again, but the range I need, 204308 bp, no dice.

        Thanks for any help.. getting desperate.

        S.

        Comment

        • susanklein
          Senior Member
          • Feb 2014
          • 116

          #5
          Ok, I thought of a solution.. I've just duplicate the whole sequence in tandem and its worked. I only want to use the reference to filter out reads (keeping the unmapped reads) so this should work just as well..

          S.

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            Can you post the reference that's giving you problems somewhere? Then one of us can try to reproduce it and see if this actually is a bug or is just some local computer problem.

            Comment

            • susanklein
              Senior Member
              • Feb 2014
              • 116

              #7
              ok, I'll post it next chance I get. Thanks.

              Comment

              • susanklein
                Senior Member
                • Feb 2014
                • 116

                #8
                Hi, my file is 203Kb and the forum limit is 19.5 Kb, so I can't upload it

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  google drive, dropbox, there are plenty of options.

                  Comment

                  • susanklein
                    Senior Member
                    • Feb 2014
                    • 116

                    #10
                    ok.. here's the reference file. Just tried it again. Same error:

                    Getting block 8 of 8
                    Reserving size (38308) for bucket
                    Calculating Z arrays
                    Calculating Z arrays time: 00:00:00
                    Entering block accumulator loop:
                    10%
                    20%
                    30%
                    40%
                    50%
                    60%
                    70%
                    80%
                    90%
                    100%
                    Block accumulator loop time: 00:00:00
                    Sorting block of length 18959
                    (Using difference cover)
                    Sorting block time: 00:00:00
                    Returning block of 18960
                    Exited Ebwt loop
                    fchr[A]: 0
                    fchr[C]: 83161
                    fchr[G]: 104600
                    fchr[T]: 136354
                    fchr[$]: 204308
                    Exiting Ebwt::buildToDisk()
                    Returning from initFromVector
                    Wrote 4262634 bytes to primary EBWT file: plasmids.1.bt2
                    Wrote 51084 bytes to secondary EBWT file: plasmids.2.bt2
                    Re-opening _in1 and _in2 as input streams
                    Returning from Ebwt constructor
                    Headers:
                    len: 204308
                    bwtLen: 204309
                    sz: 51077
                    bwtSz: 51078
                    lineRate: 6
                    offRate: 4
                    offMask: 0xfffffff0
                    ftabChars: 10
                    eftabLen: 20
                    eftabSz: 80
                    ftabLen: 1048577
                    ftabSz: 4194308
                    offsLen: 12770
                    offsSz: 51080
                    lineSz: 64
                    sideSz: 64
                    sideBwtSz: 48
                    sideBwtLen: 192
                    numSides: 1065
                    numLines: 1065
                    ebwtTotLen: 68160
                    ebwtTotSz: 68160
                    color: 0
                    reverse: 0
                    Total time for call to driver() for forward index: 00:00:00
                    Warning: Empty fasta file: 'plasmids.fna'
                    Warning: All fasta inputs were empty
                    Total time for backward call to driver() for mirror index: 00:00:00
                    Error: Encountered internal Bowtie 2 exception (#1)
                    Command: bowtie2-build --wrapper basic-0 plasmids.fna plasmids
                    Deleting "plasmids.3.bt2" file written during aborted indexing attempt.
                    Deleting "plasmids.4.bt2" file written during aborted indexing attempt.
                    Deleting "plasmids.1.bt2" file written during aborted indexing attempt.
                    Deleting "plasmids.2.bt2" file written during aborted indexing attempt.
                    Attached Files

                    Comment

                    • susanklein
                      Senior Member
                      • Feb 2014
                      • 116

                      #11
                      .. I just had to gzip it for the forum.

                      Comment

                      • susanklein
                        Senior Member
                        • Feb 2014
                        • 116

                        #12
                        command was simply:

                        bowtie2-build plasmids.fna plasmids

                        (after gunzipping the file obviously)

                        Comment

                        • dpryan
                          Devon Ryan
                          • Jul 2011
                          • 3478

                          #13
                          This is a local computer problem. I had no problem creating the indices.

                          Comment

                          • susanklein
                            Senior Member
                            • Feb 2014
                            • 116

                            #14
                            Ok, thanks.

                            but I can't see why I get this problem. My Debian machine has plenty of memory, no other problems and there is no indication of what is going wrong in the log. Bowtie2 starts building then just seems to stop at a point when it decides the input is empy.. Its very frustrating. And why would it only do it for certain files size??

                            Comment

                            • dpryan
                              Devon Ryan
                              • Jul 2011
                              • 3478

                              #15
                              Are you running out of space on that partition? Aside from that, I haven't a clue.

                              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
                              21 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, Yesterday, 10:48 AM
                              0 responses
                              18 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 10-15-2026, 10:52 AM
                              0 responses
                              36 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...