Notice:
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra


Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.
Attention:
We will be out of the office on November 11th and 13th 2019, due to the U.S. holiday(Veteran's day) and due to a team event(Nov 13th). We will return to monitoring the GATK forum on November 12th and 14th respectively. Thank you for your patience.

java.lang.ClassCastException: [I cannot be cast to [B while running BaseRecalibrator

anishanish Member
edited October 2015 in Ask the GATK team

Hi,

I'm doing pre-processing in Ion Torrent samples. But I'm getting an error while running BaseRecalibrator.

Here are the steps I followed:
1. Sort BAMs
2. Add or change RG from Picard tools
3. Indel Realignment from GATK
4. Base recalibration from GATK [ERROR]

This is the error I get:
##### ERROR ------------------------------------------------------------------------------------------
##### ERROR stack trace
java.lang.ClassCastException: [I cannot be cast to [B
at org.broadinstitute.gatk.engine.recalibration.RecalUtils.isColorSpaceConsistent(RecalUtils.java:888)
at org.broadinstitute.gatk.tools.walkers.bqsr.BaseRecalibrator.badSolidOffset(BaseRecalibrator.java:308)
at org.broadinstitute.gatk.tools.walkers.bqsr.BaseRecalibrator.calculateSkipArray(BaseRecalibrator.java:302)
at org.broadinstitute.gatk.tools.walkers.bqsr.BaseRecalibrator.map(BaseRecalibrator.java:267)
at org.broadinstitute.gatk.tools.walkers.bqsr.BaseRecalibrator.map(BaseRecalibrator.java:136)
at org.broadinstitute.gatk.engine.traversals.TraverseReadsNano$TraverseReadsMap.apply(TraverseReadsNano.java:228)
at org.broadinstitute.gatk.engine.traversals.TraverseReadsNano$TraverseReadsMap.apply(TraverseReadsNano.java:216)
at org.broadinstitute.gatk.utils.nanoScheduler.NanoScheduler.executeSingleThreaded(NanoScheduler.java:274)
at org.broadinstitute.gatk.utils.nanoScheduler.NanoScheduler.execute(NanoScheduler.java:245)
at org.broadinstitute.gatk.engine.traversals.TraverseReadsNano.traverse(TraverseReadsNano.java:102)
at org.broadinstitute.gatk.engine.traversals.TraverseReadsNano.traverse(TraverseReadsNano.java:56)
at org.broadinstitute.gatk.engine.executive.LinearMicroScheduler.execute(LinearMicroScheduler.java:108)
at org.broadinstitute.gatk.engine.GenomeAnalysisEngine.execute(GenomeAnalysisEngine.java:315)
at org.broadinstitute.gatk.engine.CommandLineExecutable.execute(CommandLineExecutable.java:121)
at org.broadinstitute.gatk.utils.commandline.CommandLineProgram.start(CommandLineProgram.java:248)
at org.broadinstitute.gatk.utils.commandline.CommandLineProgram.start(CommandLineProgram.java:155)
at org.broadinstitute.gatk.engine.CommandLineGATK.main(CommandLineGATK.java:106)
##### ERROR ------------------------------------------------------------------------------------------
##### ERROR A GATK RUNTIME ERROR has occurred (version 3.4-46-gbc02625):
##### ERROR
##### ERROR This might be a bug. Please check the documentation guide to see if this is a known problem.
##### ERROR If not, please post the error message, with stack trace, to the GATK forum.
##### ERROR Visit our website and forum for extensive documentation and answers to
##### ERROR commonly asked questions http://www.broadinstitute.org/gatk
##### ERROR
##### ERROR MESSAGE: [I cannot be cast to [B

Here is the code I have used:
java -XX:ParallelGCThreads=4 -Xmx4G -jar $GATK_HOME/GenomeAnalysisTK.jar -R $REF -T BaseRecalibrator -I $FILE -knownSites $KNOWN_SITES -o $BAMs/BaseRecalibration/$SAMPLE.recal.table

Does anyone know how to fix this?

Comments

Sign In or Register to comment.