Get Molecular Interactions from a PSICQUIC Service
Created: 2011-07-22 10:06:22
Last updated: 2013-07-10 12:26:55
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Get Molecular Interactions from a PSICQUIC Service |
Descriptions (1)
Check the different iput parameter you could use for this workflow in ...
http://code.google.com/p/psicquic/wiki/RestAccess
Check available PSICQUIC Services in ...
http://www.ebi.ac.uk/Tools/webservices/psicquic/registry/registry?action=STATUS
More about PSICQUIC ...
http://code.google.com/p/psicquic/ |
Dependencies (0)
Inputs (5)
Name |
Description |
MIQL_query |
The Molecular Interactions Query Language (MIQL) defines a way to allow more powerful and flexible queries by using a specific syntax when doing searches. More information about MIQL in ... http://code.google.com/p/psicquic/wiki/MiqlReference
|
serviceRestUrl |
The location of the web service. Check ... http://code.google.com/p/psicquic/wiki/PsicquicServiceProviders ... to find REST URL addresses for PSICQUIC providers.
|
maxResults |
Integer value that defines the maximum number of interactions to be returned. For instance, a value of maxResults=20 will limit the results to 20 interactions.
|
firstResult |
Integer value that defines the first element to be shown. If the whole result set contains 100 interactions and we use firstResult=40, the first row to be returned will be the 40
|
format |
xml25 (PSI-MIXML 2.5)
tab25 (PSI-MITAB 2.5)
count (Just the total count)
|
Processors (1)
Name |
Type |
Description |
Get_Molecular_Interactions_PSICQUIC |
localworker |
Scriptif ((query == void) || (query == null) || query.equals("")) {
throw new RunTimeException("port query must have a non-empty value");
} else if((serviceRestUrl == void) || (serviceRestUrl == null) || serviceRestUrl.equals("")) {
throw new RunTimeException("port serviceRestUrl must have a non-empty value");
}
String psicquicUrl = serviceRestUrl + "query/" + query + "?firstResult=" + firstResult + "&maxResults=" + maxResults + "&format=" + format;
URL url = new URL (psicquicUrl);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
reader.close();
outputText = writer.toString();
|
Outputs (2)
Name |
Description |
MolecularInteractions |
Molecular Interactions in PSI MI format
|
psicquicUrl |
PSICQUIC URL
|
Datalinks (7)
Source |
Sink |
MIQL_query |
Get_Molecular_Interactions_PSICQUIC:query |
serviceRestUrl |
Get_Molecular_Interactions_PSICQUIC:serviceRestUrl |
maxResults |
Get_Molecular_Interactions_PSICQUIC:maxResults |
firstResult |
Get_Molecular_Interactions_PSICQUIC:firstResult |
format |
Get_Molecular_Interactions_PSICQUIC:format |
Get_Molecular_Interactions_PSICQUIC:outputText |
MolecularInteractions |
Get_Molecular_Interactions_PSICQUIC:psicquicUrl |
psicquicUrl |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1 (earliest)
(of 3)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (2)
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