生信mtDNA数据处理

根据VCF构建进化树

2021-01-10  本文已影响0人  斩毛毛

VCF2Dis,是一款计算根据vcf文件计算距离矩阵的小工具

1 安装

下载后

tar -zxvf  VCF2DisXXX.tar.gz
cd VCF2DisXXX
make
# 添加环境变量即可

2 示例文件进行简单使用

Usage: VCF2Dis -i <in.vcf>  -o  <p_dis.mat>

          #1.0) Parameters can used as short letter
                  Such as : [-i] short for [-InPut], [-o] for [-OutPut],[-s] for [-SubPop], [-k] for [-KeepMF]

          #2.1) To new all the sample p_distance matrix based VCF, run VCF2Dis directly
                   ./bin/VCF2Dis    -i  in.vcf.gz  -o p_dis.mat

          #2.2) To new sub group sample p_distance matrix ; Put their sample name into File sample.list
                 ./bin/VCF2Dis  -InPut  chr1.vcf.gz chr2.vcf.gz  -OutPut p_dis.mat  -SubPop  sample.list

          #3.0) Default use all site to join the Calculation. To run the bootstrap tree , can run muti-time with using part of site, Para [-Rand]
                 ./bin/VCF2Dis  -InPut  in.vcf.gz  -OutPut p_dis.mat   -Rand  0.25

操作

# 对所有样本进行计算距离矩阵
../bin/VCF2Dis  -InPut  in.vcf.gz       -OutPut p_dis.mat

# 对部分样本计算
../bin/VCF2Dis  -InPut  in.vcf.gz       -OutPut p_dissub.mat  -SubPop  sample.list
# 其中
head sample.list
S010
S033
S186
S123
S124
S011

得到的结果如下所示


3 构建树

参考

上一篇下一篇

猜你喜欢

热点阅读