JAL-1595 annotation score is total number of rna helices
authorJim Procter <jprocter@dundee.ac.uk>
Mon, 24 Nov 2014 16:01:33 +0000 (16:01 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 24 Nov 2014 16:01:33 +0000 (16:01 +0000)
src/jalview/datamodel/AlignmentAnnotation.java

index c77cbdb..e137225 100755 (executable)
@@ -119,6 +119,7 @@ public class AlignmentAnnotation
 
   private void _markRnaHelices()
   {
+    int mxval = 0;
     // Figure out number of helices
     // Length of rnasecstr is the number of pairs of positions that base pair
     // with each other in the secondary structure
@@ -134,6 +135,10 @@ public class AlignmentAnnotation
       try
       {
         val = Integer.valueOf(_rnasecstr[x].getFeatureGroup());
+        if (mxval < val)
+        {
+          mxval = val;
+        }
       } catch (NumberFormatException q)
       {
       }
@@ -145,6 +150,7 @@ public class AlignmentAnnotation
       // annotations[_rnasecstr[x].getBegin()].displayCharacter = "" + val;
       // annotations[_rnasecstr[x].getEnd()].displayCharacter = "" + val;
     }
+    setScore(mxval);
   }
   /**
    * map of positions in the associated annotation