AptLynx

Command-line tool

bedtools

brew/bedtools

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Tools for genome arithmetic (set theory on the genome)

At a glance

Type
Command-line tool
Install on
macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

macOS

brew install bedtools

Linux

brew install bedtools

Intersect file [a] and file(s) [b] regarding the sequences' [s]trand and save the result to a specific file

bedtools intersect -a path/to/file_A -b path/to/file_B1 path/to/file_B2 ... -s > path/to/output_file

Intersect two files with a [l]eft [o]uter [j]oin, i.e. report each feature from `file1` and NULL if no overlap with `file2`

bedtools intersect -a path/to/file1 -b path/to/file2 -loj > path/to/output_file

Use a more efficient algorithm to intersect two pre-sorted files

bedtools intersect -a path/to/file1 -b path/to/file2 -sorted > path/to/output_file

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents