Genotyping and quality control