Automic VaultAutomic Vault

brew

Install bedtools with Homebrew, apt, MacPorts, Nix

Tools for genome arithmetic (set theory on the genome). Version 2.31.1 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install bedtools

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install bedtools

MacPorts ports tree · science/bedtools/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install bedtools

Debian stable package indexes · bedtools · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#bedtools

nixpkgs package indexes · pkgs/by-name/be/bedtools/package.nix · source: api.github.com

overview

Package summary

Tools for genome arithmetic (set theory on the genome)

Commands and aliases

  • annotateBed
  • bamToBed
  • bamToFastq
  • bed12ToBed6
  • bedToBam
  • bedToIgv
  • bedpeToBam
  • bedtools
  • closestBed
  • clusterBed
  • complementBed
  • coverageBed
  • expandCols
  • fastaFromBed
  • flankBed
  • genomeCoverageBed
  • getOverlap
  • groupBy
  • intersectBed
  • linksBed
  • mapBed
  • maskFastaFromBed
  • mergeBed
  • multiBamCov
  • multiIntersectBed
  • nucBed
  • pairToBed
  • pairToPair
  • randomBed
  • shiftBed
  • shuffleBed
  • slopBed

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2009: Initial public version released in spring 2009.
  • 2010: BEDTools paper published in Bioinformatics.
  • 2013: bedtools2 GitHub repository created.
  • 2021: v2.30.0 release published.
  • 2023: v2.31.1 release published.

Related projects

  • BEDOPS is a close peer focused on sorted-data performance, Starch compression, and scalable interval operations.
  • pybedtools wraps bedtools functionality for Python users and has its own Bioinformatics citation.
  • UCSC Genome Browser, Galaxy, and Kent source utilities are named in the official overview as predecessor tools that shaped bedtools' motivation.

security posture

Risk level: orange

infrastructure mutation or orchestration signal.

Risk classifier

orange risk · medium confidence · infrastructure

Why

  • infrastructure mutation or orchestration signal

Signals

  • text:cluster

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
annotateBedcliglobal executable
bamToBedcliglobal executable
bamToFastqcliglobal executable
bed12ToBed6cliglobal executable
bedToBamcliglobal executable
bedToIgvcliglobal executable
bedpeToBamcliglobal executable
bedtoolscliglobal executable
closestBedcliglobal executable
clusterBedcliglobal executable
complementBedcliglobal executable
coverageBedcliglobal executable
expandColscliglobal executable
fastaFromBedcliglobal executable
flankBedcliglobal executable
genomeCoverageBedcliglobal executable
getOverlapcliglobal executable
groupBycliglobal executable
intersectBedcliglobal executable
linksBedcliglobal executable
mapBedcliglobal executable
maskFastaFromBedcliglobal executable
mergeBedcliglobal executable
multiBamCovcliglobal executable
multiIntersectBedcliglobal executable
nucBedcliglobal executable
pairToBedcliglobal executable
pairToPaircliglobal executable
randomBedcliglobal executable
shiftBedcliglobal executable
shuffleBedcliglobal executable
slopBedcliglobal executable
sortBedcliglobal executable
subtractBedcliglobal executable
tagBamcliglobal executable
unionBedGraphscliglobal executable
windowBedcliglobal executable
windowMakercliglobal executable

freshness

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

page generated2026-07-08
manager version2.31.1
manager updated
local dataok
upstreamcurrent
latest detectedv2.31.1

https://github.com/arq5x/bedtools2

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:bedtools
Version2.31.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/bedtools
Homepagehttps://github.com/arq5x/bedtools2
Repositoryhttps://github.com/arq5x/bedtools2
Upstream docshttps://bedtools.readthedocs.io/en/latest
LicenseMIT
Source archivehttps://github.com/arq5x/bedtools2/archive/refs/tags/v2.31.1.tar.gz
Dependenciesxz
Uses from macOSbzip2
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebedtools
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

bedtools 2.31.1+dfsg-2

suite of utilities for comparing genomic features

https://github.com/arq5x/bedtools2

sudo apt install bedtools
  • Section: science
  • Architecture: amd64
  • 6 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Bedtools
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bedtools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

bedtools-test 2.31.1+dfsg-2

test data for the bedtools package

https://github.com/arq5x/bedtools2

sudo apt install bedtools-test
  • Section: science
  • Architecture: all
  • Source Package: bedtools
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Bedtools
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bedtools-test from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

bedtools

nix profile install nixpkgs#bedtools
  • normalized package name match
  • Matched by: Bedtools
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/be/bedtools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

bedtools 2.31.1+dfsg-2

suite of utilities for comparing genomic features

https://github.com/arq5x/bedtools2

sudo apt install bedtools
  • Section: universe/science
  • Architecture: amd64
  • 6 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Bedtools
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bedtools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

bedtools-test 2.31.1+dfsg-2

test data for the bedtools package

https://github.com/arq5x/bedtools2

sudo apt install bedtools-test
  • Section: universe/science
  • Architecture: all
  • Source Package: bedtools
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Bedtools
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bedtools-test from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
MacPorts95%

bedtools

sudo port install bedtools
  • normalized package name match
  • Matched by: Bedtools
MacPorts ports tree · api.github.com · MacPorts ports tree: science/bedtools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment