Description Usage Arguments Value See Also Examples
View source: R/HLA_classification.R
Classifies an allele according to a reference dataframe. If an NMDP code is present, class is given if all possible alleles are the same class, otherwise returns NA
1 | HLA_Classification(allele, HLA_x_class)
|
allele |
An HLA allele string vector, including ":" characers but not the initial "C*" |
HLA_x_class |
HLA classification reference data.frame (such as constructed by for example |
String vector with classification group from reference document, NA if unknown
HLA_C_classification
, HLA_B_classification
,
HLA_C_class_load
, HLA_B_class_load
, NMDP
1 2 3 4 5 | dat <- data.frame(HLA_C = c("01:02", "01:AWFCH"), HLA_B = c("07:02", NA),stringsAsFactors = FALSE)
HLA_C_class <- HLA_C_class_load()
HLA_Classification(dat$HLA_C, HLA_C_class)
HLA_B_class <- HLA_B_class_load()
HLA_Classification(dat$HLA_B, HLA_B_class)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.