Can I Label Tiles In Circos?
1
5
Entering edit mode
9.1 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.

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
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.9k views
8
Entering edit mode
9.1 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
</plot>


And voila:

3
Entering edit mode

Wow, thanks, lol

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!

0
Entering edit mode