Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
Introducing CrossBlock, a BBTool for removing cross-contamination Brian Bushnell Bioinformatics 10 03-03-2017 11:23 PM
Java problem with BBtool randomreads KaraJC Bioinformatics 6 12-01-2015 02:50 PM

Thread Tools
Old 09-11-2017, 05:54 PM   #1
Junior Member
Location: United States

Join Date: Sep 2017
Posts: 2
Default IndexOutOfBoundsException in BBTool's

I'm trying to use BBTool's (version 37.50) to produce a sketch from a test fasta file: 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:

> 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]

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

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

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(
at java.util.ArrayList.get(
at sketch.SketchTool.toSketch(
at sketch.SketchTool.toSketch_MT(
at sketch.SketchTool.toSketch(
at jgi.KmerCountExact.makeSketch(
at jgi.KmerCountExact.process(
at jgi.KmerCountExact.main(
Attached Files
File Type: txt test1.txt (1,007 Bytes, 3 views)
ArtVandelay is offline   Reply With Quote
Old 09-12-2017, 01:53 PM   #2
Brian Bushnell
Super Moderator
Location: Walnut Creek, CA

Join Date: Jan 2014
Posts: 2,707

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.
Brian Bushnell is offline   Reply With Quote
Old 09-12-2017, 06:15 PM   #3
Junior Member
Location: United States

Join Date: Sep 2017
Posts: 2

Makes sense. Thank you!
ArtVandelay is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 05:37 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO