Add RNAalifold service instance to slivka web services. JAL-3866_RNAalifold-slivka-client
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 2 Sep 2021 15:11:35 +0000 (17:11 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 2 Sep 2021 15:11:35 +0000 (17:11 +0200)
src/jalview/ws/slivkaws/RNAalifoldServiceInstance.java [new file with mode: 0644]
src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java

diff --git a/src/jalview/ws/slivkaws/RNAalifoldServiceInstance.java b/src/jalview/ws/slivkaws/RNAalifoldServiceInstance.java
new file mode 100644 (file)
index 0000000..7940d06
--- /dev/null
@@ -0,0 +1,23 @@
+package jalview.ws.slivkaws;
+
+import jalview.util.MessageManager;
+import jalview.ws.uimodel.AlignAnalysisUIText;
+import uk.ac.dundee.compbio.slivkaclient.SlivkaClient;
+import uk.ac.dundee.compbio.slivkaclient.SlivkaService;
+
+public class RNAalifoldServiceInstance
+        extends SlivkaAnnotationServiceInstance
+{
+  public RNAalifoldServiceInstance(SlivkaClient client,
+          SlivkaService service, String category)
+  {
+    super(client, service, category);
+    setAlignAnalysisUI(new AlignAnalysisUIText(getName(),
+            RNAalifoldServiceInstance.class,
+            "Slivka.RNAalifold", true, false, true, true, false, 2,
+            MessageManager.getString("label.rnalifold_calculations"),
+            MessageManager.getString("tooltip.rnalifold_calculations"),
+            MessageManager.getString("label.rnalifold_settings"),
+            MessageManager.getString("tooltip.rnalifold_settings")));
+  }
+}
index 50fa2d6..8ae9d14 100644 (file)
@@ -115,6 +115,10 @@ public class SlivkaWSDiscoverer implements WSDiscovererI
           {
             switch (path[path.length - 1].toLowerCase())
             {
+            case "rna secondary structure prediction":
+              newInstance = new RNAalifoldServiceInstance(client,
+                      service, "Secondary Structure Prediction");
+              break;
             case "sequence alignment analysis (conservation)":
               newInstance = new SlivkaAnnotationServiceInstance(client,
                       service, Category.CATEGORY_CONSERVATION);