From 68f3a1f48c2c7c587bcf807bce5c335d8bb77573 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 26 Mar 2010 12:23:10 +0000 Subject: [PATCH] profiles only shown for consensus row --- src/jalview/gui/AnnotationPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 1.7.10.2