Description Usage Arguments Value Source Examples
View source: R/HLA_classification.R
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".
1 | HLA_Supertype(allele, HLA)
|
allele |
HLA allele string vector as character, two fields only |
HLA |
"A" for HLA-A, "B" for HLA-B |
string vector with Supertype assignment for each row
http://www.biomedcentral.com/1471-2172/9/1
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.