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

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

Login before adding your answer.

Traffic: 1717 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