Mercurial > repos > nathandunn > biolinkmonarchinitiative
comparison substance-associations.xml @ 2:88e1bd76b069 draft
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
author | nathandunn |
---|---|
date | Thu, 22 Jun 2017 15:28:43 -0400 |
parents | 4f6fba8332ec |
children |
comparison
equal
deleted
inserted
replaced
1:8fdad43e4250 | 2:88e1bd76b069 |
---|---|
1 <tool id="monarch-substance-associations" name="Substance Associations" version="0.1.0"> | 1 <tool id="monarch-substance-associations" name="Substance Associations" version="0.1.0"> |
2 <requirements/> | 2 <macros> |
3 <stdio> | 3 <import>macros.xml</import> |
4 <exit_code range="1:" /> | 4 </macros> |
5 </stdio> | 5 <expand macro="frontmatter" /> |
6 <command><![CDATA[ | 6 <command><![CDATA[ |
7 curl -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/bioentity/substance/$input/$association/?rows=$rows&fetch_objects=true' > $output | 7 curl --silent -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/bioentity/substance/$input/$association/?rows=$rows&fetch_objects=true' > $output |
8 ]]></command> | 8 ]]></command> |
9 <inputs> | 9 <inputs> |
10 <param name="input" type="text" format="txt" multiple="false" label="Substance (e.g. CHEBI:40036)" /> | 10 <param name="input" type="text" format="txt" multiple="false" label="Substance (e.g. CHEBI:40036)" /> |
11 <param name="association" type="select" multiple="false" display="radio" label="Type"> | 11 <param name="association" type="select" multiple="false" display="radio" label="Type"> |
12 <option value="participant_in">Participant In</option> | 12 <option value="participant_in">Participant In</option> |
13 <option value="roles">Roles</option> | 13 <option value="roles">Roles</option> |
14 <!--<option value="treats">Treats</option>--> | 14 <!--<option value="treats">Treats</option>--> |
15 </param> | 15 </param> |
16 <param name="rows" type="text" format="txt" multiple="false" value="1000" label="Num Rows"/> | 16 <param name="rows" type="text" format="txt" multiple="false" value="1000" label="Num Rows"/> |
17 </inputs> | 17 </inputs> |
18 <outputs> | 18 <expand macro="outputs" /> |
19 <data name="output" format="json" /> | |
20 </outputs> | |
21 <tests> | 19 <tests> |
22 <test> | 20 <test> |
23 <param name="input" value="CHEBI:40036"/> | 21 <param name="input" value="CHEBI:40036"/> |
24 <param name="association" value="participant_in"/> | 22 <param name="association" value="participant_in"/> |
25 <output name="output" file="participatant_in-for-substance.json"/> | 23 <output name="output" file="participatant_in-for-substance.json"/> |
34 <!--<param name="input" value="CHEBI:40036"/>--> | 32 <!--<param name="input" value="CHEBI:40036"/>--> |
35 <!--<param name="association" value="treats"/>--> | 33 <!--<param name="association" value="treats"/>--> |
36 <!--<output name="output" file="treats-for-substance.json"/>--> | 34 <!--<output name="output" file="treats-for-substance.json"/>--> |
37 <!--</test>--> | 35 <!--</test>--> |
38 </tests> | 36 </tests> |
39 <help><![CDATA[ | 37 <expand macro="citations" /> |
40 Pulls data from Monarch Initiative BioLink API web services as JSON. | |
41 https://api.monarchinitiative.org/api/ | |
42 ]]></help> | |
43 <citations> | |
44 <citation type="doi">doi:10.5281/zenodo.56412</citation> | |
45 </citations> | |
46 </tool> | 38 </tool> |
47 | 39 |