OpenTox Apply Algorithm
Created: 2010-05-11 18:16:40
Last updated: 2011-05-11 14:34:17
Apply an OpenTox algorithm
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (7)
Name |
Description |
prediction_feature |
|
port |
|
algorithm |
|
dataset_uri |
|
parameters |
|
base |
|
prefix |
|
Processors (1)
Name |
Type |
Description |
query_server |
beanshell |
ScriptString postdata = "";postdata = "dataset_uri=" + URLEncoder.encode(dataset_uri, "UTF-8");if(prediction_feature != null && prediction_feature != void){ if(postdata.length()>0){ postdata+="&"; } postdata += "prediction_feature" + "=" + URLEncoder.encode(prediction_feature, "UTF-8");}for (ArrayList i : parameters) { if(i.size()>0){ postdata += "&" + i.get(0) + "=" + URLEncoder.encode(i.get(1), "UTF-8"); }}String path = "/" + prefix +"/algorithm/"+ algorithm;URL url = new URL("http://" + base+":"+port+path); URLConnection conn = url.openConnection(); conn.setDoOutput(true); OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream()); wr.write(postdata); wr.flush(); BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream())); String line; result = "";while ((line = rd.readLine()) != null) { result+=line;} wr.close(); rd.close(); |
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
query_server |
|
port
prediction_feature
dataset_uri
algorithm
parameters
base
prefix
|
result
|
Outputs (1)
Name |
Description |
result_uri |
|
Datalinks (8)
Source |
Sink |
algorithm |
query_server:algorithm |
dataset_uri |
query_server:dataset_uri |
parameters |
query_server:parameters |
port |
query_server:port |
prediction_feature |
query_server:prediction_feature |
base |
query_server:base |
prefix |
query_server:prefix |
query_server:result |
result_uri |
Uploader
License
All versions of this Workflow are
licensed under:
Version 3
(of 7)
Credits (0)
(People/Groups)
None
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment