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.
Ribbons can be drawn with a pattern fill by setting the
<link myribbons> ... ribbon = yes pattern = checker ...
The following patterns are available
Like fonts, patterns are named in their own block and imported from another configuration file.
<patterns> <<include etc/pattern.conf>> </patterns>
This file associates the pattern name with a PNG file.
# etc/pattern.conf vline = tiles/vlines.png vline-sparse = tiles/vlines-sparse.png ...
You can add your own patterns by creating a PNG file and adding it to the pattern block. Use an 8-bit PNG. Transparency is not supported for tiles.
If you do not specify a color for a pattern (see below), the pattern will be used as it appears in the PNG file, without any change in colors.
A pattern's colors can be remapped using the color parameter. The predefined patterns are black-on-white, but you can remap a pattern's color by defining a list of
color = white:red,black:orange
To invert a black and white pattern,
color = white:black,black:white
To replace all the colors in a pattern that are not the same as the image's background color, set the
color value to a single word. For example, on an image whose background is black
color = red
will color all non-black pixels in the pattern red.
In this tutorial, the links originally are defined with a color.
link_10 hs11 27363982 47363982 color=chr11 link_10 hs8 1 12346012 color=chr11 link_11 hs11 113293528 133293528 color=chr11 link_11 hs21 24848956 44848956 color=chr11 link_12 hs10 27542441 47542441 color=chr10 link_12 hs20 33053889 53053889 color=chr10
A rule is set up so that for 50% of the ribbons, a colored pattern is selected.
For about 25% of the links, only a pattern is selected. Because each link already has a color, the pattern is colored by the existing color (in this case, chromosome color).
This is not supported by GD. Regardless of whether your PNG file has transparency or not, the tiled pattern will not have transparent components.