From: amwaterhouse Date: Mon, 18 Apr 2005 16:03:51 +0000 (+0000) Subject: blosum62 must have its on consensus X-Git-Tag: Release_2_0~386 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=116786d279dcb83f05afd625ad6e39627a37e1e8;p=jalview.git blosum62 must have its on consensus --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index b07dce8..398294b 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -408,6 +408,7 @@ public class PopupMenu extends JPopupMenu SliderPanel.showPIDSlider(); + } else // remove PIDColouring { @@ -440,7 +441,13 @@ public class PopupMenu extends JPopupMenu protected void BLOSUM62Colour_actionPerformed(ActionEvent e) { - getGroup().cs = new Blosum62ColourScheme(); + SequenceGroup sg = getGroup(); + + sg.cs = new Blosum62ColourScheme(); + + sg.cs.setConsensus(AAFrequency.calculate(sg.sequences, 0, + ap.av.alignment.getWidth())); + refresh(); }