Mercurial > repos > nathandunn > biolinkmonarchinitiative
comparison associations.xml @ 0:4f6fba8332ec draft
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
author | nathandunn |
---|---|
date | Wed, 21 Jun 2017 18:42:56 -0400 |
parents | |
children | 88e1bd76b069 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f6fba8332ec |
---|---|
1 <tool id="monarch-associations" name="Associations" version="0.1.0"> | |
2 <requirements/> | |
3 <stdio> | |
4 <exit_code range="1:"/> | |
5 </stdio> | |
6 <command><![CDATA[ | |
7 #if $type == 'find' | |
8 curl -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/association/$type/?rows=$rows&fetch_objects=true&subject=$subject' > $output | |
9 #else if $type == 'from' | |
10 curl -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/association/$type/$subject?rows=$rows&fetch_objects=true' > $output | |
11 #else if $type == 'to' | |
12 curl -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/association/$type/$object?rows=$rows&fetch_objects=true' > $output | |
13 #else if $type == 'between' | |
14 curl -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/association/$type/$subject/$object?rows=$rows&fetch_objects=true' > $output | |
15 #end if | |
16 ]]></command> | |
17 <inputs> | |
18 <param name="subject" type="text" format="txt" multiple="false" label="Subject"/> | |
19 <param name="object" type="text" format="txt" multiple="false" label="Object"/> | |
20 <param name="type" type="select" multiple="false" display="radio" label="Type"> | |
21 <option value="find">Find (subject)</option> | |
22 <option value="from">From (subject)</option> | |
23 <option value="to">To (object)</option> | |
24 <option value="between">Between (subject -> object)</option> | |
25 </param> | |
26 <param name="rows" type="text" format="txt" multiple="false" value="1000" label="Num Rows"/> | |
27 </inputs> | |
28 <outputs> | |
29 <data name="output" format="json"/> | |
30 </outputs> | |
31 <tests> | |
32 <test> | |
33 <param name="subject" value="NCBIGene:84570"/> | |
34 <param name="type" value="find"/> | |
35 <output name="output" file="find-associations-for-subject.json"/> | |
36 </test> | |
37 <test> | |
38 <param name="subject" value="NCBIGene:84570"/> | |
39 <param name="type" value="from"/> | |
40 <output name="output" file="from-associations-for-subject.json"/> | |
41 </test> | |
42 <test> | |
43 <param name="object" value="MP:0013765"/> | |
44 <param name="type" value="to"/> | |
45 <output name="output" file="to-associations-for-object.json"/> | |
46 </test> | |
47 <test> | |
48 <param name="subject" value="MGI:1342287"/> | |
49 <param name="object" value="MP:0013765"/> | |
50 <param name="type" value="between"/> | |
51 <output name="output" file="between-associations.json"/> | |
52 </test> | |
53 </tests> | |
54 <help><![CDATA[ | |
55 Pulls data from Monarch Initiative BioLink API web services as JSON. | |
56 https://api.monarchinitiative.org/api/ | |
57 ]]></help> | |
58 <citations> | |
59 <citation type="doi">doi:10.5281/zenodo.56412</citation> | |
60 </citations> | |
61 </tool> | |
62 |