circos 可视化手册-line plot 篇
欢迎关注微信公众号《生信修炼手册》!
line plot
在circos
中的用法比较简单,示例如下:
对于折线图而言,调整外观的属性有以下4个
1. thickness
thickness
控制线条的粗细
2. color
color
控制线条的颜色
3. fill_color
fill_color
控制填充色,在折线的下方进行颜色填充
4. max_gap
在直线图中,会看到如下所示的分割线,max_gap
的作用就是设置分割线的间距,max_gap = 1u
代表每隔1个单位画一条分割线,其用法和ticks
类似
控制位置的属性在前面的文章中我们已经介绍过了,这里在重复一遍。
r0
和r1
分别设置圆环的内径和外径,max
和min
设置y轴的最大值和最小值,orientation
控制y轴0点的位置,orientation = in
代表 y = 0
位于r1上;orientation = out
表示y = 0
位于r0 上;z
代表优先级,数值越大,优先级越高,当两个折线图重叠时,优先级高的会有先显示。
与backgrounds
, axes
, rules
的结合使用,在scatter plot
中,我们也介绍过了,今天解锁一种axes
的新用法,代码如下
在之前的文章中,我们看到了用y0
, y1
指定范围,再用spacing
参数设定间隔的用法, 这种用法可以方便的设置多条轴线;今天的这个例子中,通过position
直接设置轴线的位置,适合指定单条轴线。
最后放一张line plot
的示例,在下图中,除去染色体外,包括3个line plot
; 最内圈的line plot
有3种填充色,背景色也有3种,另外两圈的line plot
中,其axes
的定义就是使用了position
的用法,可以看到其轴线非常少,只有2,3条;最内圈的line plot
的轴线则采用spacing
的用法,其轴线非常多,而且均匀分布
完整代码如下
<<include colors_fonts_patterns.conf>><<include ideogram.conf>>
<<include ticks.conf>><image>
<<include etc/image.conf>>
</image>karyotype = data/karyotype/karyotype.human.txtchromosomes_units = 1000000
chromosomes = hs1 # ;hs2;hs3
chromosomes_display_default = no<plots>type = line
thickness = 2<plot>max_gap = 1u
file = data/6/snp.density.250kb.txt
color = vdgrey
min = 0
max = 0.015
r0 = 0.5r
r1 = 0.8rfill_color = vdgrey_a3<backgrounds>
<background>
color = vvlgreen
y0 = 0.006
</background>
<background>
color = vvlred
y1 = 0.002
</background>
</backgrounds><axes>
<axis>
color = lgrey_a2
thickness = 1
spacing = 0.025r
</axis>
</axes><rules><rule>
condition = var(value) > 0.006
color = dgreen
fill_color = dgreen_a1
</rule><rule>
condition = var(value) < 0.002
color = dred
fill_color = dred_a1
</rule></rules></plot># outside the circle, oriented out
<plot>max_gap = 1u
file = data/6/snp.density.txt
color = black
min = 0
max = 0.015
r0 = 1.075r
r1 = 1.15r
thickness = 1fill_color = black_a4<axes>
<axis>
color = lgreen
thickness = 2
position = 0.006
</axis>
<axis>
color = lred
thickness = 2
position = 0.002
</axis>
</axes></plot><plot>
z = 5
max_gap = 1u
file = data/6/snp.density.1mb.txt
color = red
fill_color = red_a4
min = 0
max = 0.015
r0 = 1.075r
r1 = 1.15r
</plot># same plot, but inside the circle, oriented in
<plot>
max_gap = 1u
file = data/6/snp.density.txt
color = black
fill_color = black_a4
min = 0
max = 0.015
r0 = 0.85r
r1 = 0.95r
thickness = 1
orientation = in<axes><axis>
color = lgreen
thickness = 2
position = 0.01
</axis><axis>
color = vlgreen
thickness = 2
position = 0.008
</axis></axes><axis>
color = vlgreen
thickness = 2
position = 0.006
</axis>
<axis>
color = red
thickness = 2
position = 0.002
</axis>
</axes></plot><plot>
z = 5
max_gap = 1u
file = data/6/snp.density.1mb.txt
color = red
fill_color = red_a4
min = 0
max = 0.015
r0 = 0.85r
r1 = 0.95r
orientation = in
</plot></plots><<include etc/housekeeping.conf>>
扫描关注微信号,更多精彩内容等着你!
circos 可视化手册-line plot 篇相关推荐
- circos 可视化手册- heatmap 篇
欢迎关注微信公众号<生信修炼手册>! heatmap将一系列的数值映射到一个颜色梯度中,是最常用的图表之一.在circos中,通过plot这个block进行设置.用法如下: heatmap ...
- circos 可视化手册-histograms 篇
欢迎关注微信公众号<生信修炼手册>! histograms可以看到是line plot的一个变种,首先来看一个示例 图中最内圈的就是historgams了,可以看到由许多个柱子组成,每个柱 ...
- circos可视化手册-ideogram 篇
欢迎关注微信公众号<生信修炼手册>! circos 主要用于展示染色体上的相关数据,根据在染色上的位置进行不同方式的可视化.所以有一个前提,我们需要基于染色体的位置来看. 在circos中 ...
- circos 可视化手册-highlights 篇
欢迎关注微信公众号<生信修炼手册>! 通过ideogram和ticks这两个block, 我们能够把全部的染色体信息绘制成精妙的circos 图片,但是这些只是circos的基本功能,染色 ...
- circos 可视化手册- text 篇
欢迎关注微信公众号<生信修炼手册>! 不论是heatmap, 还是scatter, histogram, 反应的都是基因组上某段区域对应的value值的分布,这里的value都是数值.对于 ...
- circos 可视化手册-links 篇
欢迎关注微信公众号<生信修炼手册>! highlights用于展示基因组上特定的区域的分布,通常情况下,还需要展示不同区域之间的关联,比如融合基因,CNV等信息,这样的信息就通过links ...
- python使用matplotlib可视化线图(line plot)、移除可视化结果的所有坐标轴信息(remove all axis in matplotlib graph)
python使用matplotlib可视化线图(line plot).移除可视化结果的所有坐标轴信息(remove all axis in matplotlib graph) 目录
- python使用matplotlib可视化线图(line plot)、设置X轴坐标的下限和上限数值(setting the lower and upper bound of the x axis)
python使用matplotlib可视化线图(line plot).设置X轴坐标的下限和上限数值(setting the lower and upper bound of the x axis) 目 ...
- python使用matplotlib可视化线图(line plot)、在可视化图像中的指定位置添加横线(add horizontal line in matplotlib plot)
python使用matplotlib可视化线图(line plot).在可视化图像中的指定位置添加横线(add horizontal line in matplotlib plot) 目录
最新文章
- 那个博士生以死控告的教授,被ACM撤销了会员资格
- Memcache 安装与使用
- 共轭矩阵与自共轭矩阵
- HDU 6070 Dirt Ratio(线段树、二分)
- 由旋转画廊,看自定义RecyclerView.LayoutManager
- JVM性能调优监控工具专题二:VisualVM基本篇之监控JVM内存,CPU,线程
- Codeforces Round #243 (Div. 1)——Sereja and Squares
- 用ARM DS-5进行android linux开发
- hdoj-3342-Legal or Not(拓扑排序)
- scala 线性回归_Scala的特征线性化
- web前端之js快速入门(ECMAscript)
- 《linux核心应用命令速查》连载三:sa:报告、清理并维护进程统计文件
- 如何进行用户访谈更容易获得全面而有效的信息
- 利用人性弱点的互联网产品(二)色欲
- 关于JSP文件的运行方法
- 中国人民大学与加拿大女王大学金融硕士-作为金融人你深知,投资学习是一本万利的
- github、码云的使用
- OpenCV使用findContours()查找轮廓
- 美容行业小程序的价值好处
- python使用级数pi的近似值_π近似莱布尼兹级数
热门文章
- 【C语言】5个成绩,去掉最高分,去掉最低分,求 平均分
- HTTP VS HTTPS
- python随笔:round函数的使用
- python代码实现ASCII码转换
- Hadoop Yarn 安装
- 下一代防火墙(NGFW)如何防御APT攻击?
- linux修改时间和日期,linux修改时间和日期的方法
- 链改重塑信任,打造零风险的产业生态体系!
- Android-悬浮窗功能的实现(附Java、KT实现源码,自学Android
- Unable to boot device because it cannot be located on disk. Domain: NSPOSIXErrorDomain