Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ArtVandelay
    Junior Member
    • Sep 2017
    • 2

    IndexOutOfBoundsException in BBTool's kmercountexact.sh

    I'm trying to use BBTool's kmercountexact.sh (version 37.50) to produce a sketch from a test fasta file:
    kmercountexact.sh in=test1.fasta sketch=test1.sketch mincount=3 -overwrite=true

    and I'm getting an IndexOutOfBoundsException. Does anyone have any idea of what I can do differently or how I may otherwise get help?

    Here is the full output:

    > kmercountexact.sh in=test1.fasta sketch=test1.sketch mincount=3 -overwrite=true
    Max memory cannot be determined. Attempting to use 3200 MB.
    If this fails, please add the -Xmx flag (e.g. -Xmx24g) to your command,
    or run this program qsubbed or from a qlogin session on Genepool, or set ulimit to an appropriate value.
    java -ea -Xmx3200m -Xms3200m -cp /Users/droe/bin/bbmap/current/ jgi.KmerCountExact in=test1.fasta sketch=test1.sketch mincount=3 -overwrite=true
    Executing jgi.KmerCountExact [in=test1.fasta, sketch=test1.sketch, mincount=3, -overwrite=true]

    Initial:
    Memory: max=3215m, free=3182m, used=33m

    Executing kmer.KmerTableSet [in=test1.fasta, sketch=test1.sketch, mincount=3, -overwrite=true]

    Initial:
    Ways=31, initialSize=128000, prefilter=f, prealloc=f
    Memory: max=3215m, free=3182m, used=33m

    Estimated kmer capacity: 121523321
    After table allocation:
    Memory: max=3215m, free=3111m, used=104m

    After loading:
    Memory: max=3215m, free=3060m, used=155m

    Input: 1 reads 1000 bases.

    For K=31
    Unique Kmers: 970
    Load Time: 0.059 seconds.
    Generating sketch.
    Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:653)
    at java.util.ArrayList.get(ArrayList.java:429)
    at sketch.SketchTool.toSketch(SketchTool.java:327)
    at sketch.SketchTool.toSketch_MT(SketchTool.java:225)
    at sketch.SketchTool.toSketch(SketchTool.java:167)
    at jgi.KmerCountExact.makeSketch(KmerCountExact.java:360)
    at jgi.KmerCountExact.process(KmerCountExact.java:264)
    at jgi.KmerCountExact.main(KmerCountExact.java:58)
    Attached Files
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    I just tested and was able to replicate this... it's due to the "mincount=3" flag. That file has no kmers that occur at least 3 times, so it ends up trying to make a size-0 sketch, which isn't allowed. If you take away "mincount=3" it works fine. I'll clarify that error message.

    Comment

    • ArtVandelay
      Junior Member
      • Sep 2017
      • 2

      #3
      Makes sense. Thank you!

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 10:26 AM
      0 responses
      13 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      26 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      33 views
      0 reactions
      Last Post SEQadmin2  
      Working...