import jalview.ws.jws2.dm.AAConSettings;
import jalview.ws.jws2.jabaws2.Jws2Instance;
import jalview.ws.params.WsParamSetI;
+import jalview.ws.uimodel.AlignAnalysisUIText;
import java.util.ArrayList;
import java.util.List;
}
private static String CALC_ID="jabaws2.AACon";
+ public static AlignAnalysisUIText getAlignAnalysisUITest()
{
+ return new AlignAnalysisUIText(
+ compbio.ws.client.Services.AAConWS.toString(),
+ jalview.ws.jws2.AAConClient.class, CALC_ID, false, true, true,
+ "AACon Calculations",
+ "When checked, AACon calculations are updated automatically.",
+ "Change AACon Settings...",
+ "Modify settings for AACon calculations.");
}
}
import jalview.bin.Cache;
import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.jws2.jabaws2.Jws2InstanceFactory;
import java.util.HashSet;
import java.util.Set;
String description = registry.getServiceDescription(srv);
- svc = new Jws2Instance(jwsservers, srv.toString(),
+ svc = Jws2InstanceFactory.newJws2Instance(jwsservers, srv.toString(),
cat.name, description, service);
}
if (svc == null)
{
- svc = new Jws2Instance(jwsservers, srv.toString(),
+ svc = Jws2InstanceFactory.newJws2Instance(jwsservers, srv.toString(),
cat.name, "JABAWS 1 Alignment Service", service);
}
jws2Discoverer.addService(jwsservers, svc);
import jalview.ws.jws2.dm.AAConSettings;
import jalview.ws.jws2.jabaws2.Jws2Instance;
import jalview.ws.params.WsParamSetI;
+import jalview.ws.uimodel.AlignAnalysisUIText;
import java.text.MessageFormat;
import java.util.ArrayList;
}
private static String CALC_ID="jalview.ws.jws2.RNAalifoldClient";
+ public static AlignAnalysisUIText getAlignAnalysisUITest()
{
+ return new AlignAnalysisUIText(
+ compbio.ws.client.Services.RNAalifoldWS.toString(),
+ jalview.ws.jws2.RNAalifoldClient.class,
+ CALC_ID,
+ true,
+ false,
+ true,
+ "RNAAliFold Prediction",
+ "When checked, RNA secondary structure predictions will be calculated for the alignment, and updated when edits are made.",
+ "Change RNAAliFold settings...",
+ "Modify settings for the RNAAliFold prediction. Use this to hide or show different results of the RNA calculation, and change RNA folding parameters");
+
}
@Override
public String docUrl;
+ /**
+ *
+ * @param hosturl Service endpoint
+ * @param serviceType Category for this service's analysis
+ * @param action text describing their action that service performs (eg 'aligning', 'analysing')
+ * @param description Description from JABAWS registry
+ * @param service JABAWS registry ID for service
+ */
public Jws2Instance(String hosturl, String serviceType, String action,
String description, JABAService service)
{
{
return "java:" + serviceType;
}
+ jalview.ws.uimodel.AlignAnalysisUIText aaui;
+ public jalview.ws.uimodel.AlignAnalysisUIText getAlignAnalysisUI()
+ {
+ return aaui;
+ }
}
--- /dev/null
+package jalview.ws.jws2.jabaws2;
+
+import java.util.HashMap;
+
+import compbio.data.msa.JABAService;
+
+import jalview.ws.jws2.AAConClient;
+import jalview.ws.jws2.RNAalifoldClient;
+import jalview.ws.uimodel.AlignAnalysisUIText;
+
+public class Jws2InstanceFactory
+{
+ private static HashMap<String, AlignAnalysisUIText> aaConGUI;
+
+ private static void init()
+ {
+ if (aaConGUI == null)
+ {
+ aaConGUI = new HashMap<String, AlignAnalysisUIText>();
+ aaConGUI.put(compbio.ws.client.Services.AAConWS.toString(),
+ AAConClient.getAlignAnalysisUITest());
+ aaConGUI.put(compbio.ws.client.Services.RNAalifoldWS.toString(),
+ RNAalifoldClient.getAlignAnalysisUITest());
+ }
+ }
+
+ /**
+ * construct a service instance and configure it with any additional
+ * properties needed so Jalview can access it correctly
+ *
+ * @param jwsservers
+ * @param serviceType
+ * @param name
+ * @param description
+ * @param service
+ * @return
+ */
+ public static Jws2Instance newJws2Instance(String jwsservers,
+ String serviceType, String name, String description,
+ JABAService service)
+ {
+ init();
+ Jws2Instance svc = new Jws2Instance(jwsservers, serviceType, name,
+ description, service);
+
+ svc.aaui = aaConGUI.get(serviceType.toString());
+ return svc;
+ }
+
+}