when working with bedtools intersect , there are many options that you could use like setting minimum overlap as percentage of file A or B , or whether to write original A or B entries. I was wondering if there is a package in R that does the same
I would appreciate your answer
There is the 'valr' package, that allows you to execute some of the basic bedtools commands in R.
https://rnabioco.github.io/valr/
But I don't think it yet supports the percentage overlap -f option of bedtools unfortunately
You can code it yourself though: