|
0
|
1 <tool id="rest_tool" name="Fetch Data from pubchem" version="0.1.0">
|
|
|
2 <description>Fetch pubchem data</description>
|
|
|
3 <version_command>echo "0.1.0"</version_command>
|
|
|
4 <requirements>
|
|
|
5 <requirement type="set_environment">REST_TOOL_SCRIPT_PATH</requirement>
|
|
|
6 </requirements>
|
|
|
7 <command>
|
|
|
8 python \$GRAPHCONVERTER_SCRIPT_PATH/rest_tool.py --id $id --type $input_type --outformat $output_format
|
|
|
9 </command>
|
|
|
10
|
|
|
11 <inputs>
|
|
|
12 <param format="txt" name="id" type="text" label="Specify the ID" />
|
|
|
13 <param name="input_type" multiple="false" type="select" label="Input Type">
|
|
|
14 <option value="bioassay">BioAssay</option>
|
|
|
15 <option value="compound">Compound</option>
|
|
|
16 </param>
|
|
|
17 <param name="output_format" type="select" label="Output Format">
|
|
|
18 <option value="tsv">tsv</option>
|
|
|
19 <option value="csv">csv</option>
|
|
|
20 <option value="txt">txt</option>
|
|
|
21 <option value="png">png</option>
|
|
|
22 <option value="json">json</option>
|
|
|
23 </param>
|
|
|
24 </inputs>
|
|
|
25 <outputs>
|
|
|
26 <data format="csv" name="output">
|
|
|
27 <change_format>
|
|
|
28 <when input="output_format" value="tsv" format="tsv" />
|
|
|
29 <when input="output_format" value="png" format="png" />
|
|
|
30 <when input="output_format" value="csv" format="csv" />
|
|
|
31 <when input="output_format" value="txt" format="txt" />
|
|
|
32 <when input="output_format" value="json" format="json" />
|
|
|
33 </change_format>
|
|
|
34 </data>
|
|
|
35 </outputs>
|
|
|
36 <tests>
|
|
|
37 </tests>
|
|
|
38 <help>
|
|
|
39 **What it does**
|
|
|
40
|
|
|
41 This tool fetches data from pubchem
|
|
|
42 </help>
|
|
|
43 </tool>
|