Entering edit mode
4.8 years ago
K.Gee
▴
40
Hi I have a file containing genes ids and its midpoint (let's say 11 ids). I read that bedtools can calculate the distances from gene 1 to gene 2, from 2 to gene 3 etc. to have 10 points afterward. Moreover, I read the bedtools manual, but I didn't understand which tools option is suitable for this task reldist looks an option, but still, it doesn't seem 100% to making what I want to do? Can anyone direct me/suggest the best options in bedtools? Thank you in advance.
Try bedtools closest. https://bedtools.readthedocs.io/en/latest/content/tools/closest.html
thank you very much for the response!