1.首先安装依赖的 JAGS
tar zxvf JAGS-4.3.0.tar.gz
./configure --prefix=/share/work/biosoft/JAGS/JAGS-v4.3.0
2.设置环境变量:
export JAGS_PREFIX=/share/work/biosoft/JAGS/JAGS-v4.3.0
export JAGS_LIBDIR=$JAGS_PREFIX/lib
export JAGS_INCLUDEDIR=$JAGS_PREFIX/include
export LD_LIBRARY_PATH=/share/work/biosoft/JAGS/JAGS-v4.3.0/lib/:$LD_LIBRARY_PATH
3.安装 rjags
install.packages('rjags', configure.args='--with-jags-include=/share/work/biosoft/JAGS/JAGS-v4.3.0/include/JAGS --with-jags-lib=/share/work/biosoft/JAGS/JAGS-v4.3.0/lib/JAGS --with-jags-modules=/share/work/biosoft/JAGS/JAGS-v4.3.0//lib/JAGS/modules-4 --with-jags-bin=/share/work/biosoft/JAGS/JAGS-v4.3.0//bin')
4.安装inferCNV
BiocManager::install("infercnv")