先安装pyEigenstrat,注意使用版本2.7的python
wget https://github.com/mathii/pyEigenstrat/archive/refs/heads/master.zip
unzip master.zip
cd pyEigenstrat-master
python setup.py build
python setup.py install
再安装gdc,同样是python 2.7
wget https://github.com/mathii/gdc/archive/refs/heads/master.zip
unzip master.zip
cd gdc-master
运行转换文件命令:
python eigenstrat2vcf.py -r your-eigenstrat-file-prefix |bgzip > out.vcf.gz
PS.
这个网站上总结了 eigenstrat vcf plink 三种文件转换的方法
https://github.com/ACAD-UofA/Guide-to-manipulating-PLINK-EIG-and-VCF-files