Pathogen genotyping