HLA_Supertype: Assign HLA alleles to Supertype

Description Usage Arguments Value Source Examples

View source: R/HLA_classification.R

Description

Assigns a HLA allele to its Supertype (A01, A02 A24 etc). Allele which are classified as Unassigned in the paper are "Unassigned", alleles which do not appear in the paper at all are given "Unknown".

Usage

1
HLA_Supertype(allele, HLA)

Arguments

allele

HLA allele string vector as character, two fields only

HLA

"A" for HLA-A, "B" for HLA-B

Value

string vector with Supertype assignment for each row

Source

http://www.biomedcentral.com/1471-2172/9/1

Examples

1
2
3
4
dat <- data.frame(A_allele = c("01:01", "01:99", NA, "01:13"), 
       B_allele = c("07:02", "02:99", NA, "07:10"), stringsAsFactors = FALSE)
HLA_Supertype(dat$A_allele, HLA = "A")
HLA_Supertype(dat$B_allele, HLA = "B")

bosefalk/CTUtools documentation built on Feb. 4, 2022, 4:10 p.m.