According to the tutorials (http://circos.ca/documentation/tutorials/), to draw a graph using circos, at least three files needed.

Download the software and install: http://circos.ca/software/download/

running code: /PATH/circos/bin/circos -conf z1.conf

Files preparation:

# 1. genome file#

# can be in one file or one species one file. Following is the format.

chr - sb7 sb7 0 354 chr7
chr - si7 si7 0 322 chr7
chr - sb8 sb8 0 215 chr8
chr - si8 si8 0 251 chr8
chr - sb15 sb15 0 130 chr15
chr - si15 si15 0 147 chr15

# 2. hist.txt #

# this is not necessary to have.

"V1" "temp1" "temp"
"1" 1 0.5 555
"2" 1 1.5 157
"3" 1 2.5 0
"4" 1 3.5 3
"5" 1 4.5 3
"6" 1 5.5 0
"7" 1 6.5 0
"8" 1 7.5 0
"9" 1 8.5 0
"10" 1 9.5 0
"11" 1 10.5 0
"12" 1 11.5 0
"13" 1 12.5 0
"14" 1 13.5 0
"15" 1 14.5 0
"16" 1 15.5 0
"17" 1 16.5 0
"18" 1 17.5 0
"19" 1 18.5 0
"20" 1 19.5 0
"21" 1 20.5 0
"22" 1 21.5 8
"23" 1 22.5 209
"24" 2 0.5 0
"25" 2 1.5 1
"26" 2 2.5 0
"27" 2 3.5 0
"28" 2 4.5 0
"29" 2 5.5 0
"30" 2 6.5 0

# 3. link file#

linkzm-si-1-1 zm1 0 61 z=0,color=chr1
linkzm-si-1-1 si1 0 78 z=0,color=chr1
linkzm-si-1-9 zm1 71 125 z=0,color=chr9
linkzm-si-1-9 si9 0 73 z=0,color=chr9
linkzm-si-1-14 zm1 125 222 z=0,color=chr14
linkzm-si-1-14 si14 0 73 z=0,color=chr14

# 4.genome.conf#

#karyotype = /home/xlai/Desktop/UntitledFolder/motif/Newcluster/circos/zm.txt,/home/xlai/Desktop/UntitledFolder/motif/Newcluster/circos/sb.txt,/home/xlai/Desktop/UntitledFolder/motif/Newcluster/circos/si.txt
karyotype = /home/xlai/Desktop/UntitledFolder/motif/Newcluster/circos/sbsi.scaled.txt
#chromosomes_units = 100

#this histgram part is not necessary
########################################histogram
<plots>
<plot>

type = histogram

file = /home/xlai/Desktop/UntitledFolder/motif/Newcluster/circos/sbsi.hist.txt

fill_color = vdgrey

color            = black
stroke_thickness = 3
r1               = 0.99r
r0               = 0.7r
orientation      = out

extend_bin = yes

<rule>
condition = on()
show      = yes
</rule>

</plot>
<plot>

type = histogram

file = /home/xlai/Desktop/UntitledFolder/motif/Newcluster/circos/clock.txt

fill_color = vdgrey

color            = black
stroke_thickness = 1
r1               = 0.99r
r0               = 0.95r
orientation      = in

extend_bin = yes

<rule>
condition = on()
show      = yes
</rule>

</plot>
</plots>
############################z1.conf
<ideogram>

<spacing>
default = 0.001r
</spacing>

# Ideogram position, fill and outline

radius           = 0.9r
thickness        = 20p
fill             = yes
stroke_color     = dgrey
stroke_thickness = 2p

# Minimum definition for ideogram labels.
show_label       = yes
# see etc/fonts.conf for list of font names
label_font       = default
label_radius     = 1r + 75p
label_size       = 40
label_parallel   = yes

</ideogram>
###############
show_links      = yes
### links
<links>

show          = conf(show_links)
ribbon        = yes
flat          = yes
radius        = 0.7r-30p
bezier_radius = 0.3r
color         = black_a5

<link>
file = /home/xlai/Desktop/UntitledFolder/motif/Newcluster/circos/lk.sbsi.scaled.txt
<rules>
<rule>  
condition  = var(size1) < 0
show       = no
</rule>

<rule>
condition  = 1
color      = eval(sprintf("chr%s_a3",substr(var(chr2),2)))
z          = eval(remap_int(var(size2),0,1,0,-100))
</rule>
</rules>
</link>

</links>

################################################################

<image>
# Included from Circos distribution.
<<include etc/image.conf>>
</image>

# RGB/HSV color definitions, color lists, location of fonts, fill patterns.
# Included from Circos distribution.
<<include etc/colors_fonts_patterns.conf>>

# Debugging, I/O an dother system parameters
# Included from Circos distribution.
<<include etc/housekeeping.conf>>

Simple circos code的更多相关文章

  1. simple python code when @ simplnano

    code: import serial,time,itertools try: ser=serial.Serial(2,115200,timeout=0) except: print 'Open CO ...

  2. Transport Block Size, Throughput and Code rate-----http://www.simpletechpost.com/2012/12/transport-block-size-code-rate-protocol.html

    Transport Block Size, Throughput and Code rate   Since the size of transport block is not fixed, oft ...

  3. Peer Code Reviews Made Easy with Eclipse Plug-In

    欢迎关注我的社交账号: 博客园地址: http://www.cnblogs.com/jiangxinnju/p/4781259.html GitHub地址: https://github.com/ji ...

  4. GOOGLE CODE ANDROID 开源项目 集合

    转:http://blog.csdn.net/dellheng/article/details/7163333 1.        ZXing  http://code.google.com/p/zx ...

  5. C# How To Read .xlsx Excel File With 3 Lines Of Code

    Download Excel.zip - 9.7 KB Download ExcelDLL.zip - 3.7 KB Introduction We produce professional busi ...

  6. Coroutine in Java - Quasar Fiber实现--转载

    转自 https://segmentfault.com/a/1190000006079389?from=groupmessage&isappinstalled=0 简介 说到协程(Corout ...

  7. Unit Testing with NSubstitute

    These are the contents of my training session about unit testing, and also have some introductions a ...

  8. Atitit webservice的发现机制 discover机制

    Atitit webservice的发现机制 discover机制 1.1. Ws disconvert 的组播地址和端口就是37021 1.2. Ws disconvert的发现机制建立在udp组播 ...

  9. Atitti  onvif 设备发现与原理

    Atitti  onvif 设备发现与原理 1.1. ,有以下几个步骤:1 1.2. 设备搜索原理及编程技巧:2 1.3. Ws disconvert 的组播地址和端口就是37022 1)发现ipca ...

随机推荐

  1. VNPY 文件目录结构

    VNPY ├─examples 可以运行起来的实际程序│ ├─CoinapiDataService│ ├─CryptoTrader│ ├─CtaBacktesting│ ├─CtaTrading│ ├ ...

  2. 浏览器如何对HTML5的离线储存资源进行管理和加载

    在线的情况下,浏览器发现html头部有manifest属性,它会请求manifest文件,如果是第一次访问app,那么浏览器就会根据manifest文件的内容下载相应的资源并且进行离线存储.如果已经访 ...

  3. Vue入门笔记(二)--基础部分之条件渲染

    github地址:https://github.com/iTao9354/basicVue/tree/master/conditional%20rendering(demo01-03) 一.v-if ...

  4. 在公网上的Linux,我的一些配置分享

    前言 去年的时候,有一篇介绍在vultr上搭建ss服务器的文章,由于某些众所周知的原因,被阿里云删除. 后来有段时间使用vps,配合<鸟哥私房菜>,学习实操linux.当时我以为只要roo ...

  5. Python中对字符串的操作

    Python字符串的相关操作 1.字符串格式判断 s.isalnum() #所有字符都是数字或者字母 s.isalpha() #所有字符都是字母 s.isdigit() #所有字符都是数字 s.isl ...

  6. 【持续更新】JAVA面向对象多线程编程的一些tips

    sleep()和wait()的区别 sleep()方法是Thread类的方法,wait()方法是Object类的方法. 调用sleep()方法的过程中,线程不会释放对象锁,睡眠时间一过,就又开始执行. ...

  7. POJ - 3264——Balanced Lineup(入门线段树)

    Balanced Lineup Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 68466   Accepted: 31752 ...

  8. fwrite文件写入数据

    文件的操作就两种:读和写 读:把文件中的内容读入到程序中,然后根据自己的项目需求把文件的数据进行相关的处理. 写:就是将程序中的数据,写入到文件中,去更新文件. 这么两种操作归到代码中就是这两种函数: ...

  9. [SCOI2005]扫雷

    我们可以发现...最开始的两个...只有两种情况...直接枚举一下...递推出结果好了... 呆码: #include<iostream> #include<cstring> ...

  10. 记一次msyql导入导致的问题

    公司有个项目要导入150M大小的sql文件,但是导入时报错,去网上找答案,很多人说是因为保留字什么什么的,所以就按照sql文件里面的mysql版本又去下载了一份mysql5.6安装好,但是登陆不了,又 ...