Genotyping by sequencing