JAL-2939 simplified way of getting hmm consensus residue
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 30 Mar 2018 09:37:40 +0000 (10:37 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 30 Mar 2018 09:37:40 +0000 (10:37 +0100)
src/jalview/analysis/AAFrequency.java

index 1553021..11c8f72 100755 (executable)
@@ -385,8 +385,8 @@ public class AAFrequency
       String description = isNaN ? null
               : String.format("%.4f bits", value);
       information.annotations[column] = new Annotation(
-              Character.toString(Character
-                      .toUpperCase(hmm.getConsensusAtAlignColumn(column))),
+              Character.toString(
+                      Character.toUpperCase(hmmSeq.getCharAt(column))),
               description, ' ', value);
     }