annotate query.xml @ 0:0369de831b32 draft

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
author recetox
date Wed, 09 Dec 2020 02:04:20 +0000
parents
children 55ca5d902f62
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
1 <tool id="query" name="Query" version="@TOOL_VERSION@">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
2 <macros>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
3 <token name="@TOOL_VERSION@">0.1</token>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
4 <xml name="formats">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
5 <option value="csv">csv</option>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
6 <option value="tsv">tsv</option>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
7 <option value="h5">h5</option>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
8 <option value="feather">feather</option>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
9 <option value="parquet">parquet</option>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
10 <option value="sqlite">sqlite</option>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
11 </xml>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
12 <xml name="internal_name" token_format="">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
13 <when value="@FORMAT@">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
14 <param name="name" type="text" help="Specify the format's internal name of the table."/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
15 </when>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
16 </xml>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
17 </macros>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
18
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
19 <requirements>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
20 <requirement type="package">click</requirement>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
21 <requirement type="package">pyarrow</requirement>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
22 <requirement type="package">pytables</requirement>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
23 <requirement type="package">pandas</requirement>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
24 <requirement type="package">pandasql</requirement>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
25 <requirement type="package" version="3.7">python</requirement>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
26 </requirements>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
27
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
28 <command><![CDATA[
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
29 python '$__tool_directory__/query.py'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
30 $config
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
31 ]]></command>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
32
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
33 <configfiles>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
34 <configfile name="config"><![CDATA[
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
35 #def filetype(data):
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
36 #if $data.is_of_type('h5')
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
37 #return 'hdf'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
38 #elif $data.is_of_type('csv')
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
39 #return 'csv'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
40 #elif $data.is_of_type('tsv', 'tabular')
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
41 #return 'tsv'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
42 #elif $data.is_of_type('feather', 'arrow')
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
43 #return 'feather'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
44 #elif $data.is_of_type('parquet')
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
45 #return 'parquet'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
46 #elif $data.is_of_type('sqlite')
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
47 #return 'sqlite'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
48 #end if
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
49 #end def
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
50
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
51 #set $config = {
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
52 'tables': [
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
53 {
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
54 'path': str($table.file),
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
55 'name': str($table.name) if $table.name else 't{}'.format(str($index)),
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
56 'format': str($table.format) if $table.format else $filetype($table.file)
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
57 }
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
58 for $index, $table in enumerate($tables)
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
59 ],
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
60 'query': str($query),
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
61 'result': {
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
62 'path': str($output),
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
63 'name': str($result.name) if str($result.format) in ('h5', 'hdf', 'sqlite') and $result.name else None,
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
64 'format': str($result.format)
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
65 }
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
66 }
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
67
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
68 #import json
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
69 #echo $json.dumps($config)
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
70 ]]></configfile>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
71 </configfiles>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
72
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
73 <inputs>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
74 <repeat name="tables" title="Table">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
75 <param name="file" type="data" format="csv,tsv,h5,feather,parquet,sqlite" label="File"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
76 <param name="format" type="select" optional="true">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
77 <label>Force the file format</label>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
78 <help>Force a particular file format to get around formats unknown to Galaxy, ie. Parquet.</help>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
79 <expand macro="formats"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
80 </param>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
81 <param name="name" type="text" optional="true">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
82 <label>Table name</label>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
83 <help>Choose an unique name for the table which then you may use in the SQL Query. By default tables will be named as: t0, t1, ...</help>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
84 </param>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
85 </repeat>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
86 <param name="query" type="text" area="true">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
87 <label>SQL Query</label>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
88 <help>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
89 Type an arbitrary SQL SELECT to perform on the input tables. The input tables may be referred by their given names.
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
90 An example query is SELECT employees.name AS employee, emails.value AS email FROM one JOIN b ON employees.id = emails.employee, provided that the input tables are named employees and emails.
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
91 </help>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
92 </param>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
93 <conditional name="result">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
94 <param name="format" type="select">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
95 <label>SQL Query</label>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
96 <help>Specify the file format of the query result.</help>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
97 <expand macro="formats"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
98 </param>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
99 <expand macro="internal_name" format="h5"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
100 <expand macro="internal_name" format="sqlite"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
101 </conditional>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
102 </inputs>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
103
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
104 <outputs>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
105 <data name="output">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
106 <change_format>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
107 <when input="result.format" value="h5" format="h5"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
108 <when input="result.format" value="csv" format="csv"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
109 <when input="result.format" value="tsv" format="tsv"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
110 <when input="result.format" value="feather" format="feather"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
111 <when input="result.format" value="parquet" format="parquet"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
112 <when input="result.format" value="sqlite" format="sqlite"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
113 </change_format>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
114 </data>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
115 </outputs>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
116
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
117 <tests>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
118 <test>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
119 <repeat name="tables">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
120 <param name="file" value="a.csv" ftype="csv"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
121 <param name="name" value="a"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
122 </repeat>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
123 <repeat name="tables">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
124 <param name="file" value="b.csv" ftype="csv"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
125 <param name="name" value="b"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
126 </repeat>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
127 <param name="query" value="SELECT a.x AS ax, a.y AS ay, a.z AS az, b.x AS bx, b.y AS by, b.z AS bz FROM a JOIN b ON a.x = b.x"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
128 <conditional name="result">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
129 <param name="format" value="csv"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
130 </conditional>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
131 <output name="output" file="ab.csv" ftype="csv"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
132 </test>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
133 </tests>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
134 </tool>