首页 > 其他分享 >使用 phylip构建进化树

使用 phylip构建进化树

时间:2022-12-31 13:22:54浏览次数:58  
标签:dnadist vcf 进化树 cfg phylip PC1 构建 test root

 

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

 

标签:dnadist,vcf,进化树,cfg,phylip,PC1,构建,test,root
From: https://www.cnblogs.com/liujiaxin2018/p/17016487.html

相关文章

  • linux 中 phylip软件的安装
     001、软件下载:     下载地址    [root@PC1phylip]#wgethttps://evolution.gs.washington.edu/phylip/download/phylip-3.697.tar.gz[root@PC1......
  • linux中phylip软件的安装
     001、软件下载,github            [root@PC1phylip]#wgethttps://github.com/edgardomortiz/vcf2phylip/archive/refs/tags/v2.8.tar.......
  • 使用CLIP构建视频搜索引擎
    CLIP(ContrastiveLanguage-ImagePre-training)是一种机器学习技术,它可以准确理解和分类图像和自然语言文本,这对图像和语言处理具有深远的影响,并且已经被用作流行的扩散模......
  • 在windows上构建OpenCascade
    基于作者QuaoarsWorkshop的视频OpenCascadeLessons,讲的非常详细,观看需要魔法什么是OCCT?.首先,OpenCASCADETechnologySDK是一个几何建模库,或者更简单地说,它是一个几......
  • IPSEC VPN网关构建高安全性的数据采集系统
    一、需求背景 在物联网飞速发展的当下,许多项目需求实现上位机软件远程实时监视现场设备运行的各项指标和参数,数据在传输过程中可能遭受篡改、数据泄露等风险,给企业造成一定......
  • 使用CMake构建QCustomPlot
    因为原项目是使用CMake构建的,而且包含其他非标准库,同时并没有系统性学习CMake,还有Qt使用的QMake现在需要在原项目的基础上加上实时绘制曲线图,以方便查看数据和调试那么最......
  • 使用 Spring Boot 和 Kotlin 构建 Web 应用程序
    本教程向您展示如何通过结合弹簧启动和科特林.如果您从Kotlin开始,您可以通过阅读参考文档,跟随在线KotlinKoans教程或只是使用Spring框架参考文档现在在Kotlin中提供......
  • 智能计费、综合管控,爱博精电帮您快速构建水电费预付费管理系统
    近年来,随着企业经营管理意识的加强,商业建筑的物业管理部门对于水电费的收缴越来越重视,在实际运营中,因为服务、管理或其他方面的纠纷,商户拖欠电费的情况时有发生,管理部门为了......
  • 自构建工具TeamCity的安装及使用
    自构建工具TeamCity的安装及使用第2章安装步骤2.2软件安装2.2.1安装包位置\\192.168.0.5\persons\下载软件\TeamCity-8.1.5.exe 附属安装包\\192.168.0.5\person......
  • vue3使用vue-router构建SPA
    使用自动化构建工具vite搭建新项目#某个目录下执行npmcreatevite@latest 按照提示初始化项目,并按照提示:cdvite-projectnpminstallnpmrundev生成目录结构......