CIRCOS教程翻译 2.2——karyotype

本文介绍如何使用Circos工具绘制生物遗传学中的核型图,详细解释了配置文件的各部分参数意义及设置方法,包括染色体布局、标签样式等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

karyotype核型图,一般的核型图是直线模式,circos将其转换成圆形。karyotype文件格式分两部分,第一部分为染色体的总长和标识,第二部分为每条染色体的基因区域,当然第一部分是必要的。看了一下这一节的内容发现跟第一节的内容有些不一样,看来必须重新写完整的了。

#ideogram.conf
<ideogram>

<spacing>

default = 0.0025r
#break   = 0.5r 同一染色体内部分开的大小,在这一节用不到,怀疑随便找的conf
</spacing>

<<include ideogram.position.conf>>
<<include ideogram.label.conf>>
<<include bands.conf>>

</ideogram>
#bands.conf

show_bands            = yes
fill_bands            = yes
band_stroke_thickness = 2
band_stroke_color     = white
band_transparency     = 4
#ideogram.position.conf

radius           = 0.90r
thickness        = 75p
fill             = yes
fill_color       = black
stroke_thickness = 2
stroke_color     = black
#ideogram.label.conf

show_label       = yes
label_font       = default
label_radius     = 0.95r #label的半径直接与圈圈挂钩的,0.95r其实它的位置是在0.95*0.9r位置上
label_size       = 36
label_parallel   = yes
label_case       = lower #英文小写,大写为upper

label_format     = eval(sprintf("chr%s",var(label))) #先格式化label的内容,再进行重写
#ticks.conf
show_ticks          = yes
show_tick_labels    = yes

<ticks>
skip_first_label = no
skip_last_label  = no
radius           = dims(ideogram,radius_outer)
tick_separation  = 3p #设定tick最小的范围,也就是说1u这个刻度尺无法显示,另外这个值经过多次测试发现有些问题,暂时还没想清楚,如果想不显示某个刻度,建议直接不写!
multiplier       = 1e-6
color            = black
thickness        = 4p
size             = 20p

<tick>
spacing        = 1u
show_label     = no
thickness      = 2p
color          = dgrey
</tick>

<tick>
spacing        = 5u
show_label     = no
color          = vdgrey
</tick>

<tick>
spacing        = 10u
show_label     = yes
label_size     = 20p
label_offset   = 10p
format         = %d
</tick>

</ticks>
<<include etc/colors_fonts_patterns.conf>>

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

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

chromosomes_units           = 1000000
chromosomes_display_default = yes #可以不写~~~

karyotype = data/karyotype/karyotype.human.txt #如果有多个物种可以写在一个文件内,不过ID和label不能一样,并且设置不同的颜色加以区分

<<include etc/housekeeping.conf>>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值