JAL-4220 if a threshold is defined, use it to show - for symbols present below assign...
authorJames Procter <j.procter@dundee.ac.uk>
Thu, 6 Jul 2023 13:49:36 +0000 (14:49 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Thu, 6 Jul 2023 13:49:36 +0000 (14:49 +0100)
src/jalview/analysis/AAFrequency.java

index b1505d6..aa0deed 100755 (executable)
@@ -252,6 +252,11 @@ public class AAFrequency
       return;
     }
 
+    float threshhold = 100;
+    if (consensus.getThreshold()!=null)
+    {
+      threshhold =  consensus.getThreshold().value;
+    }
     for (int i = startCol; i < endCol; i++)
     {
       ProfileI profile = profiles.get(i);
@@ -273,7 +278,7 @@ public class AAFrequency
               ignoreGaps, dp);
 
       String modalResidue = profile.getModalResidue();
-      if ("".equals(modalResidue))
+      if ("".equals(modalResidue) || threshhold>value)
       {
         modalResidue = "-";
       }