JAL-3878 Implement RNA Sec. Str. Pred. discovery for slivka
[jalview.git] / 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
       {