Statistical modeling for SNP based genotyping of mixed bacterial