Admixtools软件学习使用(一)

一、软件介绍

Admixtools相信做群体遗传交流的学者们都不陌生,最常用到的是3个群体的f3统计和4个群体的f4统计,此外qpGraph也在许多文章中使用。

该软件是由David Reich组的Nick Patterson开发,是为了研究古人类和现代人类群体之间的基因交流历史事件,方法原理详见文章

Patterson et al. (2012) Ancient Admixture in Human History. Genetics

软件网页:GitHub - DReichLab/AdmixTools: Tools test whether admixture occurred and more

此外,如果对David Reich组感兴趣的话,可以去lab网站了解:Home | David Reich Lab (harvard.edu)

二、软件安装

1. 下载安装

git clone https://github.com/DReichLab/AdmixTools.git
cd Admixtools/src
make clobber
make install

2. 报错解决

在最后一步的时候有报错;

/usr/bin/ld: cannot find -lopenblas
collect2: ld returned 1 exit status
make: *** [qpAdm] Error 1

解决方案:安装openBlas

(1)检查系统有没有安装

ldconfig -p | grep openblas

(2)非root用户安装

git clone https://github.com/OpenMathLib/OpenBLAS.git
mkdir /path/openblas #create a folder
cd OpenBLAS
make
make PREFIX=/path/openblas instll

(3)添加环境变量

echo 'export LD_LIBRARY_PATH=/path/openblas/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
echo 'export CFLAGS="-I/path/openblas/include"' >> ~/.bashrc
echo 'export LDFLAGS="-L/path/openblas/lib -lopenblas"' >> ~/.bashrc
source ~/.bashrc

重新进入Admixtools/src运行make install,安装成功后所有可执行软件在../bin文件夹里。

今天暂且分享到这~

  • 4
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值