JAL-3878 Implement RNA Sec. Str. Pred. discovery for slivka JAL-3878_ws-overhaul-3
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Tue, 26 Apr 2022 12:36:40 +0000 (14:36 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Tue, 26 Apr 2022 12:36:46 +0000 (14:36 +0200)
src/jalview/ws2/client/slivka/SlivkaWSDiscoverer.java

index 5bdbcfb..58f6d67 100644 (file)
@@ -155,7 +155,24 @@ public class SlivkaWSDiscoverer extends AbstractWebServiceDiscoverer
       }
       else if (serviceClass == SERVICE_CLASS_RNA_SEC_STR_PRED)
       {
-
+        var wsb = WebService.<AnnotationAction> newBuilder();
+        initServiceBuilder(slivkaService, wsb);
+        wsb.category("Secondary Structure Prediction");
+        wsb.interactive(true);
+        wsb.actionClass(AnnotationAction.class);
+        var predService = wsb.build();
+        var client = new SlivkaAnnotationWSClient(slivkaService);
+        var actionBuilder = AnnotationAction.newBuilder(client);
+        actionBuilder.webService(predService);
+        actionBuilder.name("Prediction");
+        actionBuilder.minSequences(2);
+        actionBuilder.allowNucleotide(true);
+        actionBuilder.allowProtein(false);
+        actionBuilder.alignmentAnalysis(true);
+        actionBuilder.requireAlignedSequences(true);
+        actionBuilder.filterSymbols(false);
+        predService.addAction(actionBuilder.build());
+        allServices.add(predService);
       }
       else
       {