From 45043731e74856fbf6f181e508b8d79316048ce2 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 11 Jul 2013 13:53:27 +0100 Subject: [PATCH] JAL-1347 make it efficient to call getConsensus to test identity of alignment annotation rows --- src/jalview/datamodel/SequenceGroup.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/jalview/datamodel/SequenceGroup.java b/src/jalview/datamodel/SequenceGroup.java index c42a955..65dc13f 100755 --- a/src/jalview/datamodel/SequenceGroup.java +++ b/src/jalview/datamodel/SequenceGroup.java @@ -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; } -- 1.7.10.2