JAL-3878 Implement prot. seq. an. discovery for slivka.
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 11 Apr 2022 16:21:10 +0000 (18:21 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 11 Apr 2022 16:21:10 +0000 (18:21 +0200)
src/jalview/ws2/client/slivka/SlivkaWSDiscoverer.java

index b1ce5b3..4829b49 100644 (file)
@@ -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.<AnnotationAction> 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;