From: Mateusz Warowny Date: Thu, 2 Sep 2021 15:11:35 +0000 (+0200) Subject: Add RNAalifold service instance to slivka web services. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=171426bbaca3ec0ff275e54981c917cbca2f012a;p=jalview.git Add RNAalifold service instance to slivka web services. --- diff --git a/src/jalview/ws/slivkaws/RNAalifoldServiceInstance.java b/src/jalview/ws/slivkaws/RNAalifoldServiceInstance.java new file mode 100644 index 0000000..7940d06 --- /dev/null +++ b/src/jalview/ws/slivkaws/RNAalifoldServiceInstance.java @@ -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"))); + } +} diff --git a/src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java b/src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java index 50fa2d6..8ae9d14 100644 --- a/src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java +++ b/src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java @@ -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);