Fix to filter by mean, not minimum quality score

Previous code seems to filter out reads with a minimum quality score, rather than the mean quality score. Now calculates the mean quality score and filters by that.