Samtools版本更新

卸载旧版本samtools

1.  查看samtools版本
$ samtools
Program: samtools (Tools for alignments in the SAM format)
Version: 0.1.19-96b5f2294a
2. 浏览已安装的程序
$ dpkg --list 
3. 卸载程序和所有配置文件
$ sudo apt-get --purge remove samtools
4. 检查samtools是否卸载
$ dpkg --list 

安装版本samtools

# 获取新版本samtools
$ git clone git://github.com/samtools/samtools.git
$ make
config.mk:33: ../htslib/htslib.mk: No such file or directory
config.mk:34: ../htslib/htslib_static.mk: No such file or directory
make: *** No rule to make target `../htslib/htslib_static.mk'.  Stop.

#  安装htslib
$ git clone https://github.com/samtools/htslib.git  
$ autoconf       # Generate the configure script, if needed  
$ ./configure    # Optional, needed for choosing optional functionality  
$ make  
#  报错,需要安装zlib.h和lzma.h
# 安装zlib.h
# $ sudo apt-get install zlib1g-dev
# 安装lzma.h
$ sudo apt-cache search "liblzma"
$ sudo apt-get install liblzma-dev

# 继续安装htslib
$ sudo make install  

# 继续安装samtools
$ ./configure
$ make
$ sudo make install
# 查看samtools版本
$  ./samtools
Program: samtools (Tools for alignments in the SAM format)
Version: 1.8-20-g4ff8062 (using htslib 1.8-13-g19a66ce)

参考:
如何卸载Ubuntu软件
fatal error: zlib.h & lzma.h : No such file or directory
htslib和Samtool安装步骤

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

友情链接更多精彩内容