rule的最后一节内容,主配置文件:
<<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_display_default = no
chromosomes = hs1;hs2;hs3
<links>
radius = 0.975r
crest = 1
color = grey
bezier_radius = 0r
bezier_radius_purity = 0.5
thickness = 2
<link>
file = data/5/segdup.bundle3.colored.txt #文件包含颜色和厚度
<rules>
<rule> #厚度为4的links,并且每links的随机数小于0.25,将其厚度重置为10,绿色,深度为15
condition = var(thickness) == 4 && rand() < 0.25
thickness = 10
color = green
z = 15
</rule>
<rule> #颜色为红色的links,将其厚度重置为4,深度为15
condition = var(color) eq "red"
thickness = 4
z = 10
flow = restart
</rule>
<rule> #不为灰色且厚度为2的links设置深度为5
condition = var(color) ne "grey" && var(thickness) == 2
z = 5
</rule>
</rules>
</link>
</links>
<<include etc/housekeeping.conf>>