comparison associations.xml @ 1:66ece4fd024f draft default tip

planemo upload commit 20eeb677e99874173440a365f2db04e315e7ebed
author nathandunn
date Wed, 28 Jun 2017 10:27:08 -0400
parents 028a3ffc17b4
children
comparison
equal deleted inserted replaced
0:028a3ffc17b4 1:66ece4fd024f
3 <import>macros.xml</import> 3 <import>macros.xml</import>
4 </macros> 4 </macros>
5 <expand macro="frontmatter" /> 5 <expand macro="frontmatter" />
6 <command><![CDATA[ 6 <command><![CDATA[
7 #if $type == 'find' 7 #if $type == 'find'
8 curl --silent -X GET --header 'Accept: application/json' 'http://biolink.planteome.org/apiapi/association/$type/?rows=$rows&fetch_objects=true&subject=$subject' > $output 8 curl --silent -X GET --header 'Accept: application/json' 'http://biolink.planteome.org/api/association/$type/?rows=$rows&fetch_objects=true&subject=$subject' > $output
9 #else if $type == 'from' 9 #else if $type == 'from'
10 curl --silent -X GET --header 'Accept: application/json' 'http://biolink.planteome.org/apiapi/association/$type/$subject?rows=$rows&fetch_objects=true' > $output 10 curl --silent -X GET --header 'Accept: application/json' 'http://biolink.planteome.org/api/association/$type/$subject?rows=$rows&fetch_objects=true' > $output
11 #else if $type == 'to' 11 #else if $type == 'to'
12 curl --silent -X GET --header 'Accept: application/json' 'http://biolink.planteome.org/apiapi/association/$type/$object?rows=$rows&fetch_objects=true' > $output 12 curl --silent -X GET --header 'Accept: application/json' 'http://biolink.planteome.org/api/association/$type/$object?rows=$rows&fetch_objects=true' > $output
13 #else if $type == 'between' 13 #else if $type == 'between'
14 curl --silent -X GET --header 'Accept: application/json' 'http://biolink.planteome.org/apiapi/association/$type/$subject/$object?rows=$rows&fetch_objects=true' > $output 14 curl --silent -X GET --header 'Accept: application/json' 'http://biolink.planteome.org/api/association/$type/$subject/$object?rows=$rows&fetch_objects=true' > $output
15 #end if 15 #end if
16 ]]></command> 16 ]]></command>
17 <inputs> 17 <inputs>
18 <param name="subject" type="text" format="txt" multiple="false" label="Subject"/> 18 <param name="subject" type="text" format="txt" multiple="false" label="Subject (e.g., EnsemblPlants:GRMZM2G061969_T01)"/>
19 <param name="object" type="text" format="txt" multiple="false" label="Object"/> 19 <param name="object" type="text" format="txt" multiple="false" label="Object (e.g., GO:0005783)"/>
20 <param name="type" type="select" multiple="false" display="radio" label="Type"> 20 <param name="type" type="select" multiple="false" display="radio" label="Type">
21 <option value="find">Find (subject)</option> 21 <option value="find">Find (subject)</option>
22 <option value="from">From (subject)</option> 22 <option value="from">From (subject)</option>
23 <option value="to">To (object)</option> 23 <option value="to">To (object)</option>
24 <option value="between">Between (subject -> object)</option> 24 <option value="between">Between (subject -> object)</option>
26 <param name="rows" type="text" format="txt" multiple="false" value="1000" label="Num Rows"/> 26 <param name="rows" type="text" format="txt" multiple="false" value="1000" label="Num Rows"/>
27 </inputs> 27 </inputs>
28 <expand macro="outputs" /> 28 <expand macro="outputs" />
29 <tests> 29 <tests>
30 <test> 30 <test>
31 <param name="subject" value="NCBIGene:84570"/> 31 <param name="subject" value="EnsemblPlants:GRMZM2G061969_T01"/>
32 <param name="type" value="find"/> 32 <param name="type" value="find"/>
33 <output name="output" file="find-associations-for-subject.json"/> 33 <output name="output" file="find-associations-for-subject.json"/>
34 </test> 34 </test>
35 <test> 35 <test>
36 <param name="subject" value="NCBIGene:84570"/> 36 <param name="subject" value="EnsemblPlants:GRMZM2G061969_T01"/>
37 <param name="type" value="from"/> 37 <param name="type" value="from"/>
38 <output name="output" file="from-associations-for-subject.json"/> 38 <output name="output" file="from-associations-for-subject.json"/>
39 </test> 39 </test>
40 <test> 40 <test>
41 <param name="object" value="MP:0013765"/> 41 <param name="object" value="GO:0005783"/>
42 <param name="type" value="to"/> 42 <param name="type" value="to"/>
43 <output name="output" file="to-associations-for-object.json"/> 43 <output name="output" file="to-associations-for-object.json"/>
44 </test> 44 </test>
45 <test> 45 <test>
46 <param name="subject" value="MGI:1342287"/> 46 <param name="subject" value="EnsemblPlants:GRMZM2G061969_T01"/>
47 <param name="object" value="MP:0013765"/> 47 <param name="object" value="GO:0005783"/>
48 <param name="type" value="between"/> 48 <param name="type" value="between"/>
49 <output name="output" file="between-associations.json"/> 49 <output name="output" file="between-associations.json"/>
50 </test> 50 </test>
51 </tests> 51 </tests>
52 <expand macro="citations" /> 52 <expand macro="citations" />