From c218877a5572ea819f2a521e2205351d7b67bc93 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 29 Aug 2012 16:38:13 +0100 Subject: [PATCH] JAL-974 set GlobPlot raw/smooth score annotation rows to be hidden by default --- src/jalview/ws/jws2/AADisorderClient.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/jalview/ws/jws2/AADisorderClient.java b/src/jalview/ws/jws2/AADisorderClient.java index ef6752f..c5d0bc0 100644 --- a/src/jalview/ws/jws2/AADisorderClient.java +++ b/src/jalview/ws/jws2/AADisorderClient.java @@ -63,6 +63,7 @@ public class AADisorderClient extends JabawsAlignCalcWorker implements private static Map>> annotMap; private static String DONTCOMBINE = "DONTCOMBINE"; + private static String INVISIBLE = "INVISIBLE"; static { featureMap = new HashMap>(); @@ -93,6 +94,10 @@ public class AADisorderClient extends JabawsAlignCalcWorker implements amap = new HashMap>()); amap.put("Dydx", new HashMap()); amap.get("Dydx").put(DONTCOMBINE, DONTCOMBINE); + amap.put("SmoothedScore", new HashMap()); + amap.get("SmoothedScore").put(INVISIBLE,INVISIBLE); + amap.put("RawScore", new HashMap()); + amap.get("RawScore").put(INVISIBLE,INVISIBLE); annotMap.put(compbio.ws.client.Services.DisemblWS.toString(), amap = new HashMap>()); @@ -188,6 +193,8 @@ public class AADisorderClient extends JabawsAlignCalcWorker implements + ")", service.getServiceTypeURI()+"/"+ scr.getMethod(), aseq, base, scr); annot.graph = AlignmentAnnotation.LINE_GRAPH; + annot.visible = (annotTypeMap==null || annotTypeMap.get(scr.getMethod())==null || annotTypeMap.get(scr.getMethod()).get(INVISIBLE) == null); + if (annotTypeMap==null || annotTypeMap.get(scr.getMethod())==null || annotTypeMap.get(scr.getMethod()).get(DONTCOMBINE) == null) { { @@ -200,6 +207,7 @@ public class AADisorderClient extends JabawsAlignCalcWorker implements annot.graphGroup = graphGroup; } } + annot.description = service.getActionText() + " - raw scores"; Color col = new UserColourScheme(typeName) .createColourFromName(typeName + scr.getMethod()); -- 1.7.10.2