Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • rwarren
    Junior Member
    • Aug 2008
    • 5

    bwa sampe error ... bad database format?

    Hi,
    I am running bwa 0.5.9 on a custom, indexed, sequence database comprised of various genbank sequences.

    When I run:

    bwa aln gb.fa x_1.fq > a.sai
    bwa aln gb.fa x_2.fq > b.sai
    bwa sampe gb.fa a.sai b.sai x_1.fq x_2.fq > gb.sam

    bwa crashes on bwa sampe with:

    [bns_restore_core] fail to open file ' VirtualSequence=""></div><div id="viewercontent13" class="seq gbff" val="381286149" SequenceSize="29462" VirtualSequence=""></div><div id="viewercontent14" class="seq gbff" val="381283770" SequenceSize="35021" VirtualSequence=""></div><div id="viewercontent15" class="seq gbff" val="381286161" SequenceSize="29364" VirtualSequence=""></div><div id="viewercontent16" class="seq gbff" val="381282985" SequenceSize="9499" VirtualSequence=""></div><div id="viewercontent17" class="seq gbff" val="381216220" SequenceSize="16093" VirtualSequence=""></div><div id="viewercontent18" class="seq gbff" val="381147283" SequenceSize="5929" VirtualSequence=""></div><div id="viewercontent19" class="seq gbff" val="380307325" SequenceSize="10631" VirtualSequence=""></div><div id="viewercontent20" class="seq gbff" val="380862749" SequenceSize="6588" VirtualSequence=""></div>'. Abort!
    ./test.sh: line 3: 25171 Aborted bwa sampe gb.fa a.sai b.sai x_1.fq x_2.fq > gb.sam

    The 9GB gb.fa database file was indexed with default, as per the instructions provided and no errors were returned from the indexing.

    When I run the same sets of bwa commands using a different, human genome database, there are no errors.

    I was wondering whether characters others than ACGTN in the seq. db would make bwa sampe crash (there are such characters in the gb.fa)? Has anyone seen an error like this?

    Thanks for your help
    Rene
  • xied75
    Senior Member
    • Feb 2012
    • 129

    #2
    That block looks like XML? Is that really a FA file?

    Comment

    • rwarren
      Junior Member
      • Aug 2008
      • 5

      #3
      it is, now reformatting to remove any offending characters.
      The interesting thing about this error is that, usually, when bwa returns a fail to open file rror, the file is in quotation, not some XML block:

      eg.
      [bns_restore_core] fail to open file '/projects/02/rwarren/nt_db/2012/humanNCRNA.fa.fa.ann'. Abort!
      ./testdb.sh: line 3: 30215 Aborted /home/pubseq/BioSw/bwa/bwa-0.5.9/bwa sampe /projects/02/rwarren/nt_db/2012/humanNCRNA.fa.fa 1.sai 2.sai unmappedSorted.bam unmappedSorted.bam > test.sam

      bizarre.

      Comment

      • rwarren
        Junior Member
        • Aug 2008
        • 5

        #4
        i confirm that junk in the custom sequence database generated the error.
        issue resolved.

        Comment

        • xied75
          Senior Member
          • Feb 2012
          • 129

          #5
          I just did a test, I modified a .fasta with two illegal char 'R', 'S', and then run INDEX, ALN, and SAMPE, everything still works, although output SAM files are different. So BWA should be able to cope with illegal characters.

          And if you open the .amb file, you should see the illegal chars listed there, in my case:

          249240584 1 R
          249240585 1 S

          So if your fasta is big, and really messed with many illegal chars, then your .amb file should be very very big.

          Besides, your error msg is BWA complaining a file can't be opened, at this stage, .bwt, .sa, and .pac are not opened yet, so having illegal chars shouldn't be the reason for this error.

          Comment

          Latest Articles

          Collapse

          • 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
          17 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-19-2025, 07:27 AM
          0 responses
          18 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-18-2025, 12:50 PM
          0 responses
          19 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-03-2025, 01:15 PM
          0 responses
          185 views
          0 reactions
          Last Post seqadmin  
          Working...