macOS
brew install htsliblocal Homebrew formula metadata
sudo port install htslibMacPorts ports tree · science/htslib/Portfile · source: api.github.com
brew
C library for high-throughput sequencing data formats. Version 1.23.1 via Homebrew; verified from local package data.
install
brew install htsliblocal Homebrew formula metadata
sudo port install htslibMacPorts ports tree · science/htslib/Portfile · source: api.github.com
sudo apt install htslib-testDebian stable package indexes · htslib-test · source: deb.debian.org
sudo dnf install htslibFedora Rawhide package metadata · htslib · source: dl.fedoraproject.org
nix profile install nixpkgs#htslibnixpkgs package indexes · pkgs/by-name/ht/htslib/package.nix · source: api.github.com
sudo zypper install bgzipopenSUSE Tumbleweed package metadata · bgzip · source: download.opensuse.org
overview
C library for high-throughput sequencing data formats
history
HTSlib is the C library layer of the Samtools family, providing shared reading and writing support for high-throughput sequencing formats such as SAM, BAM, CRAM, VCF, and BCF. It matters beyond a single command-line package because many genomics tools build on the same file-format and indexing behavior.
The Samtools site describes the project as three related repositories: Samtools for alignment manipulation, BCFtools for variant data, and HTSlib as the common C library. Its download page preserves the split in historical context, noting that before HTSlib was introduced, Samtools and BCFtools were shipped together in a single samtools-0.1.x source package.
The annotated 1.0 tag in the official GitHub repository, dated 2014-08-15, describes the first HTSlib release as supporting SAM, BAM, CRAM, VCF, and BCF. Later release notes show the library continuing to absorb format, indexing, threading, remote-I/O, and ABI changes that affect downstream tools.
HTSlib's adoption is tightly coupled to the Samtools ecosystem: the Samtools site says Samtools and BCFtools use HTSlib internally, while HTSlib is also distributed separately for developers writing programs against its API. Packaging across Homebrew, Debian-family distributions, Fedora, MacPorts, Nix, and openSUSE reflects its role as a build-time and runtime dependency rather than only an end-user utility.
Package users often encounter HTSlib through utilities installed with the library, especially bgzip, htsfile, tabix, ref-cache, and annot-tsv. Developers use the C API for compressed genomic files, indexes, region queries, remote access, and format detection in sequencing and variant-analysis workflows.
HTSlib is package-nerd significant because it is both a library ABI and a bundle of small Unix-style genomics tools. Changes such as the 2019 1.10 release's SAM header API, multi-threaded SAM I/O, on-the-fly indexing, S3 updates, and 64-bit reference-position support are the sort of low-level package events that can ripple through many bioinformatics builds.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
annot-tsv | cli | global executable | |
bgzip | cli | global executable | |
htsfile | cli | global executable | |
ref-cache | cli | global executable | |
tabix | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/samtools/htslib
install metadata
| Package key | brew:htslib |
|---|---|
| Version | 1.23.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/htslib |
| Homepage | https://www.htslib.org/ |
| Repository | https://github.com/samtools/htslib |
| Upstream docs | https://github.com/samtools/htslib#readme |
| License | MIT AND BSD-3-Clause |
| Source archive | https://github.com/samtools/htslib/releases/download/1.23.1/htslib-1.23.1.tar.bz2 |
| Dependencies | libdeflate, xz |
| Uses from macOS | bzip2, curl |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | htslib |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
htslib-test 1.21+ds-1
Test data for HTSlib
https://github.com/samtools/htslib
sudo apt install htslib-testlibhts-dev 1.21+ds-1
development files for the HTSlib
https://github.com/samtools/htslib
sudo apt install libhts-devlibhts3t64 1.21+ds-1
C library for high-throughput sequencing data formats
https://github.com/samtools/htslib
sudo apt install libhts3t64tabix 1.21+ds-1
generic indexer for TAB-delimited genome position files
https://github.com/samtools/htslib
sudo apt install tabixhtslib
nix profile install nixpkgs#htslibhtslib-test 1.19+ds-1.1build3
Test data for HTSlib
https://github.com/samtools/htslib
sudo apt install htslib-testlibhts-dev 1.19+ds-1.1build3
development files for the HTSlib
https://github.com/samtools/htslib
sudo apt install libhts-devlibhts3t64 1.19+ds-1.1build3
C library for high-throughput sequencing data formats
https://github.com/samtools/htslib
sudo apt install libhts3t64tabix 1.19+ds-1.1build3
generic indexer for TAB-delimited genome position files
https://github.com/samtools/htslib
sudo apt install tabixhtslib 1.23.1-2.fc45
C library for high-throughput sequencing data formats
sudo dnf install htslibhtslib-devel 1.23.1-2.fc45
Development files for htslib
sudo dnf install htslib-develhtslib-tools 1.23.1-2.fc45
Additional htslib-based tools
sudo dnf install htslib-toolshtslib
sudo port install htslibbgzip 1.21-1.3
Block compression/decompression utility from the HTSlib project
https://github.com/samtools/htslib/
sudo zypper install bgziphtsfile 1.21-1.3
Identify high-throughput sequencing data files from the HTSlib project
https://github.com/samtools/htslib/
sudo zypper install htsfiletabix 1.21-1.3
Generic indexer for TAB-delimited genome position files from the HTSlib project
https://github.com/samtools/htslib/
sudo zypper install tabixsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.