diff rest_tool.xml @ 0:a9793e52a3ef draft

Uploaded
author bernhardlutz
date Sun, 23 Mar 2014 09:27:27 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rest_tool.xml	Sun Mar 23 09:27:27 2014 -0400
@@ -0,0 +1,43 @@
+<tool id="rest_tool" name="Fetch Data from pubchem" version="0.1.0">
+    <description>Fetch pubchem data</description>
+    <version_command>echo "0.1.0"</version_command>
+    <requirements>
+        <requirement type="set_environment">REST_TOOL_SCRIPT_PATH</requirement>
+    </requirements>
+    <command>
+        python \$GRAPHCONVERTER_SCRIPT_PATH/rest_tool.py --id $id --type $input_type --outformat $output_format
+    </command>
+
+    <inputs>
+        <param format="txt" name="id" type="text" label="Specify the ID" />
+        <param name="input_type" multiple="false" type="select" label="Input Type">
+            <option value="bioassay">BioAssay</option>
+            <option value="compound">Compound</option>
+        </param>
+        <param name="output_format" type="select" label="Output Format">
+                <option value="tsv">tsv</option>
+                <option value="csv">csv</option>
+                <option value="txt">txt</option>
+                <option value="png">png</option>
+                <option value="json">json</option>
+        </param>
+    </inputs>
+    <outputs>
+        <data format="csv" name="output">
+            <change_format>
+                <when input="output_format" value="tsv" format="tsv" />
+                <when input="output_format" value="png" format="png" />
+                <when input="output_format" value="csv" format="csv" />
+                <when input="output_format" value="txt" format="txt" />
+                <when input="output_format" value="json" format="json" />
+            </change_format>
+        </data>
+    </outputs>
+    <tests>
+    </tests>
+    <help>
+**What it does**
+
+This tool fetches data from pubchem
+    </help>
+</tool>