JAL-34 JAL-4366 add a tolerance - 90% of one alignment should map to the other spikes/JAL-4366_3di_msa_forfoldseeks
authorJim Procter <jprocter@dundee.ac.uk>
Tue, 3 Sep 2024 21:37:05 +0000 (22:37 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Tue, 3 Sep 2024 21:37:05 +0000 (22:37 +0100)
src/jalview/analysis/AlignmentUtils.java

index 020ffda..c7c618f 100644 (file)
@@ -1416,8 +1416,9 @@ public class AlignmentUtils
         mappable++;
       }
     }
-    if (mappable == al1.getHeight())
+    if (mappable>0 && mappable >= (al1.getHeight()*9/10))
     {
+      // TODO allow optional if mappable > a few
       return true;
     }
     return false;