JAL-736 relocate group associated conservation symbols to alignment column position
authorJim Procter <jprocter@issues.jalview.org>
Mon, 10 Aug 2015 10:16:05 +0000 (11:16 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 10 Aug 2015 10:16:05 +0000 (11:16 +0100)
src/jalview/analysis/Conservation.java

index 76323bc..b8f1d92 100755 (executable)
@@ -698,8 +698,11 @@ public class Conservation
 
       float vprop = value - min;
       vprop /= max;
+      int consp = i - start;
+      String conssym = (value > 0 && consp > -1 && consp < consSymbs.length) ? consSymbs[consp]
+              : "";
       conservation.annotations[i] = new Annotation(String.valueOf(c),
-              consSymbs[i-start], ' ', value, new Color(minR
+              conssym, ' ', value, new Color(minR
                       + (maxR * vprop), minG + (maxG * vprop), minB
                       + (maxB * vprop)));