From d25d208090efdb6ae711a38af3da27ea14638b92 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Mon, 11 Apr 2022 18:21:10 +0200 Subject: [PATCH] JAL-3878 Implement prot. seq. an. discovery for slivka. --- src/jalview/ws2/client/slivka/SlivkaWSDiscoverer.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/jalview/ws2/client/slivka/SlivkaWSDiscoverer.java b/src/jalview/ws2/client/slivka/SlivkaWSDiscoverer.java index b1ce5b3..4829b49 100644 --- a/src/jalview/ws2/client/slivka/SlivkaWSDiscoverer.java +++ b/src/jalview/ws2/client/slivka/SlivkaWSDiscoverer.java @@ -10,6 +10,7 @@ import java.util.List; import jalview.bin.Cache; import jalview.ws.params.ParamManager; import jalview.ws2.actions.alignment.AlignmentAction; +import jalview.ws2.actions.annotation.AnnotationAction; import jalview.ws2.api.WebService; import jalview.ws2.client.api.AbstractWebServiceDiscoverer; import uk.ac.dundee.compbio.slivkaclient.SlivkaClient; @@ -119,6 +120,21 @@ public class SlivkaWSDiscoverer extends AbstractWebServiceDiscoverer } allServices.add(msaService); } + else if (serviceClass == SERVICE_CLASS_PROT_SEQ_ANALYSIS) + { + var wsb = WebService. newBuilder(); + initServiceBuilder(slivkaService, wsb); + wsb.category("Protein Disorder"); + wsb.interactive(false); + wsb.actionClass(AnnotationAction.class); + var psaService = wsb.build(); + var client = new SlivkaAnnotationWSClient(slivkaService); + var actionBuilder = AnnotationAction.newBuilder(client); + actionBuilder.webService(psaService); + actionBuilder.name("Analysis"); + psaService.addAction(actionBuilder.build()); + allServices.add(psaService); + } else { continue; -- 1.7.10.2