partition single bed file into non-overlapping regions
1
0
Entering edit mode
2.3 years ago
jrose ▴ 30

Hi,

I have a bed file with overlapping regions. Say:

chr1    100 300
chr1    200 300
chr1    500 800
chr1    700 900

I would like to create a new bed file with regions that do not have any overlaps but still contain the same exact coordinates. This is the desired output:

chr1    100 200
chr1    200 300
chr1    500 700
chr1    700 800
chr1    800 900

Is there a common tool for this?

bedops bed bedtools • 734 views
ADD COMMENT
1
Entering edit mode
2.3 years ago
ATpoint 85k

It's as easy as bedops --partition your.bed.

https://bedops.readthedocs.io/en/latest/

ADD COMMENT
0
Entering edit mode

Thanks. I got confused by the output and mistakenly thought it was not what I wanted.

ADD REPLY

Login before adding your answer.

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