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.
New releases are announced on the samtools mailing lists and by @htslib on Twitter. Previous releases are available from the samtools GitHub organisation (see samtools, bcftools, or htslib releases) or from the samtools Sourceforge project.
Building each desired package from source is very simple:
INSTALL in each of the source directories for further details.
The executable programs will be installed to a
bin subdirectory under
your specified prefix, so you may wish to add this directory to your $PATH:
Prior to the introduction of HTSlib, SAMtools and BCFtools were distributed in a single samtools-0.1.x package. These old versions remain available from the Sourceforge samtools project.
Copyright © 2022 Genome Research Limited (reg no. 2742969) is a charity registered in England with number 1021457. Terms and conditions.