# Install bedtk with Homebrew

Simple toolset for BED files. Version 1.2 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:bedtk
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bedtk
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:bedtk
- **Package manager:** Homebrew
- **Version:** 1.2
- **Source summary:** Simple toolset for BED files
- **Homepage:** <https://github.com/lh3/bedtk>
- **Repository:** <https://github.com/lh3/bedtk>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- bedtk (alias)

## Install behavior

- Bottle: not available

## Freshness

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

bedtk is Heng Li's compact command-line toolkit for BED files, focused on fast interval overlap operations with a smaller scope than bedtools.

### Project history

The bedtk repository was created in October 2019, with the first visible commit adding interval intersection. Its README describes a simple BED toolset implementing intersection, subtraction, sorting, merging, and breadth-of-coverage calculations.

The project is tied to the 2021 Bioinformatics article 'Bedtk: finding interval overlap with implicit interval tree,' which explains its algorithmic focus. Upstream releases reached v1.0 in April 2025 and v1.2 in August 2025.

### Adoption history

The supplied package metadata lists Homebrew packaging. Upstream positions bedtk as a narrow, performance-oriented companion rather than a complete bedtools replacement.

### How it is used

bedtk is used for operations such as filtering overlapping or non-overlapping BED/VCF records, intersection without pre-sorting, coverage breadth, sorting, and merging.

### Why package nerds care

bedtk is notable because it comes from the lh3 bioinformatics tool lineage and deliberately keeps the surface area small. It is the kind of package a genomics CLI user installs when they care about speed and memory more than a broad command catalog.

### Timeline

- 2019: Repository created and initial intersection work committed.
- 2021: bedtk paper published in Bioinformatics.
- 2025: v1.0, v1.1, and v1.2 releases published.

### Related projects

- bedtools is explicitly named by upstream as broader and more versatile.
- cgranges is linked from the README and is related to the interval-overlap implementation family.

### Sources

- <https://api.github.com/repos/lh3/bedtk>
- <https://github.com/lh3/bedtk#readme>
- <https://github.com/lh3/bedtk/releases>
- 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/bedtk.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bedtk.yml)


## Sources

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