macOS
brew install bedtoolslocal Homebrew formula metadata
sudo port install bedtoolsMacPorts ports tree · science/bedtools/Portfile · source: api.github.com
brew
Tools for genome arithmetic (set theory on the genome). Version 2.31.1 via Homebrew; verified from local package data.
install
brew install bedtoolslocal Homebrew formula metadata
sudo port install bedtoolsMacPorts ports tree · science/bedtools/Portfile · source: api.github.com
sudo apt install bedtoolsDebian stable package indexes · bedtools · source: deb.debian.org
nix profile install nixpkgs#bedtoolsnixpkgs package indexes · pkgs/by-name/be/bedtools/package.nix · source: api.github.com
overview
Tools for genome arithmetic (set theory on the genome)
history
bedtools is one of the standard command-line toolkits for genome arithmetic: set-theory style operations over BED, BAM, GFF/GTF, VCF, and related genomic interval data.
Aaron Quinlan first created bedtools in spring 2009 to answer genomics questions that were too slow or awkward with existing web tools and locally installed UCSC/Kent utilities. The official overview says the initial public version appeared in spring 2009 and originally supported only 6-column BED files.
The project was described in the 2010 Bioinformatics paper 'BEDTools: a flexible suite of utilities for comparing genomic features.' The toolkit later expanded beyond BED to support BAM alignments, GFF, blocked BED, and VCF, while keeping the command-line pipeline model.
The modern bedtools2 GitHub repository was created in December 2013. The README describes bedtools as the 'swiss army knife for genome arithmetic' and says it is maintained by the Quinlan Laboratory at the University of Virginia.
The supplied metadata shows bedtools packaged across Homebrew, Debian, Ubuntu, MacPorts, Nix, and other distribution indexes, reflecting broad adoption as a default genomics CLI dependency.
bedtools adoption is also visible in downstream tooling: the README asks users to cite pybedtools separately, and the docs emphasize combining bedtools operations with Unix pipes for more sophisticated analyses.
Common bedtools workflows include intersecting intervals, merging nearby features, computing coverage, extracting FASTA sequence, shuffling or randomizing intervals, generating genome coverage, mapping summaries over overlaps, and converting between BAM, BED, FASTQ, and other formats.
The toolkit is designed for shell composition. The official overview highlights stdin support so users can stream multiple commands together and control exactly how overlap results are reported.
bedtools is package-nerd significant because it is a canonical scientific Unix package: a suite of many small executables, stable command names, text formats, manpage-like docs, and enormous downstream workflow dependence.
It also demonstrates the tension package managers handle for research software: upstream users expect old command aliases such as intersectBed and newer unified bedtools subcommands, while distributions need reproducible builds for C++ genomics tooling that is commonly used in pipelines and papers.
In the bioinformatics package graph, bedtools is not just an application; it is infrastructure. Other tools, workflow examples, papers, and wrappers often assume it exists on PATH.
security posture
infrastructure mutation or orchestration signal.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
annotateBed | cli | global executable | |
bamToBed | cli | global executable | |
bamToFastq | cli | global executable | |
bed12ToBed6 | cli | global executable | |
bedToBam | cli | global executable | |
bedToIgv | cli | global executable | |
bedpeToBam | cli | global executable | |
bedtools | cli | global executable | |
closestBed | cli | global executable | |
clusterBed | cli | global executable | |
complementBed | cli | global executable | |
coverageBed | cli | global executable | |
expandCols | cli | global executable | |
fastaFromBed | cli | global executable | |
flankBed | cli | global executable | |
genomeCoverageBed | cli | global executable | |
getOverlap | cli | global executable | |
groupBy | cli | global executable | |
intersectBed | cli | global executable | |
linksBed | cli | global executable | |
mapBed | cli | global executable | |
maskFastaFromBed | cli | global executable | |
mergeBed | cli | global executable | |
multiBamCov | cli | global executable | |
multiIntersectBed | cli | global executable | |
nucBed | cli | global executable | |
pairToBed | cli | global executable | |
pairToPair | cli | global executable | |
randomBed | cli | global executable | |
shiftBed | cli | global executable | |
shuffleBed | cli | global executable | |
slopBed | cli | global executable | |
sortBed | cli | global executable | |
subtractBed | cli | global executable | |
tagBam | cli | global executable | |
unionBedGraphs | cli | global executable | |
windowBed | cli | global executable | |
windowMaker | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/arq5x/bedtools2
install metadata
| Package key | brew:bedtools |
|---|---|
| Version | 2.31.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/bedtools |
| Homepage | https://github.com/arq5x/bedtools2 |
| Repository | https://github.com/arq5x/bedtools2 |
| Upstream docs | https://bedtools.readthedocs.io/en/latest |
| License | MIT |
| Source archive | https://github.com/arq5x/bedtools2/archive/refs/tags/v2.31.1.tar.gz |
| Dependencies | xz |
| Uses from macOS | bzip2 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bedtools |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
bedtools 2.31.1+dfsg-2
suite of utilities for comparing genomic features
https://github.com/arq5x/bedtools2
sudo apt install bedtoolsbedtools-test 2.31.1+dfsg-2
test data for the bedtools package
https://github.com/arq5x/bedtools2
sudo apt install bedtools-testbedtools
nix profile install nixpkgs#bedtoolsbedtools 2.31.1+dfsg-2
suite of utilities for comparing genomic features
https://github.com/arq5x/bedtools2
sudo apt install bedtoolsbedtools-test 2.31.1+dfsg-2
test data for the bedtools package
https://github.com/arq5x/bedtools2
sudo apt install bedtools-testbedtools
sudo port install bedtoolssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.