This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Generate coordinates of specific length between two BED features

Hello,

as part of creating a custom library capture kit, I want to expand an existing design, which is provided to me as a single BED file. The coordinates for the existing design are spaced from 50kbp to 300kbp each, and the features are around 100bp each.

What I'd like to do is to:

  1. Get the middle point between two features (as in coordinates)
  2. Add a new feature with 150bp length at that coordinate

Is there an "easy way" to do that, or do I have to calculate the midpoint for each coordinate manually?

bed bedtools

0 answers

No answers yet.

Log in to answer this question.