Genome Analysis Toolkit

Variant Discovery in High-Throughput Sequencing Data

GATK process banner

Need Help?

Search our documentation

Community Forum

Hi, How can we help?

Developed in the Data Sciences Platform at the Broad Institute, the toolkit offers a wide variety of tools with a primary focus on variant discovery and genotyping. Its powerful processing engine and high-performance computing features make it capable of taking on projects of any size. Learn more

MergeBamAlignment Error: ArrayIndexOutOfBoundsException

1

3 comments

  • Avatar
    Derek Caetano-Anolles

    This is most likely an issue related to formatting or mismatches in read length between files.

    In Java, the ArrayIndexOutOfBoundsException is usually outputted when an index is passed to an array that doesn’t contain an element at that particular index location. In other words, the code is trying to put something into a set when there is no room for it, and Java identifies that as being "out of bounds".

    Please see this post for more information.

    I don't know the specifics of your files, but it is possible that you have a mismatch in read lengths, possibly from when you trimmed them. Alternately, one of your mapped BAM files may be formatted differently than your unmapped BAM file.

    You might want to run your files through ValidateSamFile beforehand.

    2
    Comment actions Permalink
  • Avatar
    Jared Jurss

    Have also run with Oracle 1.8, same error

    1
    Comment actions Permalink
  • Avatar
    Jared Jurss

    My original BAM file had some messed up alignments in it.  I made a new BAM file and solved the issue.  Thank you

    1
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk