JAL-4410 better logic for maximal mapped chains (I seem to remember coding this befor...
authorJim Procter <jprocter@dundee.ac.uk>
Mon, 13 May 2024 10:23:23 +0000 (11:23 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 13 May 2024 10:23:23 +0000 (11:23 +0100)
src/jalview/structure/StructureSelectionManager.java

index a8ee9fe..c9719b5 100644 (file)
@@ -591,10 +591,15 @@ public class StructureSelectionManager
         }
         else
         {
-          if (as.maxscore >= max)
+          if (as.maxscore > max)
           {
-            maxChain.add(chain);
             max = as.maxscore;
+            maxChain.clear();
+            maxAlignSeqs.clear();
+          }
+          if (as.maxscore == max)
+          {
+            maxChain.add(chain);
             maxAlignSeqs.add(as);
           }
         }