Will need to update to handle serologic nomenclature. DRB3/4/5 is DR51/52/53 in serologic nomenclature, so will need to handle these loci differently.
Also for serologic nomenclature, the function gives an error, due to this line of code not being able to split serologic typing:
# Set names for each locus
names(recip_alleles_list_processed) <- map_chr(strsplit(recip_alleles_list_processed, "\\*"), 1)
names(donor_alleles_list_processed) <- map_chr(strsplit(donor_alleles_list_processed, "\\*"), 1)
I think it will be best to update the regex pattern to properly determine the locus name from serologic
(HLA-A2) or molecular nomenclature(HLA-A*02:01).
Notes for mismatch functions:
I think it will be best to update the regex pattern to properly determine the locus name from serologic (HLA-A2) or molecular nomenclature(HLA-A*02:01).