Linux command
bgzip 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Compress
bgzip [file.vcf]
Decompress
bgzip -d [file.vcf.gz]
Compress
bgzip -@ [4] [file.vcf]
Index
bgzip -r [file.vcf.gz]
说明
bgzip is a block compression tool that creates gzip-compatible files with internal indexing support. Unlike standard gzip, bgzip compresses data in blocks, allowing random access to specific regions when combined with a .gzi index. The tool is part of htslib and commonly used for genomics data files (VCF, SAM, BED) enabling indexed access.
参数
- -d, --decompress
- Decompress file
- -c, --stdout
- Write to standard output
- -@, --threads _n_
- Number of threads
- -r, --reindex
- Rebuild .gzi index
- -b, --offset _n_
- Virtual file offset for random access
- -s, --size _n_
- Size to extract (with -b)
- -l, --compress-level _n_
- Compression level (0-9)
FAQ
What is the bgzip command used for?
bgzip is a block compression tool that creates gzip-compatible files with internal indexing support. Unlike standard gzip, bgzip compresses data in blocks, allowing random access to specific regions when combined with a .gzi index. The tool is part of htslib and commonly used for genomics data files (VCF, SAM, BED) enabling indexed access.
How do I run a basic bgzip example?
Run `bgzip [file.vcf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d, --decompress do in bgzip?
Decompress file