Quality control of library sequences