Mercurial > repos > nathandunn > biolinkmonarchinitiative
annotate associations.xml @ 5:6eaaeedf2f37 draft default tip
planemo upload commit 469f80a2162a7284b6299615caf6aee64bb34167
author | nathandunn |
---|---|
date | Mon, 04 Dec 2017 21:50:52 -0500 |
parents | 88e1bd76b069 |
children |
rev | line source |
---|---|
0
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
1 <tool id="monarch-associations" name="Associations" version="0.1.0"> |
2
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
2 <macros> |
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
3 <import>macros.xml</import> |
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
4 </macros> |
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
5 <expand macro="frontmatter" /> |
0
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
6 <command><![CDATA[ |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
7 #if $type == 'find' |
2
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
8 curl --silent -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/association/$type/?rows=$rows&fetch_objects=true&subject=$subject' > $output |
0
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
9 #else if $type == 'from' |
2
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
10 curl --silent -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/association/$type/$subject?rows=$rows&fetch_objects=true' > $output |
0
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
11 #else if $type == 'to' |
2
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
12 curl --silent -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/association/$type/$object?rows=$rows&fetch_objects=true' > $output |
0
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
13 #else if $type == 'between' |
2
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
14 curl --silent -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/association/$type/$subject/$object?rows=$rows&fetch_objects=true' > $output |
0
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
15 #end if |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
16 ]]></command> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
17 <inputs> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
18 <param name="subject" type="text" format="txt" multiple="false" label="Subject"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
19 <param name="object" type="text" format="txt" multiple="false" label="Object"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
20 <param name="type" type="select" multiple="false" display="radio" label="Type"> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
21 <option value="find">Find (subject)</option> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
22 <option value="from">From (subject)</option> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
23 <option value="to">To (object)</option> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
24 <option value="between">Between (subject -> object)</option> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
25 </param> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
26 <param name="rows" type="text" format="txt" multiple="false" value="1000" label="Num Rows"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
27 </inputs> |
2
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
28 <expand macro="outputs" /> |
0
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
29 <tests> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
30 <test> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
31 <param name="subject" value="NCBIGene:84570"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
32 <param name="type" value="find"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
33 <output name="output" file="find-associations-for-subject.json"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
34 </test> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
35 <test> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
36 <param name="subject" value="NCBIGene:84570"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
37 <param name="type" value="from"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
38 <output name="output" file="from-associations-for-subject.json"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
39 </test> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
40 <test> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
41 <param name="object" value="MP:0013765"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
42 <param name="type" value="to"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
43 <output name="output" file="to-associations-for-object.json"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
44 </test> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
45 <test> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
46 <param name="subject" value="MGI:1342287"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
47 <param name="object" value="MP:0013765"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
48 <param name="type" value="between"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
49 <output name="output" file="between-associations.json"/> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
50 </test> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
51 </tests> |
2
88e1bd76b069
planemo upload commit 91b079b5648caa7a8795ec0957a4b11e104d986e
nathandunn
parents:
0
diff
changeset
|
52 <expand macro="citations" /> |
0
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
53 </tool> |
4f6fba8332ec
planemo upload commit 570b5e3caa1a2bd2d9937fb6acc3ea991bfeaa10-dirty
nathandunn
parents:
diff
changeset
|
54 |