install tabix/bgzip

本文介绍了如何安装bgzip和tabix,这两个工具分别用于块压缩/解压缩和索引TAB分隔的基因位置文件。主要内容包括下载bcftools和htslib的源代码,然后进行编译和安装。安装完成后,可以使用这些工具处理生物信息学数据。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


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

转载于:https://www.cnblogs.com/emanlee/p/4574702.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值