From: Jim Procter Date: Thu, 11 Jul 2013 12:53:27 +0000 (+0100) Subject: JAL-1347 make it efficient to call getConsensus to test identity of alignment annotat... X-Git-Tag: Jalview_2_9~226^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=45043731e74856fbf6f181e508b8d79316048ce2;p=jalview.git JAL-1347 make it efficient to call getConsensus to test identity of alignment annotation rows --- 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; }