mt 367808
bedtools makewindows -g chr.txt -w 1000 > windows.bed
bedtools coverage -a windows.bed -b ssr.bed | cut -f 1-4 > ssr.density.txt
bedtools coverage -a windows.bed -b trf.bed | cut -f 1-4 > trf.density.txt
echo "
karyotype =karyotype.txt #指定染色体文件,注意这里写的相对路径,
chromosomes_units = 1000 #设置长度单位,表示500k长度的序列代表为1u
chromosomes_display_default = yes #默认是将所有的染色体都展示出来
show_tick_labels=yes
show_ticks=yes
##ideogram 染色体和刻度线配置
<ideogram>
fill=yes
label_font=default
label_parallel=yes
label_radius=dims(image,radius)-60p
label_size=65
radius=0.9r
show_label=yes
<spacing>
default=0u #染色体之间间隙
</spacing>
stroke_color=dgrey
stroke_thickness=2p
thickness=60p
</ideogram>
<ticks> #设置染色体刻度
color=black
format=%d
multiplier=1e-3
radius=1r
thickness=2p
<tick>
size=10p
spacing=10u
</tick>
<tick>
color=black
format=%d
label_offset=10p
label_size=50p
show_label=yes
size=15p
spacing=25u
thickness=4p
</tick>
</ticks>
<links> #共线性links
<link>
file=link.f.txt
bezier_radius=0r # #设置贝塞尔曲线半径,该值设大后曲线扁平。
#bezier_radius_purity=0.75
color=yellow
#crest=0.5
radius=0.85r #设置link半径
thickness=8 #设置 link 曲线的粗细
ribbon=no #条带yes,线 no
</link>
<link>
file=link.p.txt
bezier_radius=0r # #设置贝塞尔曲线半径,该值设大后曲线扁平。
#bezier_radius_purity=0.75
color=green
#crest=0.5
radius=0.85r #设置link半径
thickness=8 #设置 link 曲线的粗细
ribbon=no #条带yes,线 no
</link>
</links>
<plots>
<plot>
type = heatmap
file = ssr.density.txt #SSR文件
color = blues-7-seq
r1 = 0.98r
r0 = 0.94r
</plot>
<plot>
type = heatmap
file = trf.density.txt #TRF文件
color = blues-9-seq
r1 = 0.92r
r0 = 0.87r
</plot>
</plots>
<colors>
<<include etc/colors.conf>>
<<include etc/brewer.conf>>
#<<include etc/colors_fonts_patterns.conf>>
#<<include colors.ucsc.conf>>
#<<include colors.hsv.conf>>
</colors>
<fonts>
<<include etc/fonts.conf>>
</fonts>
<image>
<<include etc/image.conf>>
</image>
<<include etc/housekeeping.conf>>
">circos.conf
circos -conf circos.conf -outputfile repeat.circos
-conf:指定配置文件;-outputfile输出文件名
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!