JAL-1347 make it efficient to call getConsensus to test identity of alignment annotat...
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Thu, 11 Jul 2013 12:53:27 +0000 (13:53 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Thu, 11 Jul 2013 12:53:27 +0000 (13:53 +0100)
src/jalview/datamodel/SequenceGroup.java

index c42a955..65dc13f 100755 (executable)
@@ -1034,12 +1034,12 @@ public class SequenceGroup implements AnnotatedCollectionI
     {
       consensus = new AlignmentAnnotation("", "", new Annotation[1], 0f,
               100f, AlignmentAnnotation.BAR_GRAPH);
+      consensus.hasText = true;
+      consensus.autoCalculated = true;
+      consensus.groupRef = this;
+      consensus.label = "Consensus for " + getName();
+      consensus.description = "Percent Identity";
     }
-    consensus.hasText = true;
-    consensus.autoCalculated = true;
-    consensus.groupRef = this;
-    consensus.label = "Consensus for " + getName();
-    consensus.description = "Percent Identity";
     return consensus;
   }