欢迎来到"bio生物信息"的世界

BMC Bioinformatics前几天发布了一个画曼哈顿图的工具Manhattan++, 这个名字很好理解,Manhattan的升级版。

这个工具与之前画曼哈顿图的工具有什么区别呢。

最大的特点是能将显著的位点以及注释信息显示在曼哈顿图上。

可视化很漂亮,特别有高级感。

好了,以下进入主题,讲讲怎么画这个图。

1 准备需要的输入文件

需要的输入文件有三个,分别是infile, configfile, snpfile

infile的文件格式如下:

infile文件每一列所代表的内容如下:

chr - chromosome (must be numeric)

pos - position

pvalue - p-value (please do not log-transform)

maf - Minor Allele Frequency

conseq - Flag of whether variant has HIGH functional consequence (使用VEP计算)

Loci information (snpfile)的文件格式如下:

Loci information (snpfile)文件提供显著位点的Loci即可,不需要把整个基因组都放上去。

snpfile文件每一列所代表的内容如下:

markername - The name of the variant

gene - The gene name associated with the variant

chr - chromosome

pos - position

eaf - effect allele frequency

OR - Odds Ratio

Pvalue - P-value

novel - The novel flag indicates whether the loci is a new finding in the GWAS being reported.

Configuration file(configfile)文件格式如下:

configfile文件是对曼哈顿图颜色的注释,不同颜色代表不同的情况。

不同颜色所代表的信息可以看下表:

2 画图

运行命令:

安装包:

install.packages("devtools")

library(devtools)

install_github("cgrace1978/manhplot", dependencies = T, force = T)

library(manhplot)

infile<-system.file("extdata","cad.add.160614_manhformat.txt.gz",package = "manhplot")

configfile<-system.file("extdata","config.txt", package = "manhplot")

snpfile<-system.file("extdata","56cad.add.160614.variants.txt", package = "manhplot")

manhplusplot(infile = infile,outfile = "test", configfile = configfile, snpfile = snpfile)

以下是示例图:

感兴趣的请看文章:BMC Bioinformatics. 2019 Nov 27;20(1):610. doi: 10.1186/s12859-019-3201-y.Manhattan++: displaying genome-wide association summary statistics with multiple annotation layers.

最新文章

  1. python中__init__问题
  2. xampp安装
  3. Enterprise Architect 学习 之 用例图
  4. nginx配置图片防盗链
  5. MonkeyRunner学习(3)脚本编辑
  6. ASP.NET多线程下使用HttpContext.Current
  7. npm install Error:EPROTO: protocol error, symlink &#39;../mime/cli.js&#39; -&gt; &#39;/vagrant/src/nodejs/node_modules/express/node_modules/send/node_modules/.bin/mime&#39;
  8. Hyperion Essbase BusinessRule 函数学习--2
  9. 无穷字符串问题--CSDN上的面试题(原创)
  10. Git一些其它的功能
  11. 安卓Acitivity的启动模式
  12. 生成csv格式文件并导出至页面的前后台实现
  13. rsync 密钥文件错误问题总结
  14. 快递100码json
  15. [Swift]LeetCode385. 迷你语法分析器 | Mini Parser
  16. day30 纸牌游戏
  17. 55.1拓展之边框border-width属性。
  18. 秋风下的萧瑟 NOIP2018 游记
  19. 微软企业库Unity学习笔记
  20. Web Service——CXF+Spring 整合

热门文章

  1. eclipse使用mybatis实现Java与xml文件相互跳转
  2. C++学习(12)—— 运算符重载
  3. 项目Alpha冲刺(团队) -- 总结及汇总
  4. Spring Boot 之:Actuator 监控
  5. Windows Automation API和自动化测试
  6. 每隔15s异步刷新手机页面
  7. git crate patch and check&amp;apply patch(八)
  8. java 面向对象2
  9. 【JZOJ6214】【20190614】tetris
  10. 再说js隐式转换