[Paper Review] Twelve years of SAMtools and BCFtools
This paper reviews twelve years of development in SAMtools and BCFtools, two foundational bioinformatics tools for processing high-throughput sequencing data. The tools support efficient manipulation of SAM/BAM/CRAM alignment files and VCF/BCF variant files, with key advances including native multi-threading, CRAM format support, and integration with HTSlib. The core contribution is a mature, high-performance, and widely adopted ecosystem used in millions of analyses.
BACKGROUND: SAMtools and BCFtools are widely used programs for processing and analysing high-throughput sequencing data. They include tools for file format conversion and manipulation, sorting, querying, statistics, variant calling, and effect analysis amongst other methods. FINDINGS: The first version appeared online 12 years ago and has been maintained and further developed ever since, with many new features and improvements added over the years. The SAMtools and BCFtools packages represent a unique collection of tools that have been used in numerous other software projects and countless genomic pipelines. CONCLUSION: Both SAMtools and BCFtools are freely available on GitHub under the permissive MIT licence, free for both non-commercial and commercial use. Both packages have been installed >1 million times via Bioconda. The source code and documentation are available from https://www.htslib.org.
Motivation & Objective
- To document the evolution and sustained development of SAMtools and BCFtools over 12 years of active maintenance.
- To highlight the technical advancements enabling efficient processing of increasingly large-scale sequencing datasets.
- To demonstrate the tools' adoption and integration across diverse genomics projects and software ecosystems.
- To outline future challenges and planned extensions, including support for large genomes and complex variant representations.
Proposed method
- The authors conducted a retrospective analysis of version control commits, feature releases, and user feedback from GitHub to trace the evolution of SAMtools and BCFtools.
- They evaluated performance improvements through benchmarking of core operations such as sorting, indexing, and variant calling across multiple releases.
- The tools were built using the C programming language and rely on HTSlib for low-level I/O and data format handling, enabling high speed and low memory usage.
- Continuous integration and automated testing (including Valgrind, AddressSanitizer, and UndefinedBehaviorSanitizer) ensured code reliability and portability.
- The integration of plugins and extensibility features in BCFtools enabled dynamic extension of functionality, such as functional consequence prediction and trio-based variant analysis.
- The tools were deployed and evaluated across diverse biological data types, including vertebrate, plant, viral, and pathogen genomes, to assess robustness and scalability.
Experimental results
Research questions
- RQ1How have SAMtools and BCFtools evolved in functionality and performance over 12 years of development?
- RQ2What architectural decisions enabled the tools to scale with increasing data sizes and complexity in sequencing projects?
- RQ3How do SAMtools and BCFtools compare in performance and memory efficiency to other widely used tools like VEP and GATK?
- RQ4What role has community-driven development and open-source contribution played in shaping the tools’ feature set and reliability?
- RQ5What future challenges remain in supporting large genomes, complex variants, and new sequencing technologies?
Key findings
- SAMtools and BCFtools have undergone 52 and 49 releases respectively, with over 2,200 commits to the SAMtools repository and more than 1,400 tests in BCFtools.
- The tools now natively support multi-threading for reading, writing, and processing SAM, BAM, and CRAM files, significantly improving performance on modern hardware.
- BCFtools' 'csq' command for variant effect prediction is two orders of magnitude faster and uses far less memory than VEP, demonstrating high efficiency.
- The tools are used in over a million installations via Bioconda and have resolved more than 900 GitHub support and feature requests.
- The tools have been successfully applied to diverse species, including those with large genomes (>2 Gbases) and complex ploidy, though full 64-bit genome support remains partial.
- An extension to the VCF format with linearly scaled annotations has been implemented in BCFtools to address the 4GB site limit in highly polymorphic regions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.