This repository has been archived by the owner on Oct 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
macros.xml
362 lines (344 loc) · 19.2 KB
/
macros.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<?xml version="1.0"?>
<macros>
<token name="@WRAPPER_VERSION@">0.9-RC2</token>
<xml name="requirements">
<requirements>
<requirement type="package" version="0.69.4">circos</requirement>
<requirement type="package" version="2.2.3">libgd</requirement>
<requirement type="package" version="2.7">python</requirement>
<requirement type="package" version="0.6.4">bcbiogff</requirement>
<requirement type="package" version="1.67">biopython</requirement>
</requirements>
</xml>
<xml name="citations">
<citations>
<citation type="doi">10.1101/gr.092759.109</citation>
</citations>
</xml>
<xml name="circos_color"
token_label="Color"
token_name="color"
token_value="#000000"
token_help=""
>
<param label="@LABEL@" type="color" name="@NAME@" value="@VALUE@" help="@HELP@">
<sanitizer>
<valid initial="string.letters,string.digits">
<add value="#" />
</valid>
</sanitizer>
</param>
</xml>
<xml name="auto_color"
token_name="color"
token_label="Color">
<conditional name="@NAME@" label="@LABEL@">
<param name="@NAME@_select" type="select" label="@LABEL@">
<option value="automatic" selected="true">Automatic Selection</option>
<option value="manual">Manual Specification</option>
</param>
<when value="automatic">
</when>
<when value="manual">
<param name="@NAME@" label="@LABEL@" type="color" value="#000000">
<sanitizer>
<valid initial="string.letters,string.digits">
<add value="#" />
</valid>
</sanitizer>
</param>
</when>
</conditional>
</xml>
<xml name="brewer_scale"
token_name="color"
token_label="Color">
<param name="@NAME@" type="select" label="@LABEL@">
<option value="purples-13-seq">Sequential: Purples</option>
<option value="reds-13-seq">Sequential: Reds</option>
<option value="oranges-13-seq">Sequential: Oranges</option>
<option value="greens-13-seq">Sequential: Greens</option>
<option value="blues-13-seq">Sequential: Blues</option>
<option value="greys-13-seq">Sequential: Greys</option>
<option value="bugn-13-seq">Sequential: Blue - Green</option>
<option value="bupu-13-seq">Sequential: Blue - Purple</option>
<option value="gnbu-13-seq">Sequential: Green - Blue</option>
<option value="orrd-13-seq">Sequential: Orange - Red</option>
<option value="pubu-13-seq">Sequential: Purple - Blue</option>
<option value="pubugn-13-seq">Sequential: Purple - Blue - Green</option>
<option value="purd-13-seq">Sequential: Purple - Red</option>
<option value="rdpu-13-seq">Sequential: Red - Purple</option>
<option value="ylgn-13-seq">Sequential: Yellow - Green</option>
<option value="ylgnbu-13-seq">Sequential: Yellow - Green - Blue</option>
<option value="ylorbr-13-seq">Sequential: Yellow - Orange - Brown</option>
<option value="ylorrd-13-seq">Sequential: Yellow - Orange - Red</option>
<option value="brbg-15-div">Diverging: Brown - Blue Green</option>
<option value="piyg-15-div">Diverging: Pink - Yellow Green</option>
<option value="prgn-15-div">Diverging: Purple - Green</option>
<option value="puor-15-div">Diverging: Purple - Orange</option>
<option value="rdbu-15-div">Diverging: Red - Blue</option>
<option value="rdgy-15-div">Diverging: Red - Grey</option>
<option value="rdylbu-15-div">Diverging: Red - Yellow - Blue</option>
<option value="rdylgn-15-div">Diverging: Red - Yellow - Green</option>
<option value="spectral-15-div">Diverging: Spectral</option>
<option value="accent-8-qual">Qualitative: Accent</option>
<option value="dark2-8-qual">Qualitative: Dark2</option>
<option value="paired-12-qual">Qualitative: Paired</option>
<option value="pastel1-9-qual">Qualitative: Pastel1</option>
<option value="pastel2-8-qual">Qualitative: Pastel2</option>
<option value="set1-9-qual">Qualitative: Set1</option>
<option value="set2-8-qual">Qualitative: Set2</option>
<option value="set3-12-qual">Qualitative: Set3</option>
</param>
</xml>
<xml name="axes">
<section name="sec_axes" title="Axes">
<repeat name="axes" title="Axis">
<param name="y0" type="float" value="0.0" label="Inside Radius (y0)" help="This is relative to the subplot you are currently in."/>
<param name="y1" type="float" value="1" label="Outside Radius (y1)" help="This is relative to the subplot you are currently in."/>
<expand macro="circos_color"/>
<param name="thickness" type="integer" value="1" label="Thickness"/>
<param name="spacing" type="float" value="0.1" label="Spacing" help="Relative spacing between each concentric arc"/>
</repeat>
</section>
</xml>
<xml name="backgrounds">
<section name="sec_bkgs" title="Backgrounds">
<repeat name="backgrounds" title="Background">
<param name="y0" type="float" value="0.0" label="Inside Radius (y0)" help="This is relative to the subplot you are currently in."/>
<param name="y1" type="float" value="1" label="Outside Radius (y1)" help="This is relative to the subplot you are currently in."/>
<expand macro="circos_color"/>
</repeat>
</section>
</xml>
<xml name="rules">
<section name="sec_rule" title="Rules">
<repeat name="rules" title="Rule">
<repeat name="conditions" title="Conditions to Apply">
<conditional name="application">
<param name="application_select" type="select" label="Condition">
<option value="1">Apply to Every Point</option>
<option value="on">Check for presence/absence per chromosome</option>
<option value="pos">Based on numerical position</option>
<option value="value">Apply based on point value</option>
<option value="var">Apply based on GFF3 qualifier value (when available)</option>
</param>
<when value="1">
</when>
<when value="on">
<param name="on_genomes" type="text" label="Comma separated list of contig IDs"/>
</when>
<when value="pos">
<param name="pos_gt" type="float" label="Greater than this base" value="1000.0" help="Leave as zero to disable this test"/>
<param name="pos_lt" type="float" label="Less than this base" value="0.0" help="Leave as zero to disable this test"/>
</when>
<when value="value">
<param name="pos_gt" type="float" label="Points above this value" value="0.0" help="Leave as zero to disable this test"/>
<param name="pos_lt" type="float" label="Points below this value" value="0.0" help="Leave as zero to disable this test"/>
</when>
<when value="var">
<param name="varname" type="text" label="Qualifier name"
help="Set to the name of the qualifier in the GFF3 file you wish to compare against" />
<param name="cond_select" type="select" label="Condition">
<option value="eq">Equal to (string)</option>
<option value="ne">Not equal to (string)</option>
</param>
<param name="varvalue" type="text" label="Qualifier value to compare against"/>
</when>
</conditional>
</repeat>
<repeat name="actions" title="Actions to Apply">
<conditional name="action">
<param name="action_select" type="select" label="Action">
<option value="show">Change Visibility</option>
<option value="fill_color">Change Fill Color for all points</option>
<option value="fill_color_value">Change Fill Color based on Value</option>
<option value="color">Change Stroke Color</option>
<option value="color_value">Change Stroke Color based on Value</option>
</param>
<when value="show">
<param name="action_value" type="boolean" truevalue="yes" falsevalue="no" label="Show"/>
</when>
<when value="fill_color">
<expand macro="circos_color" name="action_value" label="Fill Color"/>
</when>
<when value="color">
<expand macro="circos_color" name="action_value" label="Stroke Color"/>
</when>
<when value="fill_color_value">
<expand macro="brewer_scale" name="action_value" label="Fill Color"/>
<param name="min_value" type="float" value="-1" label="Expected minimum value of dataset"/>
<param name="max_value" type="float" value="1" label="Expected maximum value of dataset"/>
<param name="invert" type="boolean" truevalue="True" falsevalue="False" label="Invert Color Scale" />
</when>
<when value="color_value">
<expand macro="brewer_scale" name="action_value" label="Stroke Color"/>
<param name="min_value" type="float" value="-1" label="Expected minimum value of dataset"/>
<param name="max_value" type="float" value="1" label="Expected maximum value of dataset"/>
<param name="invert" type="boolean" truevalue="True" falsevalue="False" label="Invert Color Scale" />
</when>
</conditional>
</repeat>
<param name="continue_flow" type="boolean" truevalue="flow = continue" falsevalue="" label="Continue flow"
help="Allow rules after this one to be applied in addition to this rule. E.g. if one rule modifies font size, and another font colour, with continued flow they could both be applied rather than whichever was encountered first."/>
</repeat>
</section>
</xml>
<xml name="linkrules">
<section name="sec_link_rule" title="Rules">
<repeat name="rules" title="Rule">
<repeat name="conditions" title="Conditions to Apply" help="Multiple conditions will be combined using AND">
<conditional name="application">
<param name="application_select" type="select" label="Condition">
<option value="always">True / Always Applied</option>
<option value="interchr">Interchromosomal</option>
<option value="intrachr">Intrachromosomal</option>
<option value="chr">Chromosome</option>
<option value="dist">Distance between sides</option>
<option value="start1">Start position Left</option>
<option value="end1">End Position Left</option>
<option value="pos1">Middle position Left</option>
<option value="size1">Size Left</option>
<option value="start2">Start position Right</option>
<option value="end2">End Position Right</option>
<option value="pos2">Middle position Right</option>
<option value="size2">Size Right</option>
<option value="rev1">Reversed Left (link end is reversed (e.g. start > end) </option>
<option value="rev2">Reversed Right (link end is reversed (e.g. start > end) </option>
<option value="inv">Inverted (link is inverted (i.e. one of its ends is reversed). If both ends are reversed, the link is not inverted )</option>
</param>
<when value="chr">
<expand macro="chromosome_comparison"/>
</when>
<when value="start1">
<expand macro="integer_comparison"/>
</when>
<when value="end1">
<expand macro="integer_comparison"/>
</when>
<when value="pos1">
<expand macro="integer_comparison"/>
</when>
<when value="size1">
<expand macro="integer_comparison"/>
</when>
<when value="start2">
<expand macro="integer_comparison"/>
</when>
<when value="end2">
<expand macro="integer_comparison"/>
</when>
<when value="pos2">
<expand macro="integer_comparison"/>
</when>
<when value="size2">
<expand macro="integer_comparison"/>
</when>
<when value="dist">
<expand macro="integer_comparison"/>
</when>
<when value="rev1"/>
<when value="rev2"/>
<when value="inv"/>
<when value="interchr"/>
<when value="intrachr"/>
<when value="always"/>
</conditional>
</repeat>
<repeat name="actions" title="Actions to Apply">
<conditional name="action">
<param name="action_select" type="select" label="Action">
<option value="show">Change Visibility</option>
<option value="color">Change Link Color</option>
<option value="thickness">Change Thickness</option>
<option value="z">Change Z-depth</option>
</param>
<when value="show">
<param name="action_value" type="boolean" label="Show" truevalue="yes" falsevalue="no"/>
</when>
<when value="color">
<conditional name="dynamic">
<param name="dynamic_select" type="select" label="Static / Dynamic Change">
<option value="static">Static: Change is always applied</option>
<option value="dynamic">Dynamic: Change is sometimes applied</option>
</param>
<when value="static">
<expand macro="circos_color" label="Link Color" name="action_value"/>
</when>
<when value="dynamic">
<expand macro="brewer_scale" label="Fill Color" name="action_value"/>
<param name="min_value" type="float" value="-1" label="Expected minimum value of dataset"/>
<param name="max_value" type="float" value="1" label="Expected maximum value of dataset"/>
<param name="invert" type="boolean" truevalue="True" falsevalue="False" label="Invert Color Scale" />
</when>
</conditional>
</when>
<when value="thickness">
<param name="action_value" type="integer" value="1" label="Thickness"/>
</when>
<when value="z">
<conditional name="dynamic">
<param name="dynamic_select" type="select" label="Static or Dynamic Z-Depth">
<option value="static">Static</option>
<option value="dynamic">Dynamic (based on value)</option>
</param>
<when value="static">
<param name="action_value" type="float" value="1" label="Z-depth" help="Datasets with a higher z-depth value are drawn on top of datasets with lower z value"/>
</when>
<when value="dynamic">
<param name="min_value" type="float" value="-1" label="Expected minimum value of dataset"/>
<param name="max_value" type="float" value="1" label="Expected maximum value of dataset"/>
<param name="invert" type="boolean" truevalue="True" falsevalue="False" label="Invert Z-Depth Mapping" />
</when>
</conditional>
</when>
</conditional>
</repeat>
<param name="continue_flow" type="boolean" label="Continue flow" truevalue="flow = continue" falsevalue="" help="Allow rules after this one to be applied in addition to this rule. E.g. if one rule modifies font size, and another font colour, with continued flow they could both be applied rather than whichever was encountered first." />
</repeat>
</section>
</xml>
<xml name="integer_comparison">
<conditional name="comparison" >
<param name="compare" type="select" label="Comparison">
<option value="lt">less than</option>
<option value="gt">greater than</option>
</param>
<when value="lt">
<param name="compval" value="0" type="integer" label="value"/>
</when>
<when value="gt">
<param name="compval" value="0" type="integer" label="value"/>
</when>
</conditional>
</xml>
<xml name="chromosome_comparison">
<conditional name="comparison" >
<param name="compare" type="select" label="Comparison">
<option value="on">on chromosome (either side)</option>
<option value="from">from chromosome</option>
<option value="to">to chromosome</option>
<option value="fromto">from-to chromosome</option>
<option value="between">between chromosomes</option>
</param>
<!-- TODO select chromosome from metadata/file column instead of text fields -->
<when value="on">
<param name="compval" value="chr1" type="text" label="Chromosome"/>
</when>
<when value="from">
<param name="compval" value="chr1" type="text" label="Chromosome"/>
</when>
<when value="to">
<param name="compval" value="chr1" type="text" label="Chromosome"/>
</when>
<when value="fromto">
<param name="compval" value="chr1" type="text" label="From Chromosome"/>
<param name="compval2" value="chr1" type="text" label="To Chromosome"/>
</when>
<when value="between">
<param name="compval" value="chr1" type="text" label="Chromosome"/>
<param name="compval2" value="chr1" type="text" label="Chromosome"/>
</when>
</conditional>
</xml>
</macros>