def get_mean_qscore(quals): """ Returns the mean qscore over the entire length of the qscore string. """ try: return sum([q - 33 for q in quals]) / len(quals) except ZeroDivisionError: return 0.0