Skip to contents

Computes the number of HLA mismatches between donor and 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

A two elements character vector with donor's HLA-A typing

dB

A two elements character vector with donor's HLA-B typing

dDR

A two elements character vector with donor's HLA-DR typing

cA

A two elements character vector with candidate's HLA-A typing

cB

A two elements character vector with candidate's HLA-B typing

cDR

A two elements character vector with candidate's HLA-DR typing

Value

mmA number of HLA-A mismatches between dA and cA; mmB number of HLA-B mismatches between dB and cB; mmDR number of HLA-DR mismatches between dADR 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