安装smcpp软件

使用Conda安装smcpp软件:

# 下载最新版本的miniconda并安装
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
# 将软件安装到指定目录/opt/biosoft/miniconda3_for_smcpp,并设置不要修改~/.bashrc

# 载入conda环境,更新conda,安装smcpp软件
export PATH=/opt/biosoft/miniconda3_for_smcpp/bin/:$PATH
conda update conda
conda create -n smcpp -c conda-forge -c terhorst smcpp

# 使用smcpp软件方法,需要先载入conda环境,再激活smcpp软件环境
export PATH=/opt/biosoft/miniconda3_for_smcpp/bin/:$PATH
source activate /opt/biosoft/miniconda3_for_smcpp
conda activate smcpp

# 使用smcpp软件命令
smc++

# 报错缺少libbz2库文件,安装bzip2软件
conda install -c conda-forge bzip2

# 报错
from pysam.libchtslib import * ImportError: /lib64/libm.so.6: version `GLIBC_2.29' not found,与当前gcc不兼容。使用当前版本gcc重新编译python的pysam模块。
rm -rf /opt/biosoft/miniconda3_for_smcpp/envs/smcpp/lib/python3.7/site-packages/pysam* 
cd /opt/biosoft/miniconda3_for_smcpp/
wget https://files.pythonhosted.org/packages/18/74/69018650a6ec9dae2eb2f710e158fa395134ce579c605f152e41890e7f3c/pysam-0.16.0.tar.gz
tar zxf pysam-0.16.0.tar.gz 
cd pysam-0.16.0/
python setup.py install