Entering edit mode
3.8 years ago
Matthias
▴
30
Hi,
I have a bed that looks something like this:
chr1 150000 170000 feature 10 +
chr1 160000 180000 feature 10 +
I want a way to sum the scores in only the overlapping regions, like this:
chr1 150000 160000 feature 10 +
chr1 160000 170000 feature 20 +
chr1 170000 180000 feature 10 +
Does anyone have any ideas how to do this? I wrote a super chunky python script, but its super computationally intensive and there must be a better way.
Thanks!