Can I Label Tiles In Circos?
1
5
Entering edit mode
10.7 years ago

I'm pulling my hair out over this. I want to display information about genes in Circos. So I plotted gene regions, shown here as green tiles. Could someone please tell me how to label the tiles? Thanks in advance.

enter image description here

Here's the plotting part from Circos configuration file.

<plots>

type = tile
layers_overflow

<plot>
file = data/genes.txt
r1 = 0.99r
r0 = 0.96r
orientation = center
layers = 1
margin = 0.02u
thickness = 25
padding = 3
layers_overflow = collapse
layers_overflow_color = green
stroke_thickness = 1
stroke_color = dgreen
color = green
</plot>

</plots>

And my file gene.txt looks like this:

017B07    577        29521      gene1
017B07    32684    34490    gene2
017B07    35880    37457    gene3
017B07    39649    43420    gene4
text • 5.3k views
ADD COMMENT
8
Entering edit mode
10.7 years ago

You just need to add another plot tag with labels:

<plot>
type = text
color      = black
label_font = default
label_size = 24p
file = genes.txt
r1   = 1r+500p
r0   = 0.9r
show_links     = no
</plot>

And voila:

enter image description here

ADD COMMENT
3
Entering edit mode

Wow, thanks, lol

ADD REPLY
3
Entering edit mode

On the rare occasions that I ask questions online, the answer usually comes to me about 1 minute later. It may be that formulating the question is part of the mental process that leads to realising the solution. In these cases, it is of course perfectly fine to answer your own question, I encourage it!

ADD REPLY
0
Entering edit mode

+1 for adding the answer!

ADD REPLY

Login before adding your answer.

Traffic: 1511 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6