码迷,mamicode.com
首页 > 其他好文 > 详细

install tabix/bgzip

时间:2015-06-14 10:58:32      阅读:3676      评论:0      收藏:0      [点我收藏+]

标签:


bgzip – Block compression/decompression utility

tabix – Generic indexer for TAB-delimited genome position files

SAMtools and BCFtools are distributed as individual packages. The code uses HTSlib internally, but these source packages contain their own copies of htslib so they can be built independently.

HTSlib is also distributed as a separate package which can be installed if you are writing your own programs against the HTSlib API. HTSlib also provides the bgzip, htsfile, and tabix utilities, so you may also want to build and install HTSlib to get these utilities, or see the additional instructions in INSTALL to install them from a samtools or bcftools source package.

Download current source releases:    samtools-1.2    bcftools-1.2    htslib-1.2.1

 

安装 bcftools 1.2,    htslib-1.2.1
wget https://github.com/samtools/bcftools/releases/download/1.2/bcftools-1.2.tar.bz2
tar xvf bcftools-1.2.tar.bz2
cd bcftools-1.2
make
make install
cd htslib-1.2.1
make
make install

 

使用bgzip,tabix

bgzip -c file.vcf > file.vcf.gz
tabix -p vcf file.vcf.gz

 

REF:
http://sourceforge.net/projects/samtools/files/tabix/
http://www.htslib.org/doc/tabix.html

https://github.com/samtools/bcftools/releases

http://samtools.github.io/bcftools/bcftools.html

install tabix/bgzip

标签:

原文地址:http://www.cnblogs.com/emanlee/p/4574702.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!