Generate coordinates of specific length between two BED features
0
0
Entering edit mode
3.9 years ago
Luca Beltrame ▴ 240

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 • 616 views
ADD COMMENT

Login before adding your answer.

Traffic: 3045 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6