k96nb01 / immunogenetr_package

0 stars 0 forks source link

Updates needed for mismatch function. #10

Open k96nb01 opened 3 weeks ago

k96nb01 commented 3 weeks ago

Notes for mismatch functions:

  1. 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.
  2. 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).