Mercurial > repos > geco-team > gmql_queries_composer
comparison gmql_operators_join.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 <macros> | |
2 <import>gmql_queries_macros.xml</import> | |
3 <xml name="join"> | |
4 <expand macro="input_var" name="input_var_anchor" label="Anchor Dataset" optional="false" /> | |
5 <expand macro="input_var" name="input_var_experiment" label="Experiment Dataset" optional="false" /> | |
6 <expand macro="output_var" /> | |
7 <section name="conditions_section" title="Join Conditions" expanded="true"> | |
8 <conditional name="conditions"> | |
9 <param name="c_type" type="select" label="Type of conditions" display="radio"> | |
10 <option value="distance">Only on genomic distances</option> | |
11 <option value="attributes">Only on region attributes</option> | |
12 <option value="both">Both types</option> | |
13 </param> | |
14 <when value="distance"> | |
15 <expand macro="genomic_predicate" /> | |
16 <expand macro="output_opt" | |
17 help="Declare which region is given in output for each input pair of anchor and experiment | |
18 regions satisfying the equi predicate and the genomic predicate. The default output option is CAT."> | |
19 <option value="CAT" selected="true">CAT: Outputs the concatenation between regions that satisfy predicates</option> | |
20 <option value="INT">INT: Outputs overlapping part (intersection) that satisfy predicates</option> | |
21 </expand> | |
22 </when> | |
23 <when value="attributes"> | |
24 <expand macro="equi_predicate" /> | |
25 <expand macro="output_opt" | |
26 help="Declare which region is given in output for each input pair of anchor and experiment | |
27 regions satisfying the equi predicate and the genomic predicate. Some options are not allowed | |
28 with conditions only on the attributes (INT and CAT)."/> | |
29 </when> | |
30 <when value="both"> | |
31 <expand macro="genomic_predicate"/> | |
32 <expand macro="equi_predicate"/> | |
33 <expand macro="output_opt" | |
34 help="Declare which region is given in output for each input pair of anchor and experiment | |
35 regions satisfying the equi predicate and the genomic predicate. The default output option is CAT."> | |
36 <option value="CAT" selected="true">CAT: Outputs the concatenation between regions that satisfy predicates </option> | |
37 <option value="INT">INT: Outputs overlapping part (intersection) that satisfy predicates</option> | |
38 </expand> | |
39 </when> | |
40 </conditional> | |
41 </section> | |
42 <section name="joinby" title="Condition on Samples Metadata" expanded="false" | |
43 help="This is used to select sample pairs satisfying certain conditions on their metadata | |
44 (e.g., regarding the same cell line or antibody target); it is expressed as a list of metadata | |
45 attributes whose names and values must match between samples in the Anchor dataset and the | |
46 Experiment Dataset in order for such samples to verify the condition and be considered for the join."> | |
47 <repeat name="joinby_clause" title="Attributes to match" min="0" default="0"> | |
48 <expand macro="metajoin_attribute" name="j_att" optional="true"> | |
49 <expand macro="metajoin_options"/> | |
50 </expand> | |
51 </repeat> | |
52 </section> | |
53 <expand macro="materialize_stm" /> | |
54 </xml> | |
55 <xml name="equi_predicate"> | |
56 <repeat name="region_attributes" title="Add Region Attribute" | |
57 min="1" default="1" | |
58 help="Region attributes which must exist in anchor dataset region for the experiment region | |
59 to be considered" > | |
60 <param name="attribute" type="text" label="Region Attribute"> | |
61 <expand macro="text_val" /> | |
62 </param> | |
63 </repeat> | |
64 </xml> | |
65 <xml name="genomic_predicate"> | |
66 <repeat name="distance_conditions" title="Conditions over genomic distances between samples regions" | |
67 min="1" max="4" default="1" | |
68 help="Genometric predicates are fundamental for JOIN commands: they allow the expression of a variety | |
69 of distal conditions all based on the concept of genomic distance. The genomic distance is defined as | |
70 the number of base pairs (i.e., nucleotides) between the closest opposite ends of two regions on to the | |
71 same DNA strand, or when at least one of the two regions has unknown strand, and belonging to the same | |
72 chromosome (it is not defined for regions on different chromosomes or different DNA strands). | |
73 Further details in the GMQL online guide or in the above help section."> | |
74 <conditional name="type_dc"> | |
75 <param label="Type" name="type_dc_value" type="select" display="radio"> | |
76 <option value="dist">Distance</option> | |
77 <option value="stream">Direction</option> | |
78 </param> | |
79 <when value="dist"> | |
80 <param name="dc" label="Condition" type="select" | |
81 help="The overall condition must contain at least one and at most four distal conditions. | |
82 There must be at least one less-equal distance or one less distance, | |
83 or a minimum distance clause (which can then be combined with other clauses) in order to | |
84 be well-formed and compile."> | |
85 <option value="MD">Minimum distance</option> | |
86 <option value="DL">Less distance</option> | |
87 <option value="DLE">Less or equal distance</option> | |
88 <option value="DG">Greater distance</option> | |
89 <option value="DGE">Greater or equal distance</option> | |
90 </param> | |
91 <param name="n" label="Value" type="integer" value="0" | |
92 help="In the GMQL framework, overlapping regions have negative distance while adjacent | |
93 regions have distance equal to 0"/> | |
94 </when> | |
95 <when value="stream"> | |
96 <param name="ds" label="Direction" display="radio" type="select" | |
97 help="This requires that the rest of the predicate holds only on the upstream (downstream) | |
98 genome with respect to the anchor region." > | |
99 <option value="UP">Upstream</option> | |
100 <option value="DOWN">Downstream</option> | |
101 </param> | |
102 </when> | |
103 </conditional> | |
104 </repeat> | |
105 </xml> | |
106 <xml name="output_opt" token_help="@HELP@"> | |
107 <param name="output_opt" type="select" label="Output options" | |
108 help="@HELP@" > | |
109 <option value="LEFT">LEFT: Outputs only anchor samples regions</option> | |
110 <option value="LEFT_DISTINCT">LEFT_DISTINCT: Outputs only anchor regions and eliminate duplicates</option> | |
111 <option value="RIGHT">RIGHT: Outpus only experiment samples regions</option> | |
112 <option value="RIGHT_DISTINCT">RIGHT_DISTINCT: Outputs only experiment samples regions and eliminate duplicates</option> | |
113 <option value="BOTH">BOTH: Outputs anchor samples regions, but it adds attributes of the relative experiments samples regions</option> | |
114 <yield /> | |
115 </param> | |
116 </xml> | |
117 </macros> |