Question: Can I Label Tiles In Circos?
5
gravatar for a.zielezinski
6.5 years ago by
a.zielezinski9.0k
a.zielezinski9.0k wrote:

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 • 4.1k views
ADD COMMENTlink modified 6.5 years ago • written 6.5 years ago by a.zielezinski9.0k
8
gravatar for a.zielezinski
6.5 years ago by
a.zielezinski9.0k
a.zielezinski9.0k wrote:

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 COMMENTlink written 6.5 years ago by a.zielezinski9.0k
3

Wow, thanks, lol

ADD REPLYlink modified 6.5 years ago • written 6.5 years ago by a.zielezinski9.0k
3

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 REPLYlink written 6.5 years ago by Neilfws48k

+1 for adding the answer!

ADD REPLYlink written 6.5 years ago by zx87549.0k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2235 users visited in the last hour