Mercurial > repos > geco-team > gmql_queries_composer
comparison gmql_operators_project.xml @ 0:a80c93182db3 draft default tip
planemo upload for repository https://github.com/lu-brn/gmql-galaxy commit 953ee36ceda5814dc9baa03427bc0eb4ee2e93bd-dirty
author | geco-team |
---|---|
date | Tue, 26 Jun 2018 09:08:06 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a80c93182db3 |
---|---|
1 <macro> | |
2 <import>gmql_queries_macros.xml</import> | |
3 <xml name="project"> | |
4 <expand macro="input_var" name="input_var" label="Input Dataset" /> | |
5 <expand macro="output_var" /> | |
6 <expand macro="sec_attributes" sec="region_att" title="Region attributes to keep" attname="Region Attribute"/> | |
7 <expand macro="sec_attributes" sec="meta_att" title="Metadata attributes to keep" attname="Metadata Attribute"/> | |
8 <section name="project_new_regions" title="New Genomic Region Attributes" expanded="false" | |
9 help="Generate new genomic region attributes functions on existing region or metadata attributes or | |
10 constants. It is also possible to rename an existing field." > | |
11 <repeat name="new_region_att" title="Define Region Attribute" min="0"> | |
12 <param name="new_name" type="text" label="New attribute name"> | |
13 <expand macro="text_val"/> | |
14 </param> | |
15 <conditional name="gen_function"> | |
16 <expand macro="gen_type_functions" label="Type of function to apply to generate new region attribute"> | |
17 <option value="NULL">Define a new numeric region attribute with "null" value</option> | |
18 <option value="META">Value of a metadata attribute</option> | |
19 </expand> | |
20 <expand macro="gen_arguments"> | |
21 <when value="NULL"> | |
22 <param name="att_type" type="select" label="Type of new attribute"> | |
23 <option value="INTEGER">INTEGER</option> | |
24 <option value="INTEGER">DOUBLE</option> | |
25 </param> | |
26 </when> | |
27 <when value="META"> | |
28 <expand macro="f_argument" label="Name of the metadata attribute to use as source"/> | |
29 <param name="att_type" type="select" label="Type of new attribute"> | |
30 <option value="INTEGER">INTEGER</option> | |
31 <option value="INTEGER">DOUBLE</option> | |
32 <option value="STRING">STRING (for any case when the attribute has not numerical values)</option> | |
33 </param> | |
34 </when> | |
35 </expand> | |
36 </conditional> | |
37 </repeat> | |
38 </section> | |
39 <section name="project_new_meta" title="New Metadata Attributes" expanded="false" | |
40 help="Generate new metadata attributes functions on existing metadata attributes or constants. | |
41 It is also possible to rename an existing field." > | |
42 <repeat name="new_meta_att" title="Define Metadata Attribute" min="0"> | |
43 <param name="new_name" type="text" label="New attribute name" > | |
44 <expand macro="text_val" /> | |
45 </param> | |
46 <conditional name="gen_function"> | |
47 <expand macro="gen_type_functions" label="Type of function to apply to generate new metadata attribute"> | |
48 </expand> | |
49 <expand macro="gen_arguments" > | |
50 </expand> | |
51 </conditional> | |
52 </repeat> | |
53 </section> | |
54 <expand macro="materialize_stm" /> | |
55 </xml> | |
56 <xml name="gen_type_functions" token_label="@LABEL@"> | |
57 <param name="gen_type" type="select" label="@LABEL@"> | |
58 <option value="aggregate">Aggregate function</option> | |
59 <option value="arithmetic">Arithmetic expression</option> | |
60 <option value="SQRT">Square root</option> | |
61 <option value="rename">Rename a field</option> | |
62 <option value="fixed">Create and set all instances to a value</option> | |
63 <yield /> | |
64 </param> | |
65 </xml> | |
66 <xml name="gen_arguments"> | |
67 <when value="aggregate"> | |
68 <expand macro="aggrFuncs" optional="true" | |
69 help="Sum, average, maximum, minimum and standard deviation are only for numerical attributes" | |
70 label="Function to apply to generate new region attribute"/> | |
71 <expand macro="f_argument" label="Region attribute over which apply function"/> | |
72 </when> | |
73 <when value="arithmetic"> | |
74 <param name="expression" label="Expression" type="text" | |
75 help="All basic mathematical operations (+, -, *, /), including usage of parenthesis"> | |
76 <validator type="regex" message="It includes not valid characters">[\w\.\(\)\-\+\*\/\s]+</validator> | |
77 </param> | |
78 </when> | |
79 <when value="SQRT"> | |
80 <expand macro="f_argument" label="Region attribute over which apply function"/> | |
81 </when> | |
82 <when value="rename"> | |
83 <expand macro="f_argument" label="New name"/> | |
84 </when> | |
85 <when value="fixed"> | |
86 <expand macro="f_argument" label="Defined value"/> | |
87 </when> | |
88 <yield/> | |
89 </xml> | |
90 <xml name="f_argument" token_label="@LABEL@"> | |
91 <param name="arg" type="text" label="@LABEL@"> | |
92 <expand macro="text_val"/> | |
93 </param> | |
94 </xml> | |
95 <xml name="sec_attributes" token_sec="@SEC@" token_title="@TITLE@" token_attname="@ATTNAME@"> | |
96 <section name="@SEC@" title="@TITLE@" | |
97 help="The PROJECT operator creates, from an existing dataset, a new dataset with all the samples | |
98 (with their regions and region values) in the input one, but keeping for each sample in the input dataset | |
99 only those metadata and/or region attributes expressed in the following sections. Note that if no | |
100 options are given, the default behavior is to remove all the region attributes which are not coordinates | |
101 (i.e., only chr, start, stop, and strand are kept)"> | |
102 <conditional name="allbut"> | |
103 <param name="allbut_flag" type="select" label="How to list attributes"> | |
104 <option value="keep">List only the ones to keep</option> | |
105 <option value="exclude">Keep all attributes and list what to exclude</option> | |
106 </param> | |
107 <when value="keep"> | |
108 <expand macro="attribute_field" name="list_keep" min="1" attname="@ATTNAME@" /> | |
109 </when> | |
110 <when value="exclude"> | |
111 <expand macro="attribute_field" name="list_exclude" min="0" attname="@ATTNAME@" /> | |
112 </when> | |
113 </conditional> | |
114 </section> | |
115 </xml> | |
116 <xml name="attribute_field" token_name="@NAME@" token_min="@MIN@" token_attname="@ATTNAME@"> | |
117 <repeat name="@NAME@" min="@MIN@" title="@ATTNAME@" | |
118 help="The wildcard '?' can be used in place of the syntax (at most one per attribute)"> | |
119 <param name="attribute" type="text" label="Attribute Name" optional="true"> | |
120 <validator type="regex" message="Format not valid">(\?\.)?[\w]+|[\w]+(\.\?)|(\?\.)[\w]+(\.\?)$</validator> | |
121 <option value="attribute">attribute</option> | |
122 <option value="?.attribute">?.attribute</option> | |
123 <option value="dataset.?">dataset.?</option> | |
124 <option value="dataset.?.attribute">dataset.?.attribute</option> | |
125 </param> | |
126 </repeat> | |
127 </xml> | |
128 </macro> |