Convert a strange .bed into .bed accepted by any tool

What it does

This tool formats a .bed file, check that regions do not extend chromosome lengths