Entering edit mode
4.1 years ago
Denis
▴
310
Hi there!
My BED
file looks like:
chr1 10 20 A
chr1 15 20 B
chr1 19 30 A
chr1 10 20 C
chr1 21 30 C
I'd like to merge overlapping or adjacent (i.e. having just a 1bp distance) features with the same label in the name
(the 4-th) column of the BED
file to get in result:
chr1 10 30 A
chr1 15 20 B
chr1 10 30 C
I've found a bedtools merge
utilite, but it does not take a label into account when try to merge features in the BED
file.
Thanks!
Split by "label" then reduce.
I'm wondering which tool i can use to do that?