Skip to contents

Computes the number of HLA mismatchs between one donor and one candidate

Usage

mmHLA(
  dA = c("1", "2"),
  dB = c("5", "7"),
  dDR = c("1", "4"),
  cA = c("1", "2"),
  cB = c("3", "15"),
  cDR = c("4", "7")
)

Arguments

dA

donor's HLA-A typing

dB

donor's HLA-B typing

dDR

donor's HLA-DR typing

cA

candidate's HLA-A typing

cB

candidate's HLA-B typing

cDR

candidate's HLA-DR typing

Value

mmA number of HLA-A mismatchs between dA and cA; mmB number of HLA-B mismatchs between dB and cB; mmDR number of HLA-DR mismatchs between dDR and cDR; and mmHLA as the sum of mmA + mmB + mmDR

Examples

mmHLA(dA = c('1','2'), dB = c('5','7'), dDR = c('1','4'),
cA = c('1','2'), cB = c('03','15'), cDR = c('04','07'))
#>   mmA   mmB  mmDR mmHLA 
#>     0     2     2     4