def get_min_qual(qual): if qual is None or len(qual) == 0: return None return (numpy.fromstring(qual, dtype=numpy.byte) - ILLUMINA_QUAL_OFFSET).min()