笔记:linux/centos/ubuntu系统samtools软件安装
1、数据库准备
centos系统
sudo yum install bzip2-devel
sudo yum install ncurses-libs
sudo yum install ncurses-devel
ubuntu18.0系统
apt-get install bzip2 -y
apt-get install libncurses5-dev -y
apt-get install liblzma-dev
apt-get install libghc-bzlib-prof
apt-get install libghc-ncurses-prof
apt-get install libghc-ncurses-dev
2、下载
然后在samtool同级目录下安装tslib http://www.htslib.org/download/
下载samtool(v1.9)
wget https://sourceforge.net/projects/samtools/files/latest/download?source=files
3、解压
tar -jxf samtools-1.9.tar.bz2
cd samtools-1.9
4、安装
make
make install
5、添加环境变量
echo 'export PATH=$PATH:/opt/biosoft/samtools-1.9/bin' >> /etc/profile
6、使用
1)创建fasta的索引
samtools faidx input.fa