From: jprocter Date: Fri, 26 Mar 2010 12:23:10 +0000 (+0000) Subject: profiles only shown for consensus row X-Git-Tag: Release_2_5~111 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=68f3a1f48c2c7c587bcf807bce5c335d8bb77573;p=jalview.git profiles only shown for consensus row --- diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 350cf65..281d5dc 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -1390,14 +1390,16 @@ public class AnnotationPanel extends JPanel implements MouseListener, private int[] getProfileFor(AlignmentAnnotation aa, int column) { + if (aa.autoCalculated && aa.label.startsWith("Consensus")) { if (aa.groupRef!=null && aa.groupRef.consensusData!=null) { return AAFrequency.extractProfile(aa.groupRef.consensusData[column],aa.groupRef.getIgnoreGapsConsensus()); } // TODO extend annotation row to enable dynamic and static profile data to be stored - if (aa.autoCalculated && aa.groupRef==null && aa.sequenceRef==null && aa.label.equals("Consensus")) + if (aa.groupRef==null && aa.sequenceRef==null) { return AAFrequency.extractProfile(av.hconsensus[column],av.getIgnoreGapsConsensus()); } + } return null; }