def decode_base_qual(raw_base_qual: bytes,
                     offset: int = 33) -> str:
    """Decode raw BAM base quality scores into ASCII values

    Parameters
    ----------
    raw_base_qual : bytes
        The base quality section of a BAM alignment record as bytes
        eg the output from pylazybam.bam.get_raw_base_qual()

    offset : int
        The offset to add to the quality values when converting to ASCII

    Returns
    -------
    str
        The ASCII encoded SAM representation of the quality scores

    """
    return "".join([chr(q + offset) for q in list(raw_base_qual)])