drivenbyentropy / aptasuite

A full-featured bioinformatics software collection for the comprehensive analysis of aptamers in HT-SELEX experiments.
https://drivenbyentropy.github.io/
GNU General Public License v3.0
24 stars 11 forks source link

Issue exporting clusters: exception in thread "main" #114

Closed kep93943 closed 1 year ago

kep93943 commented 1 year ago

Parsing and exporting the pool and cycle files goes smoothly, but once it reaches exporting clusters the following error appears.

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at utilities.Quicksort.quicksort(Quicksort.java:94) at utilities.Quicksort.sort(Quicksort.java:44) at lib.export.Export.ClustersBySize(Export.java:558) at lib.export.Export.Clusters(Export.java:279) at aptasuite.CLI.exportData(CLI.java:1096) at aptasuite.CLI.(CLI.java:280) at aptasuite.Aptasuite.main(Aptasuite.java:70)

kep93943 commented 1 year ago

The problem appears to be that the naive library file did not contain any clusters that were made up of more than one sequence (meaning no clusters...). My configuration file had a minimum cluster size of 2, so it immediately ran into this issue. This was then easily fixed by changing the minimum cluster size to 1.