ezaai icon indicating copy to clipboard operation
ezaai copied to clipboard

java.lang.ArrayIndexOutOfBoundsException: 5616

Open beajorrin opened this issue 10 months ago • 1 comments

Hi, I'm trying to run ezaai calculate for 83 different strains. However, I've been having issues on this regard. I have redone the db files in a server with 80 cores

ezaai calculate -i db/ -j db/ -o aai.tsv -t 75 -p diamond -id 0.3 -cov 0.7 -tmp /data/bea/ciceribacter

[MAR 24 18:25:55] EzAAI |: EzAAI - v1.2.3 [Feb. 2024] [MAR 24 18:26:10] EzAAI |: Calculating AAI... [Task 1/82] [MAR 24 18:26:19] EzAAI |: Calculating AAI... [Task 2/82] [MAR 24 18:26:29] EzAAI |: Calculating AAI... [Task 3/82] [MAR 24 18:26:39] EzAAI |: Calculating AAI... [Task 4/82] [MAR 24 18:26:48] EzAAI |: Calculating AAI... [Task 5/82] [MAR 24 18:26:58] EzAAI |: Calculating AAI... [Task 6/82] [MAR 24 18:27:07] EzAAI |: Calculating AAI... [Task 7/82] [MAR 24 18:27:17] EzAAI |: Calculating AAI... [Task 8/82] java.lang.ArrayIndexOutOfBoundsException: 5616 at leb.process.ProcCalcPairwiseAAI.calcIdentityWithDetails(ProcCalcPairwiseAAI.java:176) at leb.process.ProcCalcPairwiseAAI.pairwiseDiamond(ProcCalcPairwiseAAI.java:453) at leb.process.ProcCalcPairwiseAAI.calculateProteomePairWithDetails(ProcCalcPairwiseAAI.java:69) at leb.main.EzAAI.runCalculate(EzAAI.java:511) at leb.main.EzAAI.run(EzAAI.java:689) at leb.main.EzAAI.main(EzAAI.java:725) [MAR 24 18:27:26] ERROR |: Program terminated with error.

It always run for the first 7 files and fails in the 8th. I have redone the ezzai convert on this file but still the same error.

Any idea?

pd. I'm running this as a conda environment.

Kind reagrds

beajorrin avatar Mar 24 '25 18:03 beajorrin

Hello, this might happen if there are any duplicated headers from your input FASTA file.

Could you please check if one of your FASTA files has duplicated headers? Precisely, the substring from the initial character > to the first whitespace (or newline) should be distinct.

endixk avatar Mar 31 '25 08:03 endixk