如何使用Circos-8:Text 简单配置

2018-02-11  本文已影响60人  思考问题的熊

说明,该系列原文写于2016年3月。

这一部分内容来学习如何对文字进行简单配置

例1: text

<plot>
type = text
file = data/6/genes.labels.txt

r1 = 0.8r
r0 = 0.6r

# 参考字体位置 etc/fonts.conf in the Circos distribution.

label_font = light #设置字体
label_size = 12p

# padding - text margin in angular direction 角方向
# rpadding - text margin in radial direction 径向方向
rpadding = 5p

# 文字和指向位置之间添加连线
show_links = no
link_dims = 0p,2p,5p,2p,2p
link_thickness = 2p
link_color = black

# 同样也可以通过<rule>来设置筛选规则并通过不同颜色或者形式显示。

<rule>
condition = var(value) =~ /a/i
label_font = bold
flow = continue
</rule>
#如果文字里包含有a字母则使用粗体
<rule>
condition = var(value) =~ /b/i
color = blue
</rule>
#如果文字里包含有b字母则使用蓝色
</rules>

</plot>

图例


加入靠谱熊基地,和大家一起交流
上一篇下一篇

猜你喜欢

热点阅读