X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FGrouping.java;h=066814e626b390897a812565b1262958f61aadc8;hb=3609d4b908fa64cab35f2348401baab3347188fc;hp=51a818f340c81eb9a1c8bfcdc3f4d6b0fa575d9e;hpb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;p=jalview.git diff --git a/src/jalview/analysis/Grouping.java b/src/jalview/analysis/Grouping.java index 51a818f..066814e 100644 --- a/src/jalview/analysis/Grouping.java +++ b/src/jalview/analysis/Grouping.java @@ -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(); @@ -173,8 +178,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; }