X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FGrouping.java;h=2ddd015d84590fe888860986b5fc3fe439b8467a;hb=refs%2Fheads%2Freleases%2FRelease_2_10_0_Branch;hp=ea10c9a4e0f5e2bb44bbf3a35915cdf750f8cff7;hpb=f21eb611044169a07a7d4c6e2f69dd772fa7c872;p=jalview.git diff --git a/src/jalview/analysis/Grouping.java b/src/jalview/analysis/Grouping.java index ea10c9a..2ddd015 100644 --- a/src/jalview/analysis/Grouping.java +++ b/src/jalview/analysis/Grouping.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -91,8 +91,8 @@ public class Grouping i = 0; for (String key : gps.keySet()) { - SequenceGroup group = new SequenceGroup(gps.get(key), - "Subseq: " + key, null, true, true, false, 0, width - 1); + SequenceGroup group = new SequenceGroup(gps.get(key), "Subseq: " + + key, null, true, true, false, 0, width - 1); groups[i++] = group; } @@ -127,6 +127,11 @@ public class Grouping } } } + + /* + * get selected columns (in the order they were selected); + * note this could include right-to-left ranges + */ int[] spos = new int[cs.getSelected().size()]; int width = -1; int i = 0; @@ -134,7 +139,7 @@ public class Grouping { spos[i++] = pos.intValue(); } - ; + for (i = 0; i < sequences.length; i++) { int slen = sequences[i].getLength();