scripts to write out genomic regions in bed files