profiles only shown for consensus row
authorjprocter <Jim Procter>
Fri, 26 Mar 2010 12:23:10 +0000 (12:23 +0000)
committerjprocter <Jim Procter>
Fri, 26 Mar 2010 12:23:10 +0000 (12:23 +0000)
src/jalview/gui/AnnotationPanel.java

index 350cf65..281d5dc 100755 (executable)
@@ -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;
   }