You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some FASTA files I get this index out of range error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 655
at java.base/java.util.Vector.get(Vector.java:750)
at runEC.predictions(runEC.java:124)
at ECPred.main(ECPred.java:108)
I think somehow idlist and combined were of different sizes. Changing for (int j = 0; j < idlist.size(); j++) to for (int j = 0; j < combined.size(); j++) caused it to run without problems, but I'm not sure if that would result in unexpected behavior.
I am using ECPred linked on the GitHub README page on a linux high performance computing system.
Is it possible to share what versions of the dependencies you're using? I'm still getting errors for some of the FASTA files on my HPC. It seems like it fails on certain sequences and then that causes an ArrayIndexOutOfBoundsException error. One example is:
GCA_000215745.1_03115 hypothetical protein
MLMQIRTATRTLTAIRIATATRIRTVTPIRTATRIPTAIRILTATRIRTAIRILTVTLTRTVIRTPTVIPIRTATRIPTAIRIRTVTPIRIATAIRTLTAIRILTAIRILTAIRILTATRTLTATRTLTVIPIPTATRTLTATRTLTVIPIPTATRLGFGQRFLRLRQRLGFRQRFLRLRQRLGFRQRFRLRQRLGF
In some FASTA files I get this index out of range error:
I think the error happened in this line of code:
I think somehow idlist and combined were of different sizes. Changing for (int j = 0; j < idlist.size(); j++) to for (int j = 0; j < combined.size(); j++) caused it to run without problems, but I'm not sure if that would result in unexpected behavior.
I am using ECPred linked on the GitHub README page on a linux high performance computing system.
Thank you for looking into the issue. This was the FASTA where the error happened.
GCA_000010725.1.faa_part_10.txt
The text was updated successfully, but these errors were encountered: