CIRCOS教程翻译 5.9——Ribbons

这一节讲的是绶带模式,有的时候线条不能满足可视化的需求,所以主配置文件:

<<include colors_fonts_patterns.conf>>

<<include ideogram.conf>>
<<include ticks.conf>>

<image>
<<include etc/image.conf>>
</image>

karyotype   = data/karyotype/karyotype.human.txt

chromosomes_units           = 1000000
chromosomes                 = hs1[a]:0-0.8;hs1[b]:16.6-17.2;hs1[c]:141.5-148;hs1[d]:220.6-222.4;hs2[e]:90.8-95.2;hs2[f]:132.3-132.8;hs2[g]:242.5-) #分割整个染色体不同的区域
chromosomes_breaks          = -hs1:142.3-143.9;-hs1:144.2-144.7;-hs1:145-146;-hs1:220.8-222;-hs2:91.8-94.6
chromosomes_display_default = no

<links>

radius = 0.99r
crest  = 1
ribbon           = yes #开启绶带模式
flat             = yes #web教程这节没有这个的解释,从字面意思和图像来看应该是扁平
stroke_color     = vdgrey
stroke_thickness = 2
color            = grey_a3

bezier_radius        = 0r
bezier_radius_purity = 0.5

<link>

file             = data/5/segdup.txt

<rules>

flow       = continue

<rule>
condition  = var(intrachr) && abs(var(pos1)-var(pos2)) < 10Mb
show       = no
</rule>

<rule> #10kb以内的links不显示
condition  = max(var(size1),var(size2)) < 10kb
show       = no
</rule>

<rule>
condition  = 1
z          = eval(int(max(var(size1),var(size2))/5000))
</rule>

<rule> #根据不同的条件显示不同的颜色
condition    = var(intrachr) 
condition    = (from(hs1) && var(start1) < 1Mb) || (to(hs1) && var(start2) < 1Mb)
color        = orange
stroke_color = dorange
</rule>

<rule>
condition    = var(intrachr)
condition    = (from(hs1) && var(start1) > 16Mb && var(start1) < 17Mb) || (to(hs1) && var(start2) > 16Mb && var(start2) < 17Mb)
color        = lblue
stroke_color = dblue
</rule>

</rules>

</link>

</links>

<<include etc/housekeeping.conf>>

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值