X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fjalview%2Fdatamodel%2FSequenceGroup.java;h=6bee4167fa15f0f8bba1dbbc0b4e5cfdeaf4b499;hb=a822fc744dcc06e6a8d2399218da0d0dfd56cf2b;hp=cc71e4a76d8b753ae19171a3352272e7d39446a9;hpb=ca79e93cac909fb78e5f6143906e7b635d9bdc35;p=jalview.git diff --git a/src/jalview/datamodel/SequenceGroup.java b/src/jalview/datamodel/SequenceGroup.java index cc71e4a..6bee416 100755 --- a/src/jalview/datamodel/SequenceGroup.java +++ b/src/jalview/datamodel/SequenceGroup.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5) - * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) + * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle * * This file is part of Jalview. * @@ -91,6 +91,11 @@ public class SequenceGroup * consensus calculation property */ private boolean showSequenceLogo = false; + /** + * flag indicating if logo should be rendered normalised + */ + private boolean normaliseSequenceLogo; + /** * @return the includeAllConsSymbols @@ -226,8 +231,8 @@ public class SequenceGroup if (!found) continue; } - AlignmentAnnotation newannot = new AlignmentAnnotation(seq - .getAnnotation()[a]); + AlignmentAnnotation newannot = new AlignmentAnnotation( + seq.getAnnotation()[a]); newannot.restrict(startRes, endRes); newannot.setSequenceRef(seqs[ipos]); newannot.adjustForAlignment(); @@ -440,7 +445,9 @@ public class SequenceGroup } /** - * Add s to this sequence group + * Add s to this sequence group. If aligment sequence is already contained in + * group, it will not be added again, but recalculation may happen if the flag + * is set. * * @param s * alignment sequence to be added @@ -508,12 +515,15 @@ public class SequenceGroup } if (cs != null) { - cs.setConservation(c); - - if (cs instanceof ClustalxColourScheme) + if (cs.conservationApplied()) { - ((ClustalxColourScheme) cs) - .resetClustalX(sequences, getWidth()); + cs.setConservation(c); + + if (cs instanceof ClustalxColourScheme) + { + ((ClustalxColourScheme) cs).resetClustalX(sequences, + getWidth()); + } } } } @@ -627,10 +637,9 @@ public class SequenceGroup } /** - * DOCUMENT ME! + * Set the first column selected by this group. Runs from 0<=i