def _make_translations(invalid_value):
    """Return byte translation tables to be used for base and quality parsing."""
    from .alphabets import GENOMIC
    valid_bases = GENOMIC.encode('ascii').upper()
    valid_quals = range(0, 41)
    qual_offset = 33
    bytes_ = bytes(range(256))
    trans_bases = [invalid_value] * len(bytes_)
    for uppercase, lowercase in zip(valid_bases.upper(), valid_bases.lower()):
        trans_bases[uppercase] = uppercase
        trans_bases[lowercase] = uppercase
    trans_quals = [invalid_value] * len(bytes_)
    for qual in valid_quals:
        trans_quals[qual + qual_offset] = qual
    trans_bases = bytes.maketrans(bytes_, bytes(trans_bases))
    trans_quals = bytes.maketrans(bytes_, bytes(trans_quals))
    return trans_bases, trans_quals
