annotate query.xml @ 1:55ca5d902f62 draft default tip

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
author recetox
date Fri, 28 Jan 2022 16:24:56 +0000
parents 0369de831b32
children
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>
1
55ca5d902f62 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 0
diff changeset
3 <import>macros.xml</import>
0
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
4 </macros>
1
55ca5d902f62 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 0
diff changeset
5 <expand macro="creator"/>
0
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
6
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
7 <requirements>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
8 <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
9 <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
10 <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
11 <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
12 <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
13 <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
14 </requirements>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
15
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
16 <command><![CDATA[
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
17 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
18 $config
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
19 ]]></command>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
20
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
21 <configfiles>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
22 <configfile name="config"><![CDATA[
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
23 #def filetype(data):
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
24 #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
25 #return 'hdf'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
26 #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
27 #return 'csv'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
28 #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
29 #return 'tsv'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
30 #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
31 #return 'feather'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
32 #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
33 #return 'parquet'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
34 #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
35 #return 'sqlite'
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
36 #end if
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
37 #end def
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
38
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
39 #set $config = {
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
40 'tables': [
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
41 {
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
42 'path': str($table.file),
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
43 '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
44 '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
45 }
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
46 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
47 ],
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
48 'query': str($query),
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
49 'result': {
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
50 'path': str($output),
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
51 '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
52 'format': str($result.format)
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 }
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
55
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
56 #import json
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
57 #echo $json.dumps($config)
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
58 ]]></configfile>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
59 </configfiles>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
60
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
61 <inputs>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
62 <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
63 <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
64 <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
65 <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
66 <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
67 <expand macro="formats"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
68 </param>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
69 <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
70 <label>Table name</label>
1
55ca5d902f62 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 0
diff changeset
71 <help>Choose an unique name for the table which then you may use in the SQL Query.
55ca5d902f62 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 0
diff changeset
72 By default tables will be named as: t0, t1, ...</help>
0
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
73 </param>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
74 </repeat>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
75 <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
76 <label>SQL Query</label>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
77 <help>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
78 Type an arbitrary SQL SELECT to perform on the input tables. The input tables may be referred by their given names.
1
55ca5d902f62 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 0
diff changeset
79 An example query is SELECT employees.name AS employee, emails.value AS email FROM one JOIN b ON employees.id = emails.employee,
55ca5d902f62 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 0
diff changeset
80 provided that the input tables are named employees and emails.
0
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
81 </help>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
82 </param>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
83 <conditional name="result">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
84 <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
85 <label>SQL Query</label>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
86 <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
87 <expand macro="formats"/>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
88 </param>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
89 <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
90 <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
91 </conditional>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
92 </inputs>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
93
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
94 <outputs>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
95 <data name="output">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
96 <change_format>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
97 <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
98 <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
99 <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
100 <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
101 <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
102 <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
103 </change_format>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
104 </data>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
105 </outputs>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
106
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
107 <tests>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
108 <test>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
109 <repeat name="tables">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
110 <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
111 <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
112 </repeat>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
113 <repeat name="tables">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
114 <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
115 <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
116 </repeat>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
117 <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
118 <conditional name="result">
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
119 <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
120 </conditional>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
121 <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
122 </test>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
123 </tests>
0369de831b32 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/query commit e781279d988f26eff9ccfff898a7d8cc4f0ceafb"
recetox
parents:
diff changeset
124 </tool>