rocky9中boast的安裝。
01、 boost 是一個跨平臺的 c++ 庫集合,它提供了許多功能和工具,用於在 linux 上開發高效能的應用程式。
02、下載最新版的boost
https://www.boost.org/users/download/
03、安裝依賴環境
yum -y install bzip2 bzip2-devel bzip2-libs python-devel
04、解壓、編譯安裝boost
tar -xjvf boost_1_86_0.tar.bz2
cd boost_1_86_0/
./bootstrap.sh --with-libraries=all --with-toolset=gcc
./b2 install --prefix=/usr/local
05、安裝gsl
GSL(GNU Scientific Library)是一個開源的科學計算庫,主要用於C和C++程式。它包含了大量高效的數學函式,適用於各種科學計算任務。
wget -c http://ftp.club.cc.cmu.edu/pub/gnu/gsl/gsl-latest.tar.gz
tar -xzvf gsl-latest.tar.gz
cd gsl-2.8/
./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
05、下載treemix安裝包
wget -c https://bitbucket.org/nygcresearch/treemix/downloads/treemix-1.13.tar.gz
tar -xzvf treemix-1.13.tar.gz
cd treemix-1.13/
./configure
make
make install
06、呼叫測試
(base) [root@PC1 treemix-1.13]# 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