Skip to contents

Some HLA alleles were assigned in the past, but this assignment later turned out to be wrong. For example, the allele was deleted because it turned out to be identical to an existing allele. Or, the allele was changed by having its sequence renamed (most commonly, a suffix is added).

convert_deleted() returns the new assignment of an HLA allele in the deleted_changed lookup table. If the allele does not occur in the table (i.e., it was never re-assigned), it simply returns the input allele. N.B. in some cases, it was decided to remove the allele entirely, in which case NA is returned.

Usage

convert_deleted(allele)

Arguments

allele

A string or character vector of HLA alleles

Value

A vector with the same length as allele, with all deleted/changed alleles converted to their new equivalent

See also

convert_v2_to_v3() to lookup the v3 equivalent of v2 alleles

Examples

convert_deleted("B*08:06") # sequence identical to existing allele
#> [1] "B*08:20:01"
convert_deleted("C*07:226") # sequence renamed (Q suffix added)
#> [1] "C*07:226Q"
convert_deleted("C*07:295") # sequence never assigned (returns NA)
#> [1] NA