Fix code to guess the allele_type