I am new to BED files. Is there a way to manipulate a BED file such that the regular intervals that document e.g. occupancy levels will change.
chr1 9825 9850 id-1 0.520000
chr1 9850 9875 id-2 1.760000
chr1 9875 9900 id-3 2.000000
chr1 9900 9925 id-4 2.000000
chr1 9925 9950 id-5 2.000000
converted to intervals of 75 rather than 25
chr1 9825 9800 id-1 averaged_value
chr1 9875 9950 id-2 averaged_value
chr1 10025 10100 id-3 averaged_value
chr1 10175 10250 id-4 averaged_value
etc..
The above conversion is just an example. It would be preferable to have the final product file in intervals of 10,000
your second intervals file is malformed. first line
looks like it should be
you can detect invalid regions' definitions by simply checking their 2nd and 3rd columns: