~ubuntu-branches/ubuntu/utopic/circos/utopic-proposed

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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
7 Mar 2005 - v0.1

24 May 2005 - v0.2

A large number of changes. Primarily

 - support for non-linear scale
 - support for optional tick labels and minimum tick separation
 - reworked 2D data file formats

A lot of bugs fixed. Primarily

 - fixed poor text layout on tick labels
 - fixed support for newer GD (stringFT vs stringTTF)

25 May 2005 - v0.21

Added global scaling, described in Tutorial 6.

23 Jan 2007 - v0.22

Focused tutorials on figures in NYT article. Added support for multiple fonts. You no longer need to define $FONT yourself.

17 Oct 2007 - v0.31pre0

Prelease of 0.31. Nearly everything has been revamped.

Revamped configuration syntax, making it more intuitive and consistent.

New tutorials posted. Axes breaks added. More flexible ideogram ordering. 

Significant changes to placement of data elements, now with support for relative and absolute position values.

18 Oct 2007 - v0.31pre1

Fixed memory problem when drawing highlights. Now require Set::IntSpan v1.11 or newer.

Additional sanity checks when loading configuration files.

23 Oct 2007 - v0.31pre2

Added tiles and heatmaps.

26 Oct 2007 - v0.31pre3

Added scale adjustment.

28 Oct 2007 - v0.31

Finalized features in 0.31-preX.

20 Nov 2007 - v0.32

Added functionality for histograms to avoid joining neighbouring bins if their spans are not abutting.

Added ability to define rules based on format characteristics of data (e.g. color, thickness).

Added "restart" flow control for rules.

Fixed image output for Windows users.

3 Dec 2007 - v0.33

Adjusted ideogram spacing to allow pair-wise spacing definitions based on tag.

Fixed axis break issue when a break value was required but break parameter was not set.

Added text labels on ticks.

22 Dec 2007 - v0.34

Rewrote label snuggling method.

Added ability to turn text tracks into glyph tracks.

Fixed rule condition evaluation to allow broader range of characters.

24 Dec 2007 - v0.35

Unit-related error messages now more explicit.

Various fixes for handling bezier_radius.

3 Jan 2008 - v0.36

Imagemap output reformatted and made consistent.

27 Feb 2008 - v0.37

Added ability to set image background to transparent or a custom image.

Adjusted color allocation to avoid duplicate allocation of identical colors.

9 Apr 2008 v0.38

Added support for stacked histograms and ability to independently set radius for each link end.

Fixed histogram fill to drop to y=0 (or closest) level.

Circos now requires Clone module (http://search.cpan.org/~rdf/Clone-0.28/Clone.pm)

14 Apr 2008 v0.39

Added ability to orient ideograms and scale in a counterclockwise orientation using angle_orientation parameter.

Adjusted the way joined histogram bin stroke is drawn.

Fixed bug in which joined histograms bins were not being filled in correctly.

Fixed bug with text offsets at 12 o'clock position.

21 Apr 2008 v0.40

Added SVG output support.

23 Apr 2008 v0.41

Fixed bug which caused incorrect plot scaling when min>0.

Fixed a svg bug which caused images with single unspaced ideograms to display incorrectly.

Adjusted svg-related coded to avoid PNG color palette limitations (you can now have more than 256 colors in color.conf when using svg).

Modified SVG Bezier curves to use crest parameter.

28 Apr 2008 v0.42

Fixed a bug which prevented ribbons from displaying in svg files.

12 May 2008 v0.43

Tick labels can be made relative to ideogram length using relative_label.

Tick spacing can be made relative using rspacing/spacing_type.

Individual ideograms can be placed at different radius.

There is now an installation script which adjusts the Perl binary location and tutorial file output directory.

18 Jun 2008 v0.44

Fixed bug that prevented scientific notation with capital E from being parsed correctly.

Fixed bug that prevened tick mark labels from being rounded correctly.

Default ideogram spacing value can be set to be relative to total size of ideograms.

The parameter chromosomes_units can be set relative to total size of ideograms.

Added skip_run and min_value_change options to plots

The "-" character can be again used in ideogram names

PNG and SVG files can now be created at the same time

25 Jun 2008 v0.45

A variety of speed optimizations were done.

 - GD brush initialization
 - added memoization to speed up certain function calls
 - reduced debug reporting overhead
 
Overall speed improvement is about 3- to 4-fold for core functions.

23 July 2008 v0.46

Fixed ideogram lookup bug when display order was customized.

Added a variety of helper scripts to create and filter data and to order chromosomes (see tools/)

Added 24-bit PNG support and adjusted color allocation accordingly

30 Sep 2008 v0.47

IMPORTANT: Math::BigFloat is now required.

Added error trap if old version of GD is used that does not support 24bit flag.

Added support for alpha channel in PNG images - now colors can have transparency level.

Fixed brush bug for outlined ribbons with newer GD version.

Added -show_ticks as a command-line parameter (to unset use -no-show-ticks).

Added -show_tick_labels as a command-line parameter (to unset use -no-show-tick_labels).

Added -silent for completely quiet operation (nothing reported to STDOUT).

Improved tick suppression consistency when tick_separation was defined.

Precision in tick mark formatting is improved with Math::BigFloat (this module is now needed).

Added ticks for specific positions via "position" and "rposition" parameter.

Added connector track (currently experimental). This will be documented in an upcoming release.

21 Oct 2008 v0.48

Direction of individual ideograms can be reversed with chromosomes_reverse.

Twist of ribbons is now correct, with a ribbon linking the start and end coordinates of each span.

Ribbon twists can be forced with twist=1 or removed with flat=1.

Individual link coordinates can be inverted by using start>end or inverted=1 parameter.

Added plot of type=highlight to allow highlights to be drawn at any z-depth.

Finalized connector track.

Added band_transparency to allow drawing semi-transparent cytogenetic bands on top of ideograms.

30 Jan 2009 v0.49

Optimized calls to Math::Bezier to reduce time taken to draw links.

Inverted link coordinates (i.e. end<start) can be tested with _REV1_ and _REV2_ in rules.

Fixed error that caused ends of ribbons to be drawn as straight lines.

Fixed error that caused highlights to be drawn on top of the grid in certain cases.

26 Jun 2009 v0.50

Added file_delim to allow any field delimiter to be used in input files (e.g. a tab).

Added sanity check for True Type font support in GD.

Added antialiasing to lines and polygins. Limitations in gd prevent antialiasing of lines that have a thickness >1 pixel or that use a color with an alpha channel.

Fixed bug with parameter parsing that was using = as a delimiter.

Added image maps (via the url parameter) to ideograms, bands, ticks, highlights, tiles, ribbons, text, scatter plots, histograms and heat maps. This is described in Tutorial 10.

Backend implementation has been adjusted, with Circos code moved to Circos.pm module (credit goes to Ken Youens-Clark (CSHL)).

5 Jul 2009 v0.51

Added more comprehensive options to show and suppress tick marks based on ideogram and position.

Fixed scale zooming for display at base resolution.

Expanded and streamlined tick mark functionality.

24 Nov 2009 v0.52

A bug release that fixes issues with ordering and axis breaks.

Ideogram labels can now be rendered with their baseline parallel to
the circle's circumference by using label_parallel=yes in the
<ideogram> block.

17 Jan 2011 v0.53

Rolled in bug fixes.

29 Mar 2011 v0.54

Tile image fills are now supported. Specify the file name instead of the fill color.

Color lists supported.

Automated track placement using counters.

Various bug fixes and error checks.

13 Apr 2011 v0.54-1

Factored out color functions to Circos::Colors
Factored out configuration functions to Circos::Configuration
Factored out constants and strings to Circos::Constants
Factored out debug functions to Circos::Debug
Factored out image variables to Circos::Image
Factored out unit checking functions to Circos::Unit
Factored out utility functions to Circos::Utils

Fixed transparency bug introduced in 0.54. Fixed tableviewer parse-table bug which was triggering error complaining about a missing '='

Added to README for Windows users.

16 Jun 2011 v0.55-1

Multiple karyotype files can be specified as comma-delimited list in 'karyotype' parameter

Color for chromosomes can be specified with chromosomes_color
  hs1:red,hs2:blue,...

Chromosomes can now take a fraction of the entire image by specifying relative scale.
  hs1:0.25r # hs1 will take up 1/4 of the figure

Parameters in included configuration files can be overridden using "*" suffix. Any number of *s can be
used to indicate priority. 

  <ideogram>
  <<include ideogram.defaults.conf>>
  # this will override any 'label_radius'
  label_radius*   = dim(ideogram,radius) + 0.25r
  # this will override any 'label_radius', 'label_radius*', and 'label_radius**'
  label_radius*** = dim(ideogram,radius) + 0.25r
  </ideogram>

Parameter list can now use '=' for assignment, in addition to ':'. Lists that do not expect a span (e.g. chromosomes) can also use ',' as record delimiter. For example, any of these will work.

  chromosomes_scale = chr1:0.5;chr2:0.25
  chromosomes_scale = chr1:0.5,chr2:0.25
  chromosomes_scale = chr1=0.5;chr2=0.25
  chromosomes_scale = chr1=0.5,chr2=0.25

Transparent colors now include COLOR_a0, which points to the fully opaque version of COLOR. Thus, for a given auto_alpha_steps value (e.g. N=5) COLOR_a0 ... COLOR_aN are available. Previously COLOR_a0 was not available and the name COLOR had to be used (e.g. red instead of red_a0).

remap(value,min,max,remap_min,remap_max) can now be used in rules, as well as remap_int() to remap to integers (truncation) or remap_round() to remap to integers (rounding).

chromosomes_scale and chromosomes_color can accept regular expressions for chromosomes. These are evaluated first, followed by literal chromosome definitions.

  chromosomes_scale = /hs/=0.2,hs5=0.5,/hs1/=0.3

  order of scale adjustment:

  1. all chromosomes matching /hs/ set to 0.2
  2. all chromosomes matching /hs1/ set to 0.3
  3. hs5 set to 0.5

'chromosomes' parameter accepts regular expressions, specified using /.../

  chromosomes = /hs/
  chromosomes = -/hs/

When chrromosomes_display_default=yes, use chromosomes_order_by_karyotype=yes to order chrs by their order in the karyotype. If this parameter is not set, the order is determined by a sort based on string+digit in the chromosome name (e.g. chr1=chr+1 chr2=chr+2, etc)

Histograms with transparency fill should now no longer have an outline even if no outline is desired. This artefact was due to how GD rendered antialiased filled polygons.

Rules for links and plots can have 'use=no' to turn them off.

Color lists now written to cache to speed up color allocation at run-time.

Debug groups now available to show running status of components. See etc/housekeeping.conf for a full list
 
  e.g.
  summary   - summary progress
  chrfilter - ideogram filtering
  conf      - configuration
  ideogram  - ideogram reports
  cache     - file caching
  io        - file input/output
  _all      - turn on all debugging (very verbose)

Colors such as vlred (very light red), lred (light red), etc, have been replaced by Brewer palette colors, where possible. For example, the vlred, lred, red, dred, vdred samples the 5 color sequential red palette.

Multiple counters can be adjusted with pre_increment_counter and other functions using a comma-delimited list

  pre_increment_counter = counter1:10,counter2:15

Colors have always been forced to lowercase. If a user asked for a color with capitals (e.g. chrX), an error resulted. Now, only a warning is generated (if warnings are turned on) if the lowercase equivalent is found.

Parallel labels should now be better centered when using label_center for the ideogram label in <ideogram> block.

Added band_stroke_thickness to <ideogram> block.

init_counter is now used to initialize a counter value 

Added example/ and moved tutorials to a separate distribution.

Speeded up the text track.

Speeded up input io - data points that don't fall on ideograms on the figure are ignored

10 Sep 2011 v0.56-pre0

Parallel ideogram labels are now centered with respect to the ideogram.

restrict_parameter_names now controls whether parameters are restricted to a pre-defined list (e.g. color, thickness, etc). If you have custom parameters (e.g. 'myspecialcode') then set restrict_parameter_names=no. By default, this is always set to 'yes'.

Added link_orientation for text tracks. When set to "out" links from text labels face out, rather than in.

28 Oct 2011 v0.56-pre1

Added font names to SVG files via font-family tag. 

1 Nov 2011 v0.56-pre2

Removed -verbose. The -v flag now reports version.

Added -version.

Removed dependence on Graphics::ColorObject.

Added error handling framework. 

Circos now requires Text::Format

Bug fix to heat map color mapping of last color.

26 Jan 2012 v0.56-pre3

Fixed bug which was causing line links to be drawn with a thickness half of what was requested.

Fixed bug that prevented parameters made acceptable by the restrict_parameter_names=no setting from being parsed.

Configuration file location is now guessed if guess_conf_location=yes (see etc/housekeeping.conf)

Color file cache can now be static (color_cache_static) and dir/file can be changed (color_cache_{file,dir})

Added 'placed' and 'not_placed' output for labels in text tracks to. Use -debug_group text to see this.

   # create data file of labels that were not placed
   circos -conf ... -debug_group text | grep not_placed > text.notplaced.txt

Parts of the code were made faster (unit checking) through Memoize.

Fixed a bug which prevented links with thickness=1 from being shown with correct transparency.

4 Feb 2012 v0.56-pre4

Fixed bug in which color errors were produced when PNG file was not asked for.

Fixed bug in which opacity of links in SVG files was missing in some cases.

Fixed but which was assigning the wrong color to transparent links in PNG files in some cases.

Centralized color configuration files colors.conf now includes brewer.conf - no need to include brewer.conf separately.

Added -paranoid flag to exit on warnings.

Made error messages friendlier. Revamped internal error handling mechanism.

5 Feb 2012 v0.56

Added data_path to allow adding to locations where files are searched for.

Added data/ to prefix path of locations where files are searched for. Now the default search locations are

  { CWD | CIRCOS_PATH } + { . | .. | ../.. } + { . | etc | data }

20 Feb 2012 v0.56-1

Added TTF versions of CMU Bright Roman and CMU Typewriter Regular. The OTF versions are incorrectly displayed by GD, when rotated.

Fixed bug that prevented regular expressions from being evaluated properly in a chromosome record.

Speeded up histogram code.

Speeded up function that draws arcs. If SVG file is not requested, this function now skips SVG-related calculations.

Fixed bug in init_counter which was causing this function to not be applied.

Added color_cache_create parameter to toggle creation of cache file on/off.

Added 'symbol' synonym for 'symbols' font.

Fixed round_up() utility function.

Added -chromosomes_display_default command line flag.

Changed chromosome prefix in Drosophila melanogaster (fruit fly) karyotype to 'dm' and colors to set1-6-qual palette.

Made the TTF support checking more robust. 

4 May 2012 v0.60

Added image_map_missing_parameter=ignoreparam to allow URL parameter values with [].

Fixed bug in extend_bin which prevented extend_bin=no from being correctly interpreted.

Fixed bug in testing z-depth for plots.

Fixed bug with angle_offset.

Links with transparency should now show up correctly in SVG.

Plot axes should now show up correctly in SVG.

Fixed a bug which made reversed chromosome segments created with chromosomes_breaks show up in an unintuitive order.

Fixed behaviour of offset when drawing slices. This fixed a bug that made some slice arcs curve the wrong way.

Configuration file syntax __$CONF{a}{b}__ can now be replaced with conf(a,b). eval() is needed if the conf value is used in an expression. For example eval(2*conf(a,b)) instead of __2*$CONF{a}{b}__

Wherever you would use a color name, you can now specify colors using r,g,b or r,g,b,a values. Here 'a' is the alpha channel 0..127 (0=opaque,127=transparent).

  color = red
  color = 250,50,50

Added -randomcolor, just for fun.

Links can be specified on one line in input data file, instead of two

  chr1 start1 end1 chr2 start2 end2 {options}

<link> blocks no longer need to be named - they now behave like <plot> blocks. 

  <links>
     <link>
        ...
     </link>
     <link>
        ...
     </link>
     ...
  </links>

Rules are now ordered in two phases. First, all rules with an
'importance' value are placed first, followed by rules that don't have
this parameter, in the order that they appear. For example, if the
following are rules' importance values ("-" means not defined)

  r1 -
  r2 0
  r3 15
  r4 -
  r5 20

the final order will be r5(20),r3(15),r2(0),r1(-),r4(-). Thus, rules
don't need the importance parameter at all, if you're happy with their
order of appearance.

Rule flow has been expanded. The flow parameter can now be one of

  flow = continue {if true|false}
  flow = restart {if true|false}
  flow = stop {if true|false}
  flow = goto TAG {if true|false}

By default, if the condition is not specified, a flow is always
triggered. This replaces the behaviour in which the flow triggered
only when the rule was passed.

  flow = stop          # always stops, regardless of whether rule is passed
  flow = stop if false # stops if rule is false

The TAG is assigned to a rule with 'tag'

  <rule>
  # define a tag for this rule
  tag = myrule
  ...
  </rule>
 
  <rule>
  ...
  # goto the rule with tag=myrule
  flow = goto myrule
  </rule>

You can have multiple flow tags to accomodate different if true/false actions.

  <rule>
  ...
  flow = stop if false
  flow = goto otherrule if true
  </rule>

A rule may lack a condition if a flow directive exists. Thus, shortcircuiting all rules can now be done with

  <rule>
  flow = stop
  </rule>

instead of 

  <rule>
  condition = 1
  flow = stop
  </rule>

If you would like to always skip to a rule (e.g. to bypass rules you don't want)

  <rule>
  flow = goto myrule
  </rule>

A rule or configuration may remove a parameter by setting its value to 'undef'. This is useful to remove default.

  <rule>
  condition = var(value) < 0.5
  fill_color = undef
  </rule>  

Added normalized relative scale. Now you can set

  chromosomes_scale = /hs/=0.5rn

to make all /hs/ equally sized and take up 0.5 of the circle. Previously, you had to do this

   chromosomes_scale = /hs/=0.2083r

assuming that /hs/ matched 24 chromosomes.

All tracks now have default settings, taken from etc/tracks.

4 Jun 2012 v0.61

Identified a bug in gd that causes problems when lines of thickess 1px are anti-aliased. Added anti_aliasing parameter to turn aa off to mitigate this.

Fixed bug that caused elements in list defined by chromosomes_colors to be applied in the wrong order.

Fixed a bug that made backgrounds to be incorrectly oriented for tracks whose orientation is reversed.

Added skip_missing_expression_vars in etc/housekeeping.conf to allow skipping references to missing parameters with var(NAME).

Added label_format to <ideogram> block. This parameter allows you to use the same dynamic syntax for labels as you do for rules.

  label_format = eval(var(chr))
  label_format = eval(var(chr_with_tag))
  label_format = eval(sprintf("%s %.3fMb",var(chr),var(size)/1e6))

Changed rebuild_color_cache to color_cache_rebuild.

Track axes are now defined using <axes> blocks with one or more <axis> entries. Each block can contain one or more of the following parameters: color, thickness, spacing, position, position_skip. Spacing and position parameters can be relative (use r suffix).

  <axes>
   color = grey
   thickness = 1
   <axis>
   spacing = 0.1r 
   position_skip = 25000
   </axis>
   <axis>
   position = 0.35r
   color = red
   </axis>
  </axes>

Track background is now defined using <backgrounds> blocks with one or more <background> entries. Each block can contain one or more of the following parameters: color, stroke_{color|thickness}, y0, y1. If y0 and/or y1 are not specified, track minimum and maximum are used, respectively. y0 and y1 can be absolute or relative (use r suffix for relative).

  <backgrounds>
   <background>
   color = lgrey
   </background>
   <background>
   y0 = 0.5r
   color = lgred
   </background>
   <background>
   y1 = 0.5r
   color = lgreen
   </background>
  </backgrounds>

When cytogenetic bands overlap, a warning is produced instead of fatal error.

Adjusted code which made v6.0 incompatible with perl 5.8 due to a recursive regular expression used to parse rules. Text::Balanced is now used to extract function arguments in balanced parentheses.

Added conf(.,x) syntax to access value of 'x' in the current block.

  <plot>
  r0 = 0.8r
  r1 = conf(.,r0)+0.1r
  ...

Top level blocks, such as <ideogram>, <colors>, <fonts>, <image> and <ticks> are merged. This allows you to do something like this

  # define your own color(s)
  <colors>
  mycolor = 255,100,100
  </colors>

  # include default color, fonts and patterns, which brings in 
  # <colors>, <fonts> and <patterns> blocks
  <<include etc/colors_fonts_patterns.conf>>

To override a value, don't forget to use *. For example, to hide the ideogram label in tutorial 2.2,

  <ideogram>
  # * is required at the end of parameter name so that it overrides the
  # default value of 'show_label' defined in the block imported below
  show_label* = no
  </ideogram>
  
  # default <ideogram> block from file
  <<include ideogram.conf>>

snuggle_sampling can now be relative

  max_snuggle_distance = 1r
  snuggle_sampling = 0.2r

Text that is not placed can now be explicitly shown using 'overflow'. This text will be placed at r0 of the track. The format of the unplaced text can be controled using overflow_* parmaeters

  overflow       = show
  overflow_font  = bold
  overflow_size  = 36
  overflow_color = red