C library for high-throughput sequencing data formats
HTSlib is an implementation of a unified C library for accessing common file formats, such as SAM, CRAM and VCF, used for high-throughput sequencing data, and is the core library used by samtools and bcftools. HTSlib only depends on zlib. It is known to be compatible with gcc, g++ and clang.
HTSlib implements a generalized BAM index, with file extension .csi
(coordinate-sorted index). The HTSlib file reader first looks for the new index
and then for the old if the new index is absent.
This project also includes the popular tabix indexer, which creates both .tbi
and .csi formats, and the bgzip compression utility.
See INSTALL for complete details. Release tarballs contain generated files that have not been committed to this repository, so building the code from a Git repository requires extra steps:
autoreconf -i # Build the configure script and install files it uses
./configure # Optional but recommended, for choosing extra functionality
make
make installPlease cite this paper when using HTSlib for your publications.
HTSlib: C library for reading/writing high-throughput sequencing data James K Bonfield, John Marshall, Petr Danecek, Heng Li, Valeriu Ohan, Andrew Whitwham, Thomas Keane, Robert M Davies GigaScience, Volume 10, Issue 2, February 2021, giab007, https://doi.org/10.1093/gigascience/giab007
…If you have found a bug or would like a new feature, please report the same in the GitHub HTSlib issue tracker.
For any security related issue, please send a mail to [email protected] instead of reporting in the GitHub issue tracker.
No open issues yet, or sync has not completed.