美文网首页
如何使用Circos-8:Text 简单配置

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

作者: 思考问题的熊 | 来源:发表于2018-02-11 17:17 被阅读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>
    

    图例


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

    相关文章

      网友评论

          本文标题:如何使用Circos-8:Text 简单配置

          本文链接:https://www.haomeiwen.com/subject/fpqltftx.html