Matching genomic regions / Window BED


Examines a "window" around each feature in A and reports all features in B that overlap the window. For each overlap the entire entry in A and B are reported.



Similar to intersectBed, windowBed searches for overlapping features in A and B. However, windowBed adds a specified number (1000, by default) of base pairs upstream and downstream of each feature in A. In effect, this allows features in B that are “near” features in A to be detected.

Selecting "File A is BAM format [yes]" is analogous to using "-abam" option instead of "-a" in the command line version.


Default output is a BED file. If input is a BAM file, output can also be a compressed or uncompressed BAM file depending on the options selected.


This tool uses the BEDTools package. Please cite the article:

Quinlan AR and Hall IM, 2010. BEDTools: a flexible suite of utilities for comparing genomic features. Bioinformatics. 26, 6, pp. 841–842.

Please see the BEDTools homepage for more details.