From 22a19bd5a73225168170d2b48c91518c0a3fa294 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 10 Aug 2015 11:16:05 +0100 Subject: [PATCH] JAL-736 relocate group associated conservation symbols to alignment column position --- src/jalview/analysis/Conservation.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/analysis/Conservation.java b/src/jalview/analysis/Conservation.java index 76323bc..b8f1d92 100755 --- a/src/jalview/analysis/Conservation.java +++ b/src/jalview/analysis/Conservation.java @@ -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))); -- 1.7.10.2