# bcftools を Homebrew, apt, dnf, MacPorts, Nix, zypper でインストール

bcftools のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install bcftools
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bcftools
```

  証拠: MacPorts ports tree: science/bcftools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install bcftools
```

  証拠: Debian stable package indexes: bcftools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install bcftools
```

  証拠: Fedora Rawhide package metadata: bcftools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#bcftools
```

  証拠: nixpkgs package indexes: pkgs/by-name/bc/bcftools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install bcftools
```

  証拠: openSUSE Tumbleweed package metadata: bcftools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:bcftools
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.24
- **ソース概要:** Tools for BCF/VCF files and variant calling from samtools
- **ホームページ:** <https://www.htslib.org/>
- **リポジトリ:** <https://github.com/samtools/bcftools>
- **最終更新:** 2026-07-09T19:52:13Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- bcftools (エイリアス)
- color-chrs.pl (エイリアス)
- gff2gff (エイリアス)
- gff2gff.py (エイリアス)
- guess-ploidy.py (エイリアス)
- plot-roh.py (エイリアス)
- plot-vcfstats (エイリアス)
- roh-viz (エイリアス)
- run-roh.pl (エイリアス)
- vcfutils.pl (エイリアス)
- vrfs-variances (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.24
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

- 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.

### ソース

- <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


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - bcftools - 1.21-1: normalized package name match | Debian stable package indexes: bcftools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | genomic variant calling and manipulation of VCF/BCF files | https://samtools.github.io/bcftools/
- Nix - bcftools: normalized package name match | nixpkgs package indexes: pkgs/by-name/bc/bcftools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bcftools - 1.19-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: bcftools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | genomic variant calling and manipulation of VCF/BCF files | https://samtools.github.io/bcftools/
- dnf - bcftools - 1.24-2.fc45: normalized package name match | Fedora Rawhide package metadata: bcftools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tools for genomic variant calling and manipulating VCF/BCF files | https://www.htslib.org/
- zypper - bcftools - 1.21-1.5: normalized package name match | openSUSE Tumbleweed package metadata: bcftools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tools for manipulating variant calls in the Variant Call Format (VCF) | http://www.htslib.org/
- MacPorts - bcftools: normalized package name match | MacPorts ports tree: science/bcftools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/bcftools.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bcftools.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
