comparison circos.xml @ 2:014a21767ac4 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/circos commit 076837a2e9c2b6ececcea4aa286ea7a412387a96"
author iuc
date Tue, 17 Sep 2019 16:54:57 -0400
parents
children fd59d783248a
comparison
equal deleted inserted replaced
1:ae9994cf526f 2:014a21767ac4
1 <?xml version="1.0"?>
2 <tool id="circos" name="Circos" version="@WRAPPER_VERSION@">
3 <description>visualizes data in a circular layout</description>
4 <macros>
5 <import>macros.xml</import>
6 <import>macros_conffiles.xml</import>
7 <import>macros_tests.xml</import>
8 </macros>
9 <expand macro="requirements"/>
10 <version_command>circos --version</version_command>
11 <command detect_errors="exit_code"><![CDATA[
12 ## Directory structure
13 mkdir -p circos/conf/ circos/data/ &&
14
15 #if $reference_genome.ref.ref_source == 'history':
16 ln -s '$reference_genome.ref.genome_fasta' genomeref.fa &&
17 #end if
18
19 #if $reference_genome.ref.ref_source in ('lengths', 'cached'):
20 python '$__tool_directory__/genome-lengths-to-karyotype.py'
21 #if $reference_genome.ref.ref_source == 'lengths':
22 ${reference_genome.ref.input_lengths}'
23 #else
24 #if $ideogram.limit_chromosomes:
25 ## If they are limiting the chromosomes, ensure they have access to the full list
26 '${reference_genome.ref.fasta_indexes.fields.len_path}'
27 #else
28 ## Otherwise only the reduced list, as the full list will often overwhelm circos
29 <(head -n 50 '${reference_genome.ref.fasta_indexes.fields.len_path}')
30 #end if
31 #end if
32 '${ideogram.color}'
33 > circos/conf/karyotype.txt &&
34 #else if $reference_genome.ref.ref_source == 'karyotype':
35 cp $reference_genome.ref.input_karyotype circos/conf/karyotype.txt &&
36 #else if str($reference_genome.ref.ref_source) == 'history':
37 ## Process the karyotype.txt file
38 python
39 '$__tool_directory__/fasta-to-karyotype.py'
40 genomeref.fa
41 '${ideogram.color}'
42
43 > circos/conf/karyotype.txt &&
44 #end if
45
46 touch circos/conf/karyotype-colors.conf &&
47 #if $ideogram.bands.bands:
48 #if $ideogram.bands.convert_bands:
49 python '$__tool_directory__/process-cytogenetic-bands.py'
50 '${ideogram.bands.bands}'
51 >> circos/conf/karyotype.txt
52 2> circos/conf/karyotype-colors.conf &&
53 #else
54 cat '${ideogram.bands.bands}'
55 >> circos/conf/karyotype.txt &&
56 #end if
57 #end if
58
59 #if $plot_options.colour_profile:
60 #if str($plot_options.colour_profile) == 'cg':
61 cat '$__tool_directory__/colours/cg.conf' >> circos/conf/karyotype-colors.conf &&
62 #end if
63 #end if
64
65 mv '$circos_conf' circos/conf/circos.conf &&
66 mv '$ticks_conf' circos/conf/ticks.conf &&
67 mv '$ideogram_conf' circos/conf/ideogram.conf &&
68 mv '$data_conf' circos/conf/data.conf &&
69 mv '$highlight_conf' circos/conf/highlight.conf &&
70 mv '$links_conf' circos/conf/links.conf &&
71 mv '$test_case_conf' circos/conf/galaxy_test_case.json &&
72
73 ## Highlights
74 #for $hi, $data in enumerate($sec_highlight.data):
75 cp '${data.data_source}' circos/data/highlight-${hi}.txt &&
76 #end for
77
78 ## 2D Data Plots
79 #for $hi, $data in enumerate($sec_tdd.data):
80 cp '${data.plot_format.data_source}' circos/data/data-${hi}.txt &&
81 #end for
82
83 ## Link Tracks
84 #for $hi, $data in enumerate($sec_links.data):
85 cp '${data.data_source}' circos/data/links-${hi}.txt &&
86 #end for
87
88 #if $outputs.tar == "yes"
89 tar cvfz circos.tar.gz circos >/dev/null
90 #else
91 echo ''
92 #end if
93
94 #if $outputs.svg == "yes" or $outputs.png == "yes":
95 && circos -conf circos/conf/circos.conf -noparanoid
96 #end if
97 ]]></command>
98 <configfiles>
99 <expand macro="configfile_circos_conf" />
100 <expand macro="configfile_ticks_conf" />
101 <expand macro="configfile_ideogram_conf" />
102 <expand macro="configfile_data_conf" />
103 <expand macro="configfile_links_conf" />
104 <expand macro="configfile_highlight_conf" />
105 <expand macro="test_case" />
106 </configfiles>
107 <inputs>
108 <section name="reference_genome" title="Karyotype" expanded="true">
109 <conditional name="ref">
110 <param name="ref_source" type="select" label="Reference Genome Source">
111 <option value="history" selected="True">FASTA File from History</option>
112 <option value="cached">Locally Cached</option>
113 <option value="karyotype">Karyotype</option>
114 <option value="lengths">Lengths File</option>
115 </param>
116 <!--
117 This does not work at all for us. Many dbkeys lengths simply have too many contigs that are completely irrelevant for 99% of plotting operations. Our options were:
118
119 - picking for the user (will never be right)
120 - picking some N contigs (also never right)
121 - regex (eww, and requires users to know thje names of things in the data table which is not exposed to user ever.)
122 - built in custom filters we'd have to maintain
123 - some code files (see meme_chip.xml, doesn't work there.)
124
125 - using one of the legacy chromosomes that doesn't include detritus
126
127 But none of the optinos work well or uniformly, so, no. We're forced to remove this as an option completely.
128
129 -->
130 <when value="cached">
131 <param name="fasta_indexes" type="select" label="Source Genome Build" help="Warning: this also contains unplaced scaffolds present in the reference genome. You can restrict the regions to plot in 'Limit/Filter Chromosomes' below, or supply your own file.">
132 <options from_data_table="__dbkeys__"/>
133 </param>
134 </when>
135 <when value="history">
136 <param name="genome_fasta" type="data" format="fasta" label="Source FASTA Sequence"/>
137 </when>
138 <when value="karyotype">
139 <param name="input_karyotype" type="data" format="tabular,txt" label="Karyotype Configuration" help="Provide your own karyotype configuration. Should be 'chr - ID LABEL START END COLOR'"/>
140 </when>
141 <when value="lengths">
142 <param name="input_lengths" type="data" format="tabular" label="Sequence Lengths" help="This needs to be a 2+ column tabular, e.g. from 'Compute sequence lengths', the first column should be chromosome and second should be length."/>
143 </when>
144 </conditional>
145 </section>
146
147 <section name="sec_tdd" title="2D Data Tracks">
148 <repeat name="data" title="2D Data Plot" help="2D Data Plots allow you to graph all sorts of data visually such as scatter or line plots, heatmaps, or tiles representing gene locations. These are commonly used to plot sequencing density tracks or other datasets that have some value at different positions along a genome.">
149 <!-- Positioning -->
150 <param name="r1" type="float" value="0.89" min="0" max="1" label="Outside Radius" help="Value must be between 1 (outer edge of plot) and 0 (center of the plot)"/>
151 <param name="r0" type="float" value="0.8" min="0" max="1" label="Inside Radius" help="Value must be between 1 (outer edge of plot) and 0 (center of the plot)"/>
152
153
154 <conditional name="plot_format">
155 <param name="plot_format_select" type="select" label="Plot Type">
156 <option value="histogram" selected="True">Histogram</option>
157 <option value="histogram-stacked">Stacked Histogram</option>
158 <option value="heatmap">Heatmap</option>
159 <option value="line">Line</option>
160 <option value="scatter">Scatter</option>
161 <option value="tile">Tiles</option>
162 <option value="text">Text Labels</option>
163 </param>
164 <when value="histogram">
165 <param name="data_source" type="data" format="tabular,interval" label="Histogram Data Source" help="Columns must be (chrom, start, end, value)"/>
166 <section name="format_specific" title="Plot Format Specific Options">
167 <expand macro="circos_color_alpha" label="Fill Color" name="fill_color" value="#ffdcfc"/>
168 <expand macro="stroke_opts"/>
169
170 <param name="fill_under" type="boolean" label="Fill underneath the histogram" truevalue="yes" falsevalue="no" checked="true" />
171 <param name="extend_bins" type="boolean" label="Join non-abutting Bins" truevalue="yes" falsevalue="no"
172 help="Join histogram bins that do not touch (abut)" />
173 </section>
174 </when>
175 <when value="histogram-stacked">
176 <param name="data_source" type="data" format="tabular,interval" label="Histogram Data Source" help="Columns must be (chrom, start, end, values). Values should be comma-separated"/>
177 <section name="format_specific" title="Plot Format Specific Options">
178 <expand macro="brewer_scale" label="Fill Color" name="fill_color"/>
179 <expand macro="stroke_opts"/>
180
181 <param name="fill_under" type="boolean" label="Fill underneath the histogram" truevalue="yes" falsevalue="no" checked="true" />
182 <param name="extend_bins" type="boolean" label="Join non-abutting Bins" truevalue="yes" falsevalue="no"
183 help="Join histogram bins that do not touch (abut)" />
184
185 </section>
186 </when>
187 <when value="heatmap">
188 <param name="data_source" type="data" format="tabular,interval" label="Heatmap Data Source" help="Columns must be (chrom, start, end, value)"/>
189 <section name="format_specific" title="Plot Format Specific Options">
190 <expand macro="brewer_scale" label="Fill Color" name="fill_color"/>
191 <param name="scale_log_base" type="float" value="1.0" label="Scale Log Base"
192 help="If scale_log_base&lt;1, the dynamic range of color mapping of small values will be increased. If scale_log_base&gt;1, then dynamic range of large values will be increased."/>
193 </section>
194 </when>
195 <when value="line">
196 <param name="data_source" type="data" format="tabular,interval" label="Line Data Source" help="Columns must be (chrom, start, end, value)"/>
197 <section name="format_specific" title="Plot Format Specific Options">
198 <expand macro="stroke_opts"/>
199 </section>
200 </when>
201 <when value="scatter">
202 <param name="data_source" type="data" format="tabular,interval" label="Scatter Plot Data Source" help="Columns must be (chrom, start, end, value)"/>
203 <section name="format_specific" title="Plot Format Specific Options">
204 <!-- glyph, glyph_size, min, max -->
205 <param name="glyph" type="select" label="Glyph">
206 <option value="circle">Circle</option>
207 <option value="triangle">Triangle</option>
208 <option value="rectangle">Rectangle</option>
209 </param>
210 <param name="glyph_size" type="integer" value="8" label="Glyph Size"/>
211 <expand macro="circos_color_alpha" name="fill_color" value="#555555" label="Color" />
212 <expand macro="stroke_opts"/>
213 </section>
214 </when>
215 <when value="tile">
216 <param name="data_source" type="data" format="tabular,interval" label="Tile Data Source"
217 help="Column must be (chrom, start, end)"/>
218 <section name="format_specific" title="Plot Format Specific Options">
219 <expand macro="circos_color_alpha" name="fill_color" label="Fill Color"/>
220
221 <expand macro="stroke_opts"/>
222 <param name="layers" type="integer" value="15" label="Layers"/>
223 <param name="thickness" type="float" value="15" label="Thickness" help="In pixels"/>
224 <param name="padding" type="float" value="8" label="Padding" help="In pixels"/>
225 <param name="margin" type="float" value="0.002" label="Margin" help="In chromosome units. This is essentially distance added to the gene, before laying it out. Increasing it will prevent genes from packing as well."/>
226
227 <conditional name="overflow">
228 <param name="overflow_behavior" type="select" label="Overflow Behavior">
229 <option value="hide">Hide: overflow tiles are not drawn</option>
230 <option value="grow">Grow: new layers are added as required</option>
231 <option value="collapse">Collapse: overflow tiles are drawn on the first layer</option>
232 </param>
233 <when value="hide">
234 </when>
235 <when value="grow">
236 <expand macro="circos_color" name="layer_overflow_color" label="Layer Overflow Color"/>
237 </when>
238 <when value="collapse">
239 <expand macro="circos_color" name="layer_overflow_color" label="Layer Overflow Color"/>
240 </when>
241 </conditional>
242 </section>
243 </when>
244 <when value="text">
245 <param name="data_source" type="data" format="tabular,interval" label="Text Data Source" help="Columns must be (chrom, start, end, text)"/>
246
247 <section name="format_specific" title="Plot Format Specific Options">
248 <param name="label_size" type="integer" value="24" label="Label Size" min="1"/>
249 <conditional name="link">
250 <param name="show_link" type="select" label="Show Link">
251 <option value="yes" selected="true">Yes</option>
252 <option value="no">No</option>
253 </param>
254 <when value="yes">
255 <param name="link_thickness" type="integer" value="2" label="Link thickness" min="0" help="In pixels"/>
256 <expand macro="circos_color" name="link_color" label="Link Color" value="#ff0000"/>
257 <param name="link_dims" type="text" value="1p,2p,3p,2p,1p" label="Link dimensions">
258 <sanitizer>
259 <valid initial="string.digits">
260 <add value="p"/>
261 <add value=","/>
262 </valid>
263 </sanitizer>
264 </param>
265
266 </when>
267 <when value="no">
268 </when>
269 </conditional>
270 <conditional name="snuggle">
271 <param name="label_snuggle" type="select" label="Snuggle Labels" help="The label's radial position may be slightly adjusted to reduce the number of layers of text">
272 <option value="yes">Yes</option>
273 <option value="no" selected="true">No</option>
274 </param>
275 <when value="yes">
276 <param name="max_snuggle_distance" type="integer" value="2" min="0" label="Max snuggle Distance" help="Shift label up to N times its height, in the angular direction"/>
277 <param name="snuggle_sampling" type="integer" value="2" min="1" label="Snuggle Sampling" help="Sample possible positions every N pixels"/>
278 <param name="snuggle_tolerance" type="float" value="0.25" min="0" label="Snuggle Tolerance" help="You can also short-circuit precise placement by setting snuggle_tolerance (absolute or relative to label's tangential size). The larger this value, the less precise the placement. (from Circos manual)"/>
279 <param name="snuggle_link_overlap_test" type="boolean" truevalue="yes" falsevalue="no" checked="yes" label="Snuggle Link Overlap Test" help="If the labels have a link line, you choose to test whether link lines overlap with previous labels using snuggle_link_overlap_test (from Circos manual)"/>
280 <param name="snuggle_link_overlap_tolerance" type="float" value="2" min="0" label="Snuggle Link Overlap Tolerance" help="The extent of acceptable overlap is set using snuggle_link_overlap_tolerance (from Circos manual)"/>
281 <param name="snuggle_refine" type="boolean" truevalue="yes" falsevalue="no" checked="yes" label="Snuggle refine" help="The snuggle_refine parameter toggles an additional check for crossing of links of labels that are placed at similar radial positions. Label pairs whose link lines cross are swapped. This refine parameter is functionaly only if show_links=yes. (from Circos manual)"/>
282 </when>
283 <when value="no">
284 </when>
285 </conditional>
286
287 </section>
288 </when>
289 </conditional>
290 <param name="orientation" type="boolean" label="Orient Inwards" truevalue="in" falsevalue="out"
291 help="When yes, the plot will face inwards; i.e. lowest values will be plotted to the outside"/>
292 <expand macro="minmax" />
293
294 <expand macro="rules" />
295 <expand macro="axes" />
296 <expand macro="backgrounds" />
297 </repeat>
298 </section>
299 <section name="sec_links" title="Link Tracks">
300 <repeat name="data" title="Link Data" help="Link tracks show a relationship between two locations in your plot. They are often used for indicating sequence similarity between two regions of a genome, or some interaction between two groups.">
301 <!-- Positioning -->
302 <param name="radius" type="float" value="0.8" min="0" max="1" label="Inside Radius"
303 help="This is the radial position of the termination of the link. Value must be between 1 (outer edge of plot) and 0 (center of the plot)" />
304 <param name="data_source" type="data" format="tabular,interval" label="Link Data Source" help="Select file with link data. Format: chr1 start1 end1 chr2 start2 end2" />
305 <conditional name="linktype">
306 <param name="ribbon" type="select" label="Link Type" help="">
307 <option value="no">basic</option>
308 <option value="yes" selected="true">ribbon</option>
309 </param>
310 <when value="yes">
311 <param name="twist" type="select" label="Twist Ribbon" help="Fine grained control for display behaviour of ribbons">
312 <option value="" selected="true">auto</option>
313 <option value="twist=yes">always (twist)</option>
314 <option value="flat=yes">never (flat)</option>
315 </param>
316 <param name="pattern" type="select" label="Ribbon background pattern">
317 <option value="solid" selected="true">Solid</option>
318 <option value="hline">Horizontal Lines</option>
319 <option value="hline-sparse">Horizontal Lines (sparse)</option>
320 <option value="vline">Vertical Lines</option>
321 <option value="vline-sparse">Vertical Lines (sparse)</option>
322 <option value="checker">Checker</option>
323 <option value="checker-sparse">Checker (sparse)</option>
324 <option value="dot">Dots</option>
325 <option value="dot-sparse">Dots (sparse)</option>
326 </param>
327 </when>
328 <when value="no"/>
329 </conditional>
330 <expand macro="circos_color_alpha" name="color" value="#000000" label="Link Color"/>
331 <param name="thickness" type="float" value="15" label="Thickness" help="In pixels"/>
332 <param name="bezier_radius" type="float" value="0.1" min="0" max="1" label="Bezier Radius"
333 help="The radial position of the third control point (in addition to the two positions defined by the link coordinates) used to draw the Bezier curve; if this parameter is 0 then straight lines will be used"/>
334
335 <section name="advanced" title="Advanced Settings">
336 <param name="zdepth" type="float" value="" optional="true" label="Z-depth"
337 help="Optional. Datasets with a higher z-depth value are drawn on top of data sets with a lower value. Only useful if plotting multiple link tracks"/>
338 <param name="crest" type="float" value="0.5" min="0" max="1" label="Crest"
339 help="Two additional Bezier control points can be set by using the crest parameter. When defined, points p3 and p4 are added. These points lie at the same angular position as the start and end link termini and have the radial position. In the crest=0 extreme, p3 and p4 are at the same position as p0,p1. In this case, crest has no effect. When crest=1, p3,p4 are at the radial position of p2, the control point set by bezier_radius"/>
340 <param name="bezier_radius_purity" type="float" value="0.75" min="0" max="1" label="Bezier Radius Purity"
341 help="The bezier_radius_purity adjusts the position of p2 for each link. The p2 control point will move along the line formed by the original p2 location and the intersection of p0-p1 and the bisecting radius. When purity = 1, p2' = p2. When purity = 0, p2' = midpoint(p0,p1)"/>
342 <conditional name="perturbation">
343 <param name="perturb" type="select" label="Perturb links?"
344 help="A set of parameters can be used to randomly adjust bezier_radius, bezier_radius_purity, and crest parameters to give the links a more disorganized, organic feel. By perturbing each link you can also show additional texture in the data among links which would have ordinarily overlapped. Each parameter's perturbation amount is defined as a pair of values - pmin,pmax. These are the minimum and maximum multipliers by which the value can be perturbed">
345 <option value="no" selected="true">no</option>
346 <option value="yes">yes</option>
347 </param>
348 <when value="yes">
349 <param name="perturb_crest_min" type="float" value="0.5" label="Crest min"
350 help="For example setting (min,max) = (0.5,1.2) will cause parameter to be randomly scaled between 50-120%"/>
351 <param name="perturb_crest_max" type="float" value="1.5" label="Crest max"
352 help="For example setting (min,max) = (0.5,1.2) will cause parameter to be randomly scaled between 50-120%"/>
353 <param name="perturb_bezier_radius_min" type="float" value="0.5" label="Bezier Radius min"
354 help="For example setting (min,max) = (0.5,1.2) will cause parameter to be randomly scaled between 50-120%"/>
355 <param name="perturb_bezier_radius_max" type="float" value="1.5" label="Bezier Radius max"
356 help="For example setting (min,max) = (0.5,1.2) will cause parameter to be randomly scaled between 50-120%"/>
357 <param name="perturb_bezier_radius_purity_min" type="float" value="0.5" label="Bezier Radius Purity min"
358 help="For example setting (min,max) = (0.5,1.2) will cause parameter to be randomly scaled between 50-120%"/>
359 <param name="perturb_bezier_radius_purity_max" type="float" value="1.5" label="Bezier Radius Purity max"
360 help="For example setting (min,max) = (0.5,1.2) will cause parameter to be randomly scaled between 50-120%"/>
361 </when>
362 <when value="no"/>
363 </conditional>
364 </section>
365 <expand macro="linkrules"/>
366 </repeat>
367 </section>
368
369 <section name="plot_options" title="General">
370 <conditional name="background">
371 <param name="background_select" type="select" label="Plot Background">
372 <option value="transparent">Transparent</option>
373 <option value="color" selected="true">Solid Color</option>
374 </param>
375 <when value="transparent" />
376 <when value="color">
377 <expand macro="circos_color" label="Background Color" name="background_color" value="#ffffff"/>
378 </when>
379 </conditional>
380 <param name="radius" type="integer" label="Image Radius" value="1500" min="500" max="5000" help="Plot radius (in pixels), final plot dimensions will be 2*r by 2*r"/>
381 <param name="colour_profile" type="select" label="Load additional colour profiles" optional="true" help="Only useful in a tiny subset of situations">
382 <option value="cg">Complete Genomics</option>
383 </param>
384 </section>
385
386 <section name="ideogram" title="Ideogram">
387 <expand macro="brewer_scale" name="color" label="Ideogram Color Scheme" help="Note, this will be ignored if you supplied a karyogram file containing colour specifications"/>
388 <param name="limit_chromosomes" type="text" optional="true" label="Limit/Filter Chromosomes" help="For example: 'hs1;hs2;hs3' or 'chr1:1-1000;chr2:3000-9000' to plot only a subset of regions">
389 <sanitizer>
390 <valid initial="string.letters,string.digits">
391 <add value=","/>
392 <add value="_"/>
393 <add value="."/>
394 <add value=":"/>
395 <add value=";"/>
396 <add value="-"/>
397 </valid>
398 </sanitizer>
399 </param>
400 <param name="chromosomes_reverse" type="text" optional="true" label="Reverse these Chromosomes" help="Important: If you set this, you will need to set the 'Limit/Filter Chromosomes' option (above) as well">
401 <sanitizer>
402 <valid initial="string.letters,string.digits">
403 <add value=","/>
404 <add value="_"/>
405 <add value="."/>
406 <add value=":"/>
407 <add value=";"/>
408 <add value="-"/>
409 </valid>
410 </sanitizer>
411 </param>
412
413 <param name="units" type="select" label="Chromosome units" help="Setting this to MB allows usage of numbers like 5u to represent 5MB, rather than having to specify 5000000 or 5e6">
414 <option value="bases">Bases</option>
415 <option value="kb">Kilobases</option>
416 <option value="mb" selected="true">Megabases</option>
417 <option value="gb">Gigabases</option>
418 </param>
419
420 <param name="spacing" type="float" value="0.005" label="Spacing Between Ideograms" min="0"/>
421 <param name="radius" type="float" value="0.90" label="Radius" min="0"/>
422 <param name="thickness" type="float" value="10" label="Thickness" min="0"/>
423
424 <section name="ideogram_labels" title="Labels">
425 <param name="show_label" type="boolean" truevalue="yes" falsevalue="no" label="Show Label" checked="true"/>
426 <param type="float" value="0.075" label="Radius" name="radius_offset"/>
427 <param type="integer" value="24" label="Label Font Size" name="size"/>
428 <!--<param type="float" value="10" label="Thickness" name="thickness"/>-->
429 <param name="parallel" type="boolean" label="Parallel" truevalue="yes" falsevalue="no" checked="true"
430 help="When set to yes/true, labels will be perpendicular to the tangent of the circle at the location of the label. Otherwise, they will be parallel with the tangent of the circle"/>
431 </section>
432
433 <section name="bands" title="Cytogenic Bands">
434 <param name="bands" type="data" format="tabular" optional="true" label="Cytogenetic Bands"
435 help="If defined, will display cytogenetic bands as part of the karyotype configuration. This field accepts any tabular format file. If you provide a BED file you should enable automatic conversion below. Otherwise disable conversion below and it is expected that your file have 7 columns: 'band', chromosome ID (should match fasta), band ID, band ID (again), start, end, color (gneg, gpos, or r,g,b triple). E.g. a complete row would look like: 'band chr1 p32.2 p32.2 56100000 59000000 gneg25'"/>
436 <param name="convert_bands" type="boolean" truevalue="yes" falsevalue="no" label="Convert bands from BED format to circos karyotype band format" checked="true"
437 help="Automatically reformat BED file into the appropriate columns. This should be a BED 6+ file, BED 9+ if you want the colours from the BED file automatically used. Otherwise everything will appear grey."/>
438 <param name="fill_bands" type="boolean" truevalue="yes" falsevalue="no" label="Fill Bands" checked="true"/>
439 <param name="band_transparency" type="integer" label="Fill Bands" value="0" min="0" max="5" help="0 is solid, 1 is the least transparent, and 5 is the most transparent"/>
440
441 <param type="integer" value="2" label="Band Stroke Thickness" name="band_stroke_thickness"/>
442 <expand macro="circos_color" label="Band Stroke Color" name="band_stroke_color" value="#000000"/>
443 </section>
444 </section>
445
446 <section name="ticks" title="Ticks">
447 <param name="show_ticks" type="boolean" truevalue="yes" falsevalue="no" label="Show Ticks"/>
448 <param name="radius" type="float" value="1.0" label="Radius"/>
449 <param name="skip_first_label" type="boolean" truevalue="yes" falsevalue="no" label="Skip first label"/>
450 <param name="skip_last_label" type="boolean" truevalue="yes" falsevalue="no" label="Skip last label"/>
451
452 <repeat name="tick_group" title="Tick Group">
453 <param name="spacing" type="text" value="5000" label="Tick Spacing" help="Number of bases (number + u syntax works)"/>
454 <param name="size" type="float" value="10" label="Tick Size"/>
455 <expand macro="circos_color"/>
456 <conditional name="ticks">
457 <param name="show_tick_labels" type="select" label="Show Tick Labels">
458 <option value="yes">Yes</option>
459 <option value="no" selected="true">No</option>
460 </param>
461 <when value="yes">
462 <param name="label_size" type="float" value="20" label="Label Size"/>
463 <param name="label_offset" type="float" value="10" label="Label Offset"/>
464 <param name="format" type="select" label="Label Format">
465 <option value="%d" selected="True">Integer</option>
466 <option value="%f">Float</option>
467 <option value="%.1f">Float (one decimal)</option>
468 <option value="%.2f">Float (two decimals)</option>
469 <sanitizer>
470 <valid>
471 <add value="%" />
472 </valid>
473 </sanitizer>
474 </param>
475 <param name="format_ext" type="boolean" truevalue="yes" falsevalue="no" checked="true" label="Show unit in tick labels" help="If your chromosome units is set to kilobases and you have enabled this option and enabled tick labels, they will include the size value, e.g. '500 kb' "/>
476 </when>
477 <when value="no">
478 </when>
479 </conditional>
480 </repeat>
481
482 </section>
483
484 <section name="sec_highlight" title="Highlights">
485 <repeat name="data" title="Highlight" help="Highlights can help highlight a specific region by placing a large coloured block under some interesting or important features that the audience's eyes should be drawn towards">
486 <param name="r1" type="float" value="0.89" min="0" max="1" label="Outside Radius" help="Value must be between 1 (outer edge of plot) and 0 (center of the plot)"/>
487 <param name="r0" type="float" value="0.8" min="0" max="1" label="Inside Radius" help="Value must be between 1 (outer edge of plot) and 0 (center of the plot)"/>
488 <param name="data_source" type="data" format="tabular,interval" label="Highlight Data Source" help="Columns must be (chrom, start, end)"/>
489 <expand macro="circos_color_alpha" label="Fill Color" name="fill_color" value="#000000"/>
490 <expand macro="rules" />
491 </repeat>
492 </section>
493
494 <section name="outputs" title="Outputs">
495 <param name="png" type="boolean" truevalue="yes" falsevalue="no" label="PNG" checked="true"/>
496 <param name="svg" type="boolean" truevalue="yes" falsevalue="no" label="SVG" checked="false" help="Oftentimes this will not be viewable directly in Galaxy, you may need to download this file first."/>
497 <param name="tar" type="boolean" truevalue="yes" falsevalue="no" label="Configuration Archive" checked="false" help="This contains all the files needed to make this plot. With the data contained within here, and a copy of Circos installed locally, you can rebuild the plot and make any manual changes that are not possible in Galaxy (e.g. colours not in the colour picker)"/>
498 </section>
499 </inputs>
500 <outputs>
501 <data name="output_png" format="png" from_work_dir="circos.png" label="Circos Plot">
502 <filter>outputs['png']</filter>
503 </data>
504 <data name="output_svg" format="svg" from_work_dir="circos.svg" label="Circos Plot">
505 <filter>outputs['svg']</filter>
506 </data>
507 <data name="output_tar" format="tar.gz" from_work_dir="circos.tar.gz" label="Circos Conf Files">
508 <filter>outputs['tar']</filter>
509 </data>
510 </outputs>
511 <expand macro="test_cases" />
512 <help><![CDATA[
513 Circos
514 ======
515
516 Circos is a software package for visualizing data and information. It visualizes data in a circular layout — this makes Circos ideal for exploring relationships between objects or positions. There are other reasons why a circular layout is advantageous, not the least being the fact that it is attractive.
517
518 Circos is ideal for creating publication-quality infographics and illustrations with a high data-to-ink ratio, richly layered data and pleasant symmetries. You have fine control each element in the figure to tailor its focus points and detail to your audience.
519
520 .. image:: $PATH_TO_IMAGES/circos-sample-panel.png
521 :alt: several example circos plots
522
523 For more information see the Circos documentation_.
524
525 .. _documentation: http://circos.ca/documentation/
526
527
528 ]]></help>
529 <expand macro="citations" />
530 </tool>