JAL-2599 HMM annotation now shows consensus characters at each column
authorTZVanaalten <TZVanaalten@LS30916.ad.lifesci.dundee.ac.uk>
Wed, 16 Aug 2017 15:11:54 +0000 (16:11 +0100)
committerTZVanaalten <TZVanaalten@LS30916.ad.lifesci.dundee.ac.uk>
Wed, 16 Aug 2017 15:11:54 +0000 (16:11 +0100)
src/jalview/analysis/AAFrequency.java

index 046c589..82fca97 100755 (executable)
@@ -398,9 +398,9 @@ public class AAFrequency
       }
 
       String description = value + " bits";
-      
-      information.annotations[i] = new Annotation(" ", description,
-              ' ', value);
+      information.annotations[i] = new Annotation(
+              Character.toString(hmm.getConsensusAtAlignColumn(i)),
+              description, ' ', value);
     }
     information.graphMax = max;
     // long elapsed = System.currentTimeMillis() - now;