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

Funcotator error: StringIndexOutOfBoundsException

Answered
0

6 comments

  • Avatar
    Anton Kovalsky

    Hi lck, thanks for you post, this is indeed a known issue. You can follow our updates on fixes related to the StringIndexOutOfBoundsException error here and here

    0
    Comment actions Permalink
  • Avatar
    lck

    Thanks, Anton Kovalsky. I'll follow it there; if you know of any workarounds in the meantime, I'm all ears.

    0
    Comment actions Permalink
  • Avatar
    Anton Kovalsky

    For now, a workaround might be to pull out those variants. We haven't fully characterized what's causing this, so we can't easily predict which variants will cause the problem, so you would need to know when an error happens then remove that line and continue annotating.

    0
    Comment actions Permalink
  • Avatar
    creigatmi

    When someone tries to access the characters with limits exceeding the range of actual string value, this exception occurs. A subset of the sequence of characters can be extracted from a string by using the Java substring() method. The substring index should be any value between 0 and the length of a string. If the index exceeds the limit, substring method returns “String index out of range: 0” exception.

    How to handle the StringIndexOutOfBoundsException

    • You can check the range of the string using String.length() method and proceed to access the characters of it accordingly.
    • You can use try and catch block around the code snippet that can possibly throw StringIndexOutOfBoundsException.

     

    0
    Comment actions Permalink
  • Avatar
    Genevieve Brandt (she/her)

    Thank you for posting your insight creigatmi!

    0
    Comment actions Permalink
  • Avatar
    Genevieve Brandt (she/her)

    Hi lck,

    We have released a fix for the Funcotator bug you posted about here. It is in the newest GATK release 4.2.3.0, please let us know if it fixes your issue!

    Best,

    Genevieve

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk