This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Can I Label Tiles In Circos?

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

1 answer

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

+1 for adding the answer!

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!

Log in to answer this question.