# Install bcftools with Homebrew

Tools for BCF/VCF files and variant calling from samtools. Version 1.24 via Homebrew; verified 2026-07-09.

## Install

```sh
sudo av install brew:bcftools
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bcftools
```

  Evidence: provider-native install command

## Package facts

- **Package key:** brew:bcftools
- **Package manager:** Homebrew
- **Version:** 1.24
- **Source summary:** Tools for BCF/VCF files and variant calling from samtools
- **Homepage:** <https://www.htslib.org/>
- **Repository:** <https://github.com/samtools/bcftools>
- **Last updated:** 2026-07-09T19:52:13Z
- **Generated:** 2026-08-03T00:40:33+00:00

## Executables

- bcftools (alias)
- color-chrs.pl (alias)
- gff2gff (alias)
- gff2gff.py (alias)
- guess-ploidy.py (alias)
- plot-roh.py (alias)
- plot-vcfstats (alias)
- roh-viz (alias)
- run-roh.pl (alias)
- vcfutils.pl (alias)
- vrfs-variances (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.24
## Project history and usage

bcftools is one of the core command-line toolkits of modern genomics: it reads, writes, filters, queries, summarizes, and calls variants in VCF, BCF, and gVCF formats.

### Project history

BCFtools grew out of the SAMtools ecosystem for high-throughput sequencing data. The upstream README says it implements utilities for variant calling, in conjunction with SAMtools, and for manipulating VCF and BCF files, with the intention of replacing Perl-based tools from vcftools.

The Samtools project now presents three related repositories: Samtools for SAM/BAM/CRAM, BCFtools for BCF2/VCF/gVCF and variant calling/filtering/summarising SNPs and short indels, and HTSlib as the underlying C library.

### Adoption history

The 2021 GigaScience paper by the SAMtools/BCFtools authors describes SAMtools and BCFtools as widely used programs for processing and analysing high-throughput sequencing data, first appearing online 12 years earlier and used in many other projects and genomic pipelines.

The same paper reports that both SAMtools and BCFtools had been installed more than one million times via Bioconda, making bcftools a rare CLI package whose package-manager footprint maps directly to scientific infrastructure.

### How it is used

bcftools is used for file-format conversion and manipulation, sorting, querying, statistics, variant calling, filtering, and effect analysis. In pipelines it commonly appears after alignment and BAM/CRAM processing, where it calls or filters variants into VCF/BCF outputs.

The executable is usually scripted rather than used as a single monolithic command: subcommands such as view, query, filter, stats, mpileup, call, norm, annotate, merge, and concat make it a toolkit for repeatable genomics workflows.

### Why package nerds care

bcftools is package-nerd significant because it is a dependency-shaped scientific standard: small enough to install as a CLI, but central enough that entire variant-calling workflows assume it is available and versioned consistently.

It is also a good example of package-manager science: Homebrew, Debian, Fedora, MacPorts, Nix, Ubuntu, and Bioconda-style environments turn a research-code lineage into a reproducible command people can pin in workflows, containers, and clusters.

The BCF/VCF domain makes versioning matter. File formats, reference assumptions, compression/indexing via HTSlib, and pipeline reproducibility all mean bcftools is not just a convenience binary; it is part of the scientific record for many analyses.

### Timeline

- 2009: SAMtools/BCFtools lineage begins, per the 2021 'Twelve years' project history.
- 2013: Official GitHub bcftools repository created.
- 2021: GigaScience publishes 'Twelve years of SAMtools and BCFtools'.
- 2020s: bcftools continues as part of the Samtools/HTSlib ecosystem and remains broadly packaged.

### Related projects

- SAMtools handles SAM/BAM/CRAM operations in the same project family.
- HTSlib is the C library used internally for high-throughput sequencing formats.
- vcftools is the older Perl-based toolkit that bcftools was intended to replace for many VCF/BCF operations.
- Bioconda, workflow engines, and containerized genomics environments are major adoption channels.

### Sources

- <https://doi.org/10.1093/gigascience/giab008>
- <https://github.com/samtools/bcftools>
- <https://samtools.github.io/bcftools/bcftools.html>
- <https://www.htslib.org/>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/bcftools.yml](https://github.com/automic-vault/db/blob/main/combined/bcftools.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
