Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
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.

ArrayIndexOutOfBoundsException: 1 in RealignerTargetCreator

alfredoalfredo londonMember

I am running the following command:
java -Xms4g -Xmx5g -jar /path/GenomeAnalysisTK.jar -nt 1 -T RealignerTargetCreator -R /path_to_reference/hg19.fasta -I /path_to_bam/LP6008118-DNA_A02_indexed.bam -U ALLOW_SEQ_DICT_INCOMPATIBILITY

and I get the following error:

ERROR ------------------------------------------------------------------------------------------
ERROR stack trace

java.lang.ArrayIndexOutOfBoundsException: 1
at org.broadinstitute.gatk.utils.contexts.ReferenceContext.getBase(ReferenceContext.java:179)
at org.broadinstitute.gatk.tools.walkers.indels.RealignerTargetCreator.map(RealignerTargetCreator.java:237)
at org.broadinstitute.gatk.tools.walkers.indels.RealignerTargetCreator.map(RealignerTargetCreator.java:142)
at org.broadinstitute.gatk.engine.traversals.TraverseLociNano$TraverseLociMap.apply(TraverseLociNano.java:267)
at org.broadinstitute.gatk.engine.traversals.TraverseLociNano$TraverseLociMap.apply(TraverseLociNano.java:255)
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.TraverseLociNano.traverse(TraverseLociNano.java:144)
at org.broadinstitute.gatk.engine.traversals.TraverseLociNano.traverse(TraverseLociNano.java:92)
at org.broadinstitute.gatk.engine.traversals.TraverseLociNano.traverse(TraverseLociNano.java:48)
at org.broadinstitute.gatk.engine.executive.LinearMicroScheduler.execute(LinearMicroScheduler.java:99)
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.5-0-g36282e4):
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: 1
ERROR ------------------------------------------------------------------------------------------

Any ideas? do you think it can be due to some problems related to the input bam file?

Thanks a lot in advance for your help

Answers

  • SheilaSheila Broad InstituteMember, Broadie admin

    @alfredo
    Hi,

    Can you please try validating your input BAM file with Picard's ValidateSamFile?

    Thanks,
    Sheila

  • alfredoalfredo londonMember

    Hello Sheila!

    thanks for you answer, anyway I just tried and no errors were found

    Alfredo

  • pdexheimerpdexheimer Member ✭✭✭✭

    I'm very concerned that you're running with the -U option, and even more concerned that you're specifically allowing incompatible sequence dictionaries. This is because the stack trace you posted indicates that the problem came in looking up the reference base at a particular position (second line, ReferenceContext.getBase()). My expectation is that your incompatible sequence dictionaries are actually meaningfully incompatible, and this is what's leading to the crash. Use a common reference everywhere, and I think this error goes away

Sign In or Register to comment.