Skip to contents

Computes HLA mismatches (mm) and the respective punctuation within ET Kidney allocation system

Usage

et_mmHLA(
  dA = c("01", "02"),
  dB = c("03", "05"),
  dDR = c("04", "06"),
  cA = c("01", "02"),
  cB = c("03", "05"),
  cDR = c("04", "06"),
  mm0 = 400,
  mm1 = 333.33,
  mm2 = 266.67,
  mm3 = 200,
  mm4 = 133.33,
  mm5 = 66.67,
  mm6 = 0
)

Arguments

dA

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

dB

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

dDR

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

cA

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

cB

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

cDR

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

mm0

A numeric value with points for 0 HLA mm on ETKAS points table.

mm1

A numeric value with points for 1 HLA mm on ETKAS points table.

mm2

A numeric value with points for 2 HLA mm on ETKAS points table.

mm3

A numeric value with points for 3 HLA mm on ETKAS points table.

mm4

A numeric value with points for 4 HLA mm on ETKAS points table.

mm5

A numeric value with points for 5 HLA mm on ETKAS points table.

mm6

A numeric value with points for 6 HLA mm on ETKAS points table.

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; mmHLA as the sum of mmA + mmB + mmDR, and ptsHLA corresponding to the punctuaction given as argument for number of mmHLA.

Examples

et_mmHLA(dA = c("01","02"), dB = c("03","05"), dDR = c("04","06"),
cA = c("01","02"), cB = c("03","05"), cDR = c("04","06"),
mm0 = 400, mm1 = 333.33, mm2 = 266.67, mm3 = 200,
mm4 = 133.33, mm5 = 66.67, mm6 = 0)
#>    mmA    mmB   mmDR  mmHLA ptsHLA 
#>      0      0      0      0    400