Circos > Documentation > Tutorials > Highlights > Wedges
Loading
Circos at the EMBO NGS workshop in Tunis, Sept 15–25.

Use the latest version of Circos and read Circos best practices—these list recent important changes and identify sources of common problems.
If you are having trouble, post your issue to the Circos Google Group and include all files and detailed error logs. Please do not email me directly unless it is urgent—you are much more likely to receive a timely reply from the group.
Don't know what question to ask? Read Points of View: Visualizing Biological Data by Bang Wong, myself and invited authors from the Points of View series.

3 — Highlights

1. Wedge Highlights

circos.conf


<colors>
<<include etc/colors.conf>>
</colors>

<fonts>
<<include etc/fonts.conf>>
</fonts>

<<include ideogram.conf>>
<<include ticks.conf>>

karyotype   = data/karyotype.human.txt

<image>
dir = /tmp
file  = circos-tutorial.png
# radius of inscribed circle in image
radius         = 1500p
background     = white
# by default angle=0 is at 3 o'clock position
angle_offset   = -90
</image>

chromosomes_units           = 1000000

chromosomes        = hs1;hs2;hs3
chromosomes_breaks = -hs1:50-150;-hs2:0-100;-hs3:0-25;-hs3:80-120;-hs3:150-)

chromosomes_display_default = no

################################################################
#
# define highlights within <highlights> block
#
# note that the radial axis grid is drawn on top of the highlights

<highlights>

# the default value for z-depth and fill_color for all highlights

z = 0
fill_color = green

# we'll draw three highlight sets, all using the same data file

# the first set will be drawin from 0.6x 1x-25pixels of the ideogram
# radius and will be green (color by default)

<highlight>
file       = data/3/genes.txt
r0         = 0.6r
r1         = 1.0r - 100p
</highlight>

# the second set will be drawn on top of the first (higher z-depth)
# and will be 100px in the radial direction, starting at 0.7x the
# ideogram radius

<highlight>
file       = data/3/genes.txt
r0         = 0.7r
r1         = 0.7r + 100p
z          = 5
fill_color = red
</highlight>

# the third set will be outside the circle (r0,r1>1) and will be
# blue with dark blue border around each highlight

<highlight>
file       = data/3/genes.txt
r0         = 1.1r
r1         = 1.15r
fill_color = blue
stroke_color = dblue
stroke_thickness = 2
</highlight>

</highlights>

anglestep       = 0.5
minslicestep    = 10
beziersamples   = 40
debug           = no
warnings        = no
imagemap        = no

units_ok = bupr
units_nounit = n


ideogram.conf


<ideogram>

<spacing>

default = 3u
break   = 1u

axis_break_at_edge = yes
axis_break         = yes
axis_break_style   = 2

<break_style 1>
stroke_color = black
fill_color   = blue
thickness    = 0.25r
stroke_thickness = 2p
</break>

<break_style 2>
stroke_color     = black
stroke_thickness = 3p
thickness        = 1.5r
</break>

</spacing>

# thickness (px) of chromosome ideogram
thickness        = 100p
stroke_thickness = 2p
# ideogram border color
stroke_color     = black
fill             = yes
# the default chromosome color is set here and any value
# defined in the karyotype file overrides it
fill_color       = black

# fractional radius position of chromosome ideogram within image
radius         = 0.85r
show_label     = yes
label_with_tag = yes
label_font     = condensedbold
label_radius   = dims(ideogram,radius) + 0.05r
label_size     = 48p

# cytogenetic bands
band_stroke_thickness = 2p

# show_bands determines whether the outline of cytogenetic bands
# will be seen
show_bands            = yes
# in order to fill the bands with the color defined in the karyotype
# file you must set fill_bands
fill_bands            = yes

</ideogram>



ticks.conf


show_ticks          = yes
show_tick_labels    = yes

show_grid          = yes
grid_start         = 0.5r
grid_end           = 1.0r

<ticks>
skip_first_label     = no
skip_last_label      = no
radius               = dims(ideogram,radius_outer)
tick_separation      = 2p
min_label_distance_to_edge = 10p
label_separation = 5p
label_offset     = 2p
label_size = 8p
multiplier = 1e-6
color = black

<tick>
spacing        = 1u
size           = 3p
thickness      = 1p
color          = black
show_label     = no
label_size     = 12p
label_offset   = 0p
format         = %.2f
grid           = yes
grid_color     = grey
grid_thickness = 1p
</tick>
<tick>
spacing        = 5u
size           = 5p
thickness      = 1p
color          = black
show_label     = yes
label_size     = 8p
label_offset   = 0p
format         = %d
grid           = yes
grid_color     = grey
grid_thickness = 2p
</tick>
<tick>
spacing        = 10u
size           = 8p
thickness      = 2p
color          = black
show_label     = yes
label_size     = 8p
label_offset   = 0p
format         = %d
grid           = yes
grid_color     = vdgrey
grid_thickness = 2p
</tick>
</ticks>