# 使用 Homebrew, apt, Nix 安装 freebayes

查看 freebayes 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:freebayes
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install freebayes
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install freebayes
```

  证据: Debian stable package indexes: freebayes from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#freebayes
```

  证据: nixpkgs package indexes: pkgs/by-name/fr/freebayes/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:freebayes
- **软件包管理器:** Homebrew
- **版本:** 1.3.10
- **来源摘要:** Bayesian haplotype-based genetic polymorphism discovery and genotyping
- **主页:** <https://github.com/freebayes/freebayes>
- **仓库:** <https://github.com/freebayes/freebayes>
- **最后更新:** 2026-08-02T16:35:33+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bamleftalign (别名)
- freebayes (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.10
## 项目历史与用法

freebayes is a Bayesian, haplotype-based genetic variant detector for short-read sequencing data. It calls SNPs, indels, MNPs, and complex events from BAM or CRAM alignments against a reference genome and writes VCF output.

### 项目历史

The GitHub repository was created in October 2010 and the license identifies Erik Garrison and Gabor Marth as 2010 copyright holders. The README cites the 2012 arXiv preprint 'Haplotype-based variant detection from short-read sequencing' and asks users to cite it when freebayes contributes to a publication.

freebayes was designed around literal read haplotypes rather than only precise alignment columns, generalizing earlier alignment-based variant detectors such as PolyBayes, samtools, and GATK. The README says the preprint was never submitted for review but has been used in over 1000 publications.

Release history shows a long-lived scientific command-line tool: v1.0.1 in 2015 helped downstream package management, v1.1.0 in 2016 integrated SeqLib for speed and memory improvements, v1.2.0 in 2018 changed default filters for sensitivity, v1.3.0 in 2019 added high-coverage skipping, and later 1.3.x releases focused on CRAM, Meson/Ninja, ARM64, Python 3, static builds, Debian/Ubuntu packaging, and dependency cleanup.

### 采用历史

The README links badges or documentation for Bioconda, Homebrew, Guix, Debian, and other packaging contexts, and notes that GitHub release tarballs are used by Linux distributions to build and release freebayes binaries. The input package metadata also shows Homebrew, Debian, and Nix package coverage.

Adoption is also scientific rather than only packaging-based: the README's citation note says freebayes has been used in over 1000 publications, and its workflow examples place it among common genomics command-line tools such as bwa, sambamba, vcflib, bcftools, GATK, Picard, and workflow managers such as Snakemake.

### 使用方式

In simplest use, freebayes takes a FASTA reference and a sorted BAM or CRAM alignment file and emits VCF: freebayes -f ref.fa aln.bam > var.vcf. It also supports joint calling across multiple BAMs, GVCF output, high-coverage skipping, ploidy settings, pooled samples, forced calls from VCF alleles, and long-haplotype calling.

The README describes Unix-style pipeline use, including streaming BAM input from standard input, post-call filtering through vcflib's vcffilter, parallel execution by splitting the genome into regions, and Snakemake examples for cluster-friendly parallelism.

### 为什么软件包爱好者会关心

freebayes is package-nerd significant because it is a research-grade bioinformatics tool that distributions have had to keep buildable across changing C++ dependencies, Python versions, CRAM libraries, vcflib headers, and architecture targets. Its release notes read like a history of genomics packaging pain: vendored libraries, Meson migration, Debian build constraints, static binaries, Guix shells, and Bioconda-style tarballs.

It also embodies the classic Unix bioinformatics package model: a single-purpose CLI that reads standard genomics formats, writes VCF, composes with other tools, and can be sharded by genomic region for parallel execution.

### 时间线

- 2010: GitHub repository created and MIT license copyright year recorded.
- 2012: Haplotype-based variant detection preprint published on arXiv.
- 2015: v1.0.1 released as a downstream-package-management-friendly bugfix release.
- 2016: v1.1.0 integrated SeqLib for speed and memory efficiency.
- 2018: v1.2.0 changed default filters for sensitivity.
- 2019: v1.3.0 added --skip-coverage for high-depth regions.
- 2020: v1.3.3 added CRAM support notes, Meson/Ninja builds, ARM64 compilation, Python 3 script updates, and GitHub CI.
- 2022: v1.3.6 added Snakemake parallel examples, Guix shell support, static builds, and performance tracking.
- 2024: v1.3.8 focused on Debian fixes and unbundling vcflib.
- 2025: v1.3.10 released with vcflib-path and build maintenance.

### Related projects

- Related projects named in the official documentation include PolyBayes, samtools, GATK, vcflib, GNU parallel, Snakemake, bwa, sambamba, bcftools, Picard, htslib, SeqLib, Guix, Bioconda, Debian packaging, and CRAM/VCF/BAM ecosystem tools.

### 来源

- <https://api.github.com/repos/freebayes/freebayes>
- <https://arxiv.org/abs/1207.3907>
- <https://github.com/freebayes/freebayes>
- <https://github.com/freebayes/freebayes/blob/master/RELEASE-NOTES.md>
- <https://github.com/freebayes/freebayes/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - freebayes - 1.3.9-1: normalized package name match | Debian stable package indexes: freebayes from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Bayesian haplotype-based polymorphism discovery and genotyping | https://github.com/ekg/freebayes
- Nix - freebayes: normalized package name match | nixpkgs package indexes: pkgs/by-name/fr/freebayes/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/freebayes.yml](https://github.com/mxcl/pkgdb/blob/main/combined/freebayes.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
