Entering edit mode
4.4 years ago
James Clark
•
0
Dear all,
I am trying to split my bed files so that I have bins of 1000bp. I am also wanting the red number in column 4 to add up when I do this. i.e. currently I have:
- chr1 3053057 3053058 7
- chr1 3053058 3053132 9
- chr1 3053132 305313 16
- chr1 3053133 3053174 17
- chr1 3053174 3053175 10
- chr1 3053175 3053202 8
- chr1 3053202 3053249 9
- chr1 3072131 3072248 1
- chr1 3072250 3072315 1
- chr1 3076197 3076235 1
And I would like
- chr1 3053057 3054057 76
- chr1 3054057 3056057 0
and so on
I was wanting to do this to two bed files and then plot them as a scatter graph. Can anyone recommend the best way to do this as well?
Thank you