blosum62 must have its on consensus
authoramwaterhouse <Andrew Waterhouse>
Mon, 18 Apr 2005 16:03:51 +0000 (16:03 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 18 Apr 2005 16:03:51 +0000 (16:03 +0000)
src/jalview/gui/PopupMenu.java

index b07dce8..398294b 100755 (executable)
@@ -408,6 +408,7 @@ public class PopupMenu extends JPopupMenu
 \r
       SliderPanel.showPIDSlider();\r
 \r
+\r
     }\r
     else // remove PIDColouring\r
     {\r
@@ -440,7 +441,13 @@ public class PopupMenu extends JPopupMenu
 \r
   protected void BLOSUM62Colour_actionPerformed(ActionEvent e)\r
   {\r
-    getGroup().cs = new Blosum62ColourScheme();\r
+    SequenceGroup sg = getGroup();\r
+\r
+    sg.cs = new Blosum62ColourScheme();\r
+\r
+    sg.cs.setConsensus(AAFrequency.calculate(sg.sequences, 0,\r
+                                               ap.av.alignment.getWidth()));\r
+\r
     refresh();\r
   }\r
 \r