centos7中安装boost,gsl 和 treemix
001、安装boost依赖环境
boost 是一个跨平台的 c++ 库集合,它提供了许多功能和工具,用于在 linux 上开发高性能的应用程序。
yum -y install bzip2 bzip2-devel bzip2-libs python-devel
002、下载最新安装包
https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.bz2
wget -c https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.bz2 tar -xjvf boost_1_86_0.tar.bz2
./bootstrap.sh --with-libraries=all --with-toolset=gcc
./b2 install --prefix=/usr/local
1 |
003、安装gls
GSL(GNU Scientific Library)是一个开源的科学计算库,主要用于C和C++程序。它包含了大量高效的数学函数,适用于各种科学计算任务。
wget -c http://ftp.club.cc.cmu.edu/pub/gn
tar -xzvf gsl-latest.tar.gz
./configure
make
make install
export PATH=$PATH:/usr/local/bin
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export GSL_LD=/usr/local/lib
004、下载及安装treemix
wget -c https://bitbucket.org/nygcresearch/treemix/downloads/treemix-1.13.tar.gz
cd treemix-1.13/
./configure
make
make install
005、调用测试
(base) [root@PC1 home]# treemix TreeMix v. 1.13 $Revision: 231 $ Options: -h display this help -i [file name] input file -o [stem] output stem (will be [stem].treeout.gz, [stem].cov.gz, [stem].modelcov.gz) -k [int] number of SNPs per block for estimation of covariance matrix (1) -global Do a round of global rearrangements after adding all populations -tf [file name] Read the tree topology from a file, rather than estimating it -m [int] number of migration edges to add (0) -root [string] comma-delimited list of populations to set on one side of the root (for migration) -g [vertices file name] [edges file name] read the graph from a previous TreeMix run -se Calculate standard errors of migration weights (computationally expensive) -micro microsatellite data -bootstrap Perform a single bootstrap replicate -cor_mig [file] list of known migration events to include (also use -climb) -noss Turn off sample size correction -seed [int] Set the seed for random number generation -n_warn [int] Display first N warnings
。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律