karyotype = data/karyotype/karyotype.human.txt
chromosomes_units = 1000000 #默认染色体长度单位为MB
<<include ideogram.conf>>
<<include ticks.conf>> #类似java类函数的调用
<image>
<<include etc/image.conf>>
</image>
<<include etc/colors_fonts_patterns.conf>>
<<include etc/housekeeping.conf>>
以上为主文件,现在看看调用里面是什么吧:
show_ticks = yes #刻度尺
show_tick_labels = yes
<ticks>
radius = 1r
color = black
thickness = 2p
multiplier = 1e-6
format = %d #格式化,d代表integer
<tick>
spacing = 5u #u为circos绝对单位,次刻度
size = 10p
</tick>
<tick>
spacing = 25u #主刻度
size = 15p
show_label = yes
label_size = 20p
label_offset = 10
format = %d
</tick>
</ticks>
以上为刻度的画法,现在要添加染色体的名称:
<ideogram>
<spacing>
default = 0.005r
</spacing>
radius = 0.90r
thickness = 20p
fill = yes
stroke_color = dgrey
stroke_thickness = 2p
show_label = yes
label_font = default
label_radius = dims(image,radius) - 60p #计算image中radius的尺度
label_size = 30p
label_parallel = yes #label垂直于圈
</ideogram>
三个文件需分别保存即可运行: