comparison macros.xml @ 0:d78175596286 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit cd77dffaad652cfb75b98bde5231beaa6d63cd5b-dirty
author fubar
date Mon, 08 Jan 2024 09:20:33 +0000
parents
children 2de9f585505b
comparison
equal deleted inserted replaced
-1:000000000000 0:d78175596286
1 <?xml version="1.0"?>
2 <macros>
3 <token name="@TOOL_VERSION@">2.10.0</token>
4 <xml name = "edamInc">
5 <edam_topics>
6 <edam_topic>topic_3307</edam_topic>
7 <edam_topic>topic_0092</edam_topic>
8 </edam_topics>
9 <edam_operations>
10 <edam_operation>operation_0573</edam_operation>
11 <edam_operation>operation_0564</edam_operation>
12 </edam_operations>
13 </xml>
14 <xml name="requirements">
15 <requirements>
16 <requirement type="package" version="@TOOL_VERSION@">jbrowse2</requirement>
17 <requirement type="package" version="1.82">biopython</requirement>
18 <requirement type="package" version="0.7.0">bcbio-gff</requirement>
19 <requirement type="package" version="1.19">samtools</requirement>
20 <requirement type="package" version="6.0.1">pyyaml</requirement>
21 <requirement type="package" version="1.11">tabix</requirement>
22 <requirement type="package" version="4.6.0">findutils</requirement>
23 <yield/>
24 </requirements>
25 </xml>
26 <token name="@DATA_DIR@">\$GALAXY_JBROWSE_SHARED_DIR</token>
27 <token name="@WRAPPER_VERSION@">galaxy0</token>
28 <token name="@ATTRIBUTION@"><![CDATA[
29 **Attribution**
30 This Galaxy tool relies on the JBrowse, maintained by the GMOD Community. The Galaxy wrapper is developed by the IUC
31 This xml currently fails silently when profile=22.05 is set.
32 ]]>
33 </token>
34 <xml name="genome_selector"
35 token_help=""
36 token_label="Fasta sequences"
37 token_optional="False" >
38 <conditional name="reference_genome">
39 <param help="Built-in references" label="Reference genome to display" name="genome_type_select" type="select">
40 <option selected="True" value="indexed">Use a built-in genome</option>
41 <option value="history">Use a genome from history</option>
42 </param>
43 <when value="indexed">
44 <param
45 help="@HELP@"
46 label="@LABEL@"
47 name="genomes"
48 type="select"
49 optional="@OPTIONAL@"
50 >
51 <options from_data_table="all_fasta">
52 <filter column="2" type="sort_by" />
53 <validator message="No genomes are available for the selected input dataset" type="no_options" />
54 </options>
55 </param>
56 </when>
57 <when value="history">
58 <param
59 format="fasta"
60 label="@LABEL@"
61 help="@HELP@"
62 name="genomes"
63 type="data"
64 optional="@OPTIONAL@"
65 multiple="True" />
66 </when>
67 </conditional>
68 </xml>
69
70 <xml name="auto_manual_tk"
71 token_cond_label="Color"
72 token_cond_name="color"
73 token_select_label="Color Specification"
74 token_select_name="color_select"
75 token_automatic_label="Automatically selected"
76 token_manual_label="Manual Color Selection">
77 <conditional name="@COND_NAME@" label="@COND_LABEL@">
78 <param type="select" label="@SELECT_LABEL@" name="@SELECT_NAME@">
79 <option value="automatic" selected="true">@AUTOMATIC_LABEL@</option>
80 <option value="manual">@MANUAL_LABEL@</option>
81 </param>
82 <when value="automatic">
83 </when>
84 <when value="manual">
85 <yield />
86 </when>
87 </conditional>
88 </xml>
89
90 <xml name="jb_color"
91 token_label="JBrowse style.color"
92 token_name="style_color"
93 token_value="goldenrod"
94 token_help="Basic color of features. Most glyphs interpret this as the fill color of the rectangle they draw. Color syntax is the same as that used for CSS"
95 >
96 <param label="@LABEL@" type="color" name="@NAME@" value="@VALUE@" help="@HELP@">
97 <sanitizer>
98 <valid initial="string.letters,string.digits">
99 <add value="#" />
100 </valid>
101 </sanitizer>
102 </param>
103 </xml>
104
105 <xml name="auto_color"
106 token_cond_label="Color"
107 token_cond_name="color"
108 token_select_label="Color Selection"
109 token_select_name="color_select"
110 token_automatic_label="Automatically selected"
111 token_manual_label="Manual Color Selection">
112 <expand macro="auto_manual_tk"
113 cond_label="@COND_LABEL@"
114 cond_name="@COND_NAME@"
115 select_label="@SELECT_LABEL@"
116 select_name="@SELECT_NAME@"
117 automatic_label="@AUTOMATIC_LABEL@"
118 manual_label="@MANUAL_LABEL@">
119 <expand macro="jb_color" />
120 <yield />
121 </expand>
122 </xml>
123
124
125
126 <xml name="brewer_scheme">
127 <param type="select" label="Brewer color Scheme" name="brewer_scheme">
128 <option value="BrBg">BrBg: Brown - Blue Green</option>
129 <option value="PiYg">PiYg: Pink - Yellow Green</option>
130 <option value="PRGn">PRGn: Purple Red - Green</option>
131 <option value="PuOr">PuOr: Purple - Orange</option>
132 <option value="RdBu" selected="true">RdBu: Red - Blue</option>
133 <option value="RdGy">RdGy: Red - Gray</option>
134 <option value="RdYlBu">RdYlBu: Red - Yellow - Blue</option>
135 <option value="RdYlGn">RdYlBu: Red - Yellow - Green</option>
136 <option value="Spectral">Spectral</option>
137 </param>
138 </xml>
139
140 <xml name="general_options">
141 <section name="jbgen" title="General JBrowse Options [Advanced]" expanded="false">
142 <param label="Default location" type="text" name="defaultLocation" value="" help="Initial location to be shown for users who have never visited the browser before. Example: 'ctgA:1234..5678'"/>
143 <param label="Session name" type="text" name="session_name" value="New session" help="Displayed at the top of the window"/>
144 <param label="Enable analytics" help="Will send usage data to Google Analytics, see https://github.com/GMOD/jbrowse-components/issues/1166" name="enableAnalytics" type="boolean" checked="false" truevalue="true" falsevalue="false" />
145
146 <param name="primary_color" type="color" label="Primary color" value="#0D233F">
147 <sanitizer>
148 <valid initial="string.ascii_letters,string.digits">
149 <add value="#" />
150 </valid>
151 </sanitizer>
152 </param>
153 <param name="secondary_color" type="color" label="Secondary color" value="#721E63">
154 <sanitizer>
155 <valid initial="string.ascii_letters,string.digits">
156 <add value="#" />
157 </valid>
158 </sanitizer>
159 </param>
160 <param name="tertiary_color" type="color" label="Tertiary color" value="#135560">
161 <sanitizer>
162 <valid initial="string.ascii_letters,string.digits">
163 <add value="#" />
164 </valid>
165 </sanitizer>
166 </param>
167 <param name="quaternary_color" type="color" label="Quaternary color" value="#FFB11D">
168 <sanitizer>
169 <valid initial="string.ascii_letters,string.digits">
170 <add value="#" />
171 </valid>
172 </sanitizer>
173 </param>
174
175 <param label="Font size" name="font_size" type="integer" value="10" />
176 </section>
177 </xml>
178
179 <xml name="color_selection_minmax">
180 <section name="jbcolor" title="JBrowse Color Options [Advanced]" expanded="false">
181 <!-- Abuse auto/manual for bicolor pivot. Means we'll have to handle the
182 auto case as well, but may be safe to just say "brewer colors? Pff,
183 red/blue" -->
184 <expand macro="auto_manual_tk"
185 token_cond_label="Color"
186 token_cond_name="color"
187 token_select_label="Color Selection"
188 token_select_name="color_select"
189 token_automatic_label="Automatically selected"
190 token_manual_label="Manual Color Selection">
191 <expand macro="jb_color"
192 label="JBrowse style.pos_color"
193 name="style_pos_color"
194 value="blue"
195 help="CSS color, default 'blue'. When drawing bicolor plots, the fill color to use for values that are above the pivot point." />
196 <expand macro="jb_color"
197 label="JBrowse style.neg_color"
198 name="style_neg_color"
199 value="red"
200 help=" CSS color, default 'red'. When drawing bicolor plots, the fill color to use for values that are below the pivot point." />
201 </expand>
202
203 <conditional name="bicolor_pivot" label="Bicolor Pivot">
204 <param type="select" label="Bicolor Pivot" name="bicolor_pivot_select">
205 <option value="zero" selected="true">Zero</option>
206 <option value="mean">Mean</option>
207 <option value="custom">Custom Value</option>
208 </param>
209 <when value="zero" />
210 <when value="mean" />
211 <when value="custom">
212 <param label="JBrowse style.bicolor_pivot" type="float" name="pivot_point" value="0.0" help="Where to change from pos_color to neg_color when drawing bicolor plots." />
213 </when>
214 </conditional>
215 </section>
216 </xml>
217
218 <xml name="color_selection"
219 token_scaling_lin_select="true"
220 token_scaling_log_select="false"
221 >
222 <section name="jbcolor_scale" title="JBrowse Feature Score Scaling &amp; Coloring Options [Advanced]" expanded="false">
223 <conditional name="color_score" label="JBrowse style.color &amp; Score relationship">
224 <param type="select" label="Color Score Algorithm" name="color_score_select" help="How to color the features. If it is based on score, then features with a score attribute anywhere in their hierachy will have their color affected by the score. If you choose to ignore the score, then you'll be able to select a single solid color for every feature in the track">
225 <option value="score">Based on score</option>
226 <option value="none" selected="true">Ignore score</option>
227 </param>
228 <when value="none">
229 <!-- When no scaling is done, no scores available, then just let the
230 user choose a base color for the track -->
231 <expand macro="auto_color" />
232 </when>
233 <when value="score">
234 <!-- Scaling -->
235 <param type="select" label="JBrowse style.color function's score scaling" name="score_scaling"
236 help="How should the colors be distributed across the values? For blast results which distributes scores on the scale of approximately [1e-500, 10], it makes sense to request a logarithmic scaling of the color values. Logarithmic is indeed the default for blast. However other analysis methods may produce scores on ranges such as [0, 100] where a linear scale would be more appropriate for color distribution.">
237 <option value="linear" selected="@SCALING_LIN_SELECT@">Linear scaling</option>
238 <option value="logarithmic" selected="false">Logarithmic scaling</option>
239 <option value="blast" selected="@SCALING_LOG_SELECT@">Blast scaling</option>
240 </param>
241
242 <!-- Scaling Bounds -->
243 <conditional name="score_scales" label="Minimum/Maximum values for track scores">
244 <param type="select" label="How should minimum and maximum values be determined for the scores of the features" name="scale_select">
245 <option value="automatic" selected="true">Automatically determined</option>
246 <option value="manual">Manually specify minimum and maximum expected scores for the feature track</option>
247 </param>
248 <when value="automatic" />
249 <when value="manual">
250 <param label="Minimum expected score" name="minimum" type="integer" value="0" />
251 <param label="Maximum expected score" name="maximum" type="integer" value="100" />
252 </when>
253 </conditional>
254
255 <!-- Scale color -->
256 <conditional name="color_scheme" label="Color Scheme for scored features">
257 <param type="select" label="JBrowse style.color function's color scheme for scored values" name="score_scheme">
258 <option value="opacity">Opacity (high scores = 1.0 opacity)</option>
259 <!--<option value="brewer">Brewer Color Schemes</option>-->
260 </param>
261 <when value="opacity">
262 <!-- Single color selection mode -->
263 <expand macro="auto_color" />
264 </when>
265 <!--<when value="brewer">-->
266 <!--[> Brewer continuum selection <]-->
267 <!--<expand macro="brewer_scheme" />-->
268 <!--</when>-->
269 </conditional>
270 </when>
271 </conditional>
272 </section>
273 </xml>
274
275 <xml name="track_visibility">
276 <param type="select" label="Track Visibility" name="track_visibility">
277 <option value="default_off">Off when browser opens</option>
278 <option value="default_on" selected="true">On when browser opens</option>
279 </param>
280 </xml>
281
282 <xml name="track_styling_linear">
283 <param label="Show labels" name="show_labels" type="boolean" checked="true" truevalue="true" falsevalue="false" />
284 <param label="Show descriptions" name="show_descriptions" type="boolean" checked="true" truevalue="true" falsevalue="false" />
285 <param name="display_mode" type="select" label="Display mode">
286 <option value="normal" selected="true">normal</option>
287 <option value="compact">compact</option>
288 <option value="reducedRepresentation">reducedRepresentation</option>
289 <option value="collapse">collapse</option>
290 </param>
291 <param label="Max height" name="max_height" type="integer" value="600" help="Maximum height that the track is permitted to reach in pixels."/>
292 </xml>
293
294 <xml name="track_styling_feature">
295 <section name="jbstyle" title="JBrowse Styling Options [Advanced]" expanded="false">
296 <conditional name="track_style">
297 <param name="display" type="select" label="Display style" help="How the track will be displayed by default">
298 <option value="LinearBasicDisplay" selected="true">LinearBasicDisplay</option>
299 <option value="LinearArcDisplay">LinearArcDisplay</option>
300 </param>
301 <when value="LinearBasicDisplay">
302 <expand macro="track_styling_linear"/>
303
304 <!-- examples: https://github.com/GMOD/jbrowse-components/discussions/2729
305 and https://github.com/GMOD/jbrowse-components/blob/main/plugins/svg/src/SvgFeatureRenderer/configSchema.ts#L41 -->
306 <param label="Features label"
307 type="text"
308 name="label"
309 value="jexl:get(feature,'name') || get(feature,'id')"
310 help="See https://jbrowse.org/jb2/docs/config_guide/#configuration-callbacks for syntax">
311 <sanitizer>
312 <valid initial="default">
313 <add value="|" />
314 <add value="{"/>
315 <add value="}"/>
316 <add value="!"/>
317 <add value="?"/>
318 <add value="+"/>
319 <add value="="/>
320 <add value="'"/>
321 </valid>
322 </sanitizer>
323 </param>
324 <param label="Features description"
325 type="text"
326 name="description"
327 value="jexl:get(feature,'note') || get(feature,'description')"
328 help="See https://jbrowse.org/jb2/docs/config_guide/#configuration-callbacks for syntax">
329 <sanitizer>
330 <valid initial="default">
331 <add value="|" />
332 <add value="{"/>
333 <add value="}"/>
334 <add value="!"/>
335 <add value="?"/>
336 <add value="+"/>
337 <add value="="/>
338 <add value="'"/>
339 </valid>
340 </sanitizer>
341 </param>
342 </when>
343 <when value="LinearArcDisplay"/>
344 </conditional>
345 </section>
346 </xml>
347
348 <xml name="track_styling_xam">
349 <section name="jbstyle" title="JBrowse Styling Options [Advanced]" expanded="false">
350 <conditional name="track_style">
351 <param name="display" type="select" label="Display style" help="How the track will be displayed by default">
352 <option value="LinearAlignmentsDisplay" selected="true">LinearAlignmentsDisplay</option>
353 <option value="LinearPileupDisplay">LinearPileupDisplay</option>
354 <option value="LinearSNPCoverageDisplay">LinearSNPCoverageDisplay</option>
355 </param>
356 <when value="LinearAlignmentsDisplay"/>
357 <when value="LinearPileupDisplay"/>
358 <when value="LinearSNPCoverageDisplay">
359 <param name="displayCrossHatches" label="Draw cross hatches" type="boolean" checked="true" truevalue="true" falsevalue="false" />
360 <param name="minScore" label="Min score" type="integer" value="" optional="true"/>
361 <param name="maxScore" label="Max score" type="integer" value="" optional="true"/>
362 </when>
363 </conditional>
364 </section>
365 </xml>
366
367 <xml name="track_styling_vcf">
368 <section name="jbstyle" title="JBrowse Styling Options [Advanced]" expanded="false">
369 <conditional name="track_style">
370 <param name="display" type="select" label="Display style" help="How the track will be displayed by default">
371 <option value="LinearVariantDisplay" selected="true">LinearVariantDisplay</option>
372 </param>
373 <when value="LinearVariantDisplay">
374 <expand macro="track_styling_linear"/>
375 </when>
376 </conditional>
377 </section>
378 </xml>
379
380 <xml name="track_styling_bigwig">
381 <section name="jbstyle" title="JBrowse Styling Options [Advanced]" expanded="false">
382 <conditional name="track_style">
383 <param name="display" type="select" label="Display style" help="How the track will be displayed by default">
384 <option value="LinearWiggleDisplay" selected="true">LinearWiggleDisplay</option>
385 </param>
386 <when value="LinearWiggleDisplay">
387 <param name="autoscale" type="select" label="Autoscale type">
388 <option value="local" selected="true">Local</option>
389 <option value="global">Global</option>
390 <option value="globalsd">Global ± 3σ</option>
391 <option value="localsd">Local ± 3σ</option>
392 </param>
393 <param name="resolution" label="Resolution" type="integer" value="1"/>
394 <param name="summaryScoreMode" type="select" label="Autoscale type">
395 <option value="max">Max</option>
396 <option value="min">Min</option>
397 <option value="avg">Avg</option>
398 <option value="whiskers" selected="true">Whiskers (combines all three)</option>
399 </param>
400 <param name="filled" label="Fill in histogram" type="boolean" checked="true" truevalue="true" falsevalue="false" />
401 <param name="scaleType" type="select" label="Autoscale type">
402 <option value="linear" selected="true">Linear</option>
403 <option value="log">Log</option>
404 </param>
405 <param name="displayCrossHatches" label="Draw cross hatches" type="boolean" checked="true" truevalue="true" falsevalue="false" />
406 <param name="minScore" label="Min score" type="integer" value="" optional="true"/>
407 <param name="maxScore" label="Max score" type="integer" value="" optional="true"/>
408 </when>
409 </conditional>
410 </section>
411 </xml>
412
413 <xml name="track_menu">
414 <section name="jbmenu" title="JBrowse Contextual Menu options [Advanced]" expanded="false">
415 <repeat name="track_menu" title="Track Menu">
416 <param label="Menu action"
417 type="select"
418 name="menu_action"
419 help="Action performed when user clicks on the menu">
420 <option value="iframeDialog" selected="true">iframeDialog: causes the given url to be opened in a popup dialog box within JBrowse, in an iframe element.</option>
421 <option value="newWindow">newWindow: causes the given url to be opened in a new browser window.</option>
422 <option value="navigateTo">navigateTo: opens the given url in the same browser window, navigating the user away from JBrowse.</option>
423 </param>
424 <param label="Menu label"
425 type="text"
426 name="menu_label"
427 help="Will be displayed in the contextual menu on each feature ({name}, {id}, {type}, {start}, {end}, {strand} variables will be interpreted)">
428 <expand macro="menu_sanitize" />
429 </param>
430 <param label="Menu title"
431 type="text"
432 name="menu_title"
433 help="Will be displayed in the popup title bar if displayed ({id}, {type}, {start}, {end}, {strand} variables will be interpreted)">
434 <expand macro="menu_sanitize" />
435 </param>
436 <param label="Menu url"
437 type="text"
438 name="menu_url"
439 help="Destination URL ({name}, {id}, {type}, {start}, {end}, {strand} variables will be interpreted)">
440 <expand macro="menu_sanitize" />
441 </param>
442 <param label="Menu icon"
443 type="select"
444 name="menu_icon"
445 help="Icon to display next to menu label">
446 <option value="dijitIconBookmark" selected="true">Bookmark</option>
447 <option value="dijitIconSave">Save</option>
448 <option value="dijitIconPrint">Print</option>
449 <option value="dijitIconCut">Cut</option>
450 <option value="dijitIconCopy">Copy</option>
451 <option value="dijitIconClear">Clear</option>
452 <option value="dijitIconDelete">Delete</option>
453 <option value="dijitIconUndo">Undo</option>
454 <option value="dijitIconEdit">Edit</option>
455 <option value="dijitIconNewTask">New Task</option>
456 <option value="dijitIconEditTask">Edit Task</option>
457 <option value="dijitIconEditProperty">Edit Property</option>
458 <option value="dijitIconTask">Task</option>
459 <option value="dijitIconFilter">Filter</option>
460 <option value="dijitIconConfigure">Configure</option>
461 <option value="dijitIconSearch">Search</option>
462 <option value="dijitIconApplication">Application</option>
463 <option value="dijitIconChart">Chart</option>
464 <option value="dijitIconConnector">Connector</option>
465 <option value="dijitIconDatabase">Database</option>
466 <option value="dijitIconDocuments">Documents</option>
467 <option value="dijitIconMail">Mail</option>
468 <option value="dijitLeaf">Leaf</option>
469 <option value="dijitIconFile">File</option>
470 <option value="dijitIconFunction">Function</option>
471 <option value="dijitIconKey">Key</option>
472 <option value="dijitIconPackage">Package</option>
473 <option value="dijitIconSample">Sample</option>
474 <option value="dijitIconTable">Table</option>
475 <option value="dijitIconUsers">Users</option>
476 <option value="dijitIconFolderClosed">Folder Closed</option>
477 <option value="dijitIconFolderOpen">Folder Open</option>
478 <option value="dijitIconError">Error</option>
479 </param>
480 </repeat>
481 </section>
482 </xml>
483
484 <xml name="menu_sanitize">
485 <sanitizer>
486 <valid>
487 <add value="{"/>
488 <add value="}"/>
489 <add value="!"/>
490 <add value="?"/>
491 <add value="&amp;"/>
492 <add value="+"/>
493 <add value="="/>
494 <add value="'"/>
495 <add value='"'/>
496 </valid>
497 </sanitizer>
498 </xml>
499
500
501 <xml name="input_conditional" token_label="Track Data" token_format="data">
502 <param label="@LABEL@" format="@FORMAT@" name="annotation" type="data" multiple="True"/>
503 </xml>
504 <xml name="citations">
505 <citations>
506 <citation type="doi">10.1101/gr.094607.109</citation>
507 </citations>
508 </xml>
509 </macros>