使用 phylip构建进化树
001、测试数据转换为vcf格式
[root@PC1 test]# ls test.map test.ped [root@PC1 test]# plink --file test --recode vcf-iid --out test
002、将vcf转为phylip格式文件
[root@PC1 test]# /opt/TASSEL5/run_pipeline.pl -importGuess test.vcf -ExportPlugin -saveAs test.phy -format Phylip_Inter [root@PC1 test]# ls test.map test.ped test.phy test.vcf
003、生成dandist的配置文件
[root@PC1 test]# echo -e "test.phy\nY" > dnadist.cfg [root@PC1 test]# ls dnadist.cfg test.map test.ped test.phy test.vcf
004、运行dnadist程序,生成距离矩阵文件
[root@PC1 test]# /home/software/phylip/phylip-3.697/exe/dnadist < dnadist.cfg >dnadist.log [root@PC1 test]# ls dnadist.cfg dnadist.log outfile test.map test.ped test.phy test.vcf
005、生成neighbor程序需要的配置文件
[root@PC1 test]# mv outfile infile.dist [root@PC1 test]# ls dnadist.cfg dnadist.log infile.dist test.map test.ped test.phy test.vcf [root@PC1 test]# echo -e "infile.dist\nY" > neighbor.cfg [root@PC1 test]# ls dnadist.cfg dnadist.log infile.dist neighbor.cfg test.map test.ped test.phy test.vcf
006、构建nj树
[root@PC1 test]# /home/software/phylip/phylip-3.697/exe/neighbor < neighbor.cfg >nj.log [root@PC1 test]# ls dnadist.cfg dnadist.log infile.dist neighbor.cfg nj.log outfile outtree test.map test.ped test.phy test.vcf
007、整理结果格式
[root@PC1 test]# less infile.dist | tr '\n' '|'| sed 's/| / /g' | tr '|' '\n' >infile.dist.table [root@PC1 test]# ls dnadist.cfg dnadist.log infile.dist infile.dist.table neighbor.cfg nj.log outfile outtree test.map test.ped test.phy test.vcf [root@PC1 test]# less outtree | tr '\n' ' '|sed 's/ //g' > outtree.nwk [root@PC1 test]# ls dnadist.cfg dnadist.log infile.dist infile.dist.table neighbor.cfg nj.log outfile outtree outtree.nwk test.map test.ped test.phy test.vcf
008、利用 outtree.nwk 文件在itol网页中构树
01、进入itol官网:
02、点击upload a tree
03、上传文件
04、草图
参考:https://mp.weixin.qq.com/s?__biz=Mzg4NDc4MjkxNA==&mid=2247488928&idx=1&sn=ee10c8b8020b80696c2cc88f3eb1ad2a&chksm=cfb3b78df8c43e9bf2b420ecb654e0306b9da1947c4e390f74ca57ff2985c57c9b396a27b423&scene=178&cur_album_id=2485246989195051008#rd
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2021-12-31 bcdedit无法打开启动配置数据存储拒绝访问
2021-12-31 linux awk命令中如何提取任意列
2021-12-31 R语言中提取两个数据框中完全相同的行及保留唯一行
2020-12-31 python中对列表去重复
2020-12-31 python中安装特东顺序遍历字典中的所有键
2020-12-31 python中判断字典中是否包含特定键
2020-12-31 python中批量访问字典中指定键的值