def alignmentQuality(alignment):
    """
    Produce an alignment quality string from a pysam alignment.

    @param alignment: A C{pysam.AlignedSegment} instance.
    @return: A C{str} quality string.
    """
    return ''.join(map(lambda x: chr(x + 33), alignment.query_qualities))
