Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Java problem with BBtool randomreads

    When I try to run the BBTool randomreads with any input, I am presented with the following Java exception:

    Set genScaffoldInfo=true
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -17
    at dna.ChromosomeArray.set(ChromosomeArray.java:181)
    at dna.ChromosomeArray.set(ChromosomeArray.java:165)
    at dna.FastaToChromArrays2.makeNextChrom(FastaToChromArrays2.java:478)
    at dna.FastaToChromArrays2.makeChroms(FastaToChromArrays2.java:345)
    at dna.FastaToChromArrays2.main2(FastaToChromArrays2.java:154)
    at align2.RandomReads3.writeRef(RandomReads3.java:554)
    at align2.RandomReads3.main(RandomReads3.java:338)

    I then have to terminate the process with ctrl+c.

    This problem is not present in any other BBTool that I have used. Can anyone help with this or suggest an alternative tool for generating synthetic reads with the same level of control offered by randomreads?

    Thanks in advance.

    Kara

  • #2
    What kind of input/output are you using for randomreads.sh (fasta/fastq)? Can you provide the command line you are using?

    Comment


    • #3
      That output was generated with the following:

      randomreads.sh ref=ref.fasta out=reads1.fasta length=150 reads=100

      If I use fastq as an output or play around with any other parameters I always get the same exception.

      Comment


      • #4
        With BBMap (v.35.59) there is no problem executing the command you give above.

        Only time randomreads.sh does not produce an output is if the input fasta is very short (one sequence of ~30 bp) but I don't see any error, the program just hangs.

        What version of BBMap are you using?

        Comment


        • #5
          I am using BBMap version 35.14. The fasta file input is 42Kb in size so that shouldn't be the problem. I am going to reinstall java and then try again to see if that makes any difference.

          Comment


          • #6
            Hi Kara,

            It looks like the problem here is a strange character in your fasta file that is not a standard ASCII character. It might character 239:

            Code:
            ´
            You can try doing a search-and-replace in a text editor, but extended ASCII symbols are not well defined so you may need to look at the file manually. I've fixed this so that it will not crash when given extended ASCII in fasta files; I'll upload the fixed version (35.74) later today. However, it's not a symbol that should appear in the nucleotide sequences anyway, so there's a chance that your file is corrupt.

            Comment


            • #7
              Hi Brian,

              You are indeed right about the problem being due to an unusual character. I simplified the header to remove the non-standard characters and things are working perfectly!

              Thanks very much!

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Strategies for Sequencing Challenging Samples
                by seqadmin


                Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                03-22-2024, 06:39 AM
              • seqadmin
                Techniques and Challenges in Conservation Genomics
                by seqadmin



                The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

                Avian Conservation
                Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
                03-08-2024, 10:41 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Yesterday, 06:37 PM
              0 responses
              8 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, Yesterday, 06:07 PM
              0 responses
              8 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 03-22-2024, 10:03 AM
              0 responses
              49 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 03-21-2024, 07:32 AM
              0 responses
              67 views
              0 likes
              Last Post seqadmin  
              Working...
              X