Utilities
Intersect, subtract or merge genomic intervals
bedtools-intervals is a genomic interval node exposing five bedtools operations.
overview
What bedtools-intervals does
Supply local interval files and choose intersect, intersect-unique, subtract, merge or sort. Receive the native text for that operation.
intersect returns overlapping portions of A for each B overlap. intersect-unique returns each A feature with any overlap once. subtract removes B coverage; merge sorts A before collapsing overlapping or touching features.
BED, GFF/GFF3, GTF and VCF are accepted, with gzip for BED and VCF, at most 2 GiB per file. B is required for intersection and subtraction and refused for merge/sort. Malformed input fails with native diagnostics. No network calls are made.
This packaged operation uses 2.30.0. Upstream license: MIT. The linked source identifies the actual program; this page documents the adapter's exposed contract.
use cases
Where bedtools-intervals fits
Find feature overlaps
Return the overlapping portions of A features for each B overlap.
Subtract covered regions
Remove B coverage from the supplied A features.
Sort and merge intervals
Sort features before merging overlaps and touching intervals.
reference
bedtools-intervals inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| source | FOLDER | --source | Folder holding the interval files (.bed, .bed.gz, .gff, .gff3, .gtf, .vcf, .vcf.gz; each at most 2 GiB). |
| operation | STRING | --operation | intersect (overlapping parts), intersect-unique (A features with any overlap), subtract, merge or sort. |
| a | STRING | --a | Path of the A file inside the folder. |
Showing key inputs. bedtools-intervals exposes 4 inputs in total.
Full flag reference (4 inputs)
| Name | Type | Flag | Description |
|---|---|---|---|
| source | FOLDER | --source | Folder holding the interval files (.bed, .bed.gz, .gff, .gff3, .gtf, .vcf, .vcf.gz; each at most 2 GiB). |
| operation | STRING | --operation | intersect (overlapping parts), intersect-unique (A features with any overlap), subtract, merge or sort. |
| a | STRING | --a | Path of the A file inside the folder. |
| b | STRING | --b | Path of the B file inside the folder; required for intersect, intersect-unique and subtract, refused for merge and sort. |
example
Run bedtools-intervals
python3 /app/run.py --source ./source --operation intersect --a peaks.bed --b genes.bed ./outputchr1 180 200 p1
chr1 180 250 p2
chr1 500 520 p3
chr2 10 20 p4guidance
Choosing bedtools-intervals
Use these coordinate operations for local genomic features. Genome-file operations such as complement or slop are outside the exposed contract; output does not establish biological significance.
faq
bedtools-intervals questions
related
More Utilities tools
browser-fetch
Headless Chromium render: requested URL, final URL, status, and title next to the page.
cewl
Spider a URL and return a wordlist for password crackers.
csvkit
SQL on one CSV. The table name is the file stem.
dnsgen
Wordlist and mined-word subdomain permutation.
duckdb
In-process SQL on CSV, JSON, and Parquet. No server.
edge-tts
Microsoft Edge neural speech from text or a script file. No API key.
Run bedtools-intervals yourself
The excerpt reconstructs the four exact BED rows asserted in a saved passing synthetic intersection check. The command shows the container entrypoint with example paths.
Facts on this page come from the live Trickest tool library.