def read_to_ulens(read, min_ulen, max_ulen):
    """Extract units of [`min_ulen`..`max_ulen`] bp length from `read.units`."""
    return [unit.length for unit in read.units
            if min_ulen <= unit.length <= max_ulen]