tidyomics / plyranges

A grammar of genomic data transformation
https://tidyomics.github.io/plyranges/
137 stars 19 forks source link

[FEATURE REQUEST] Minimum overlap expressed as a percentage #89

Open Alex-Nesta opened 3 years ago

Alex-Nesta commented 3 years ago

Please add an option to express min overlap as a percentage. This is done in other tools like bedtools.

See -f and -F:

-f | Minimum overlap required as a fraction of A. Default is 1E-9 (i.e. 1bp).
-F | Minimum overlap required as a fraction of B. Default is 1E-9 (i.e., 1bp).

https://bedtools.readthedocs.io/en/latest/content/tools/intersect.html

Context

This feature is great when intersecting coordinates of various widths. At times, percentage is better than an absolute number.