Galaxy | Tool Preview

bedtools ClosestBed (version 2.30.0)
Built-in GFF files contain full annotation of a reference genome
This occurs when two features in B have exactly the same overlap with a feature in A.
The reported distance for overlapping features will be 0
Like -d, report the closest feature in B, and its distance to A as an extra column. However unlike -d, use negative distances to report upstream features
That is, we want close, yet not touching features only

What it does

Similar to intersectBed, closestBed searches for overlapping features in A and B. In the event that no feature in B overlaps the current feature in A, closestBed will report the closest (that is, least genomic distance from the start or end of A) feature in B. For example, one might want to find which is the closest gene to a significant GWAS polymorphism. Note that closestBed will report an overlapping feature as the closest—that is, it does not restrict to closest non-overlapping feature.

/repository/static/images/8d84903cc667dbe7/closest-glyph.png

This tool is part of the bedtools package from the Quinlan laboratory.

Citation

If you use this tool in Galaxy, please cite:

Bjoern A. Gruening (2014), Galaxy wrapper