Skip to contents

Given two HLA alleles (class I or II), calculates HLA Evolutionary Divergence, i.e, divergence between allele sequences using Grantham distance metric.

Usage

cHED(hla1, hla2)

Arguments

hla1

first HLA allele.

hla2

second HLA allele.

Value

A numerical values corresponding to the divergence between alleles.

Examples

cHED(hla1 = "A*02:653",
 hla2 = "A*02:654")
#> [1] 1.646409