Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • KaraJC
    Junior Member
    • Nov 2015
    • 5

    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
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

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

    Comment

    • KaraJC
      Junior Member
      • Nov 2015
      • 5

      #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

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #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

        • KaraJC
          Junior Member
          • Nov 2015
          • 5

          #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

          • Brian Bushnell
            Super Moderator
            • Jan 2014
            • 2709

            #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

            • KaraJC
              Junior Member
              • Nov 2015
              • 5

              #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

              • SEQadmin2
                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                by SEQadmin2


                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                ...
                06-02-2026, 10:05 AM
              • SEQadmin2
                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                by SEQadmin2


                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                Introduction

                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                05-22-2026, 06:42 AM
              • SEQadmin2
                Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                by SEQadmin2

                Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                05-06-2026, 09:04 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 08:59 AM
              0 responses
              8 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 12:03 PM
              0 responses
              21 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 11:40 AM
              0 responses
              17 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 05-28-2026, 11:40 AM
              0 responses
              29 views
              0 reactions
              Last Post SEQadmin2  
              Working...