Thanks so much for the answer. However I cannot seem to re-assign the occupancy values from the original files to the new ones. So far I have:
mysql --user=genome --host=genome-mysql.cse.ucsc.edu -N -A -D mm9 -e 'select chrom,0,size from chromInfo' | sort-bed - > mm9.bed
bedops --chop 5000 mm9.bed > mm9_5k.bed
bedmap --echo --echo-map-id-uniq mm9_5k.bed HET.bed > HET-5k.bed
And yet the newly formatted HET-5k.bed doesn't have any occupancy values
chr1 0 5000|
chr1 5000 10000|
Unlike the original HET.bed
chr1 3049360 3053345 Region_1 0 0
chr1 3136664 3138809 Region_2 0 0
chr1 3786627 3791240 Region_4 0 0
Thanks again