Scripts and software for out-of-sequence shortening calculations