checkAlleleFormat.Rd
checkAlleleFormat
test if the input character follows HLA nomenclature
specifications.
checkAlleleFormat(allele)
Character vector with HLA allele numbers.
Logical vector specifying if allele
elements follows HLA
alleles naming conventions.
Correct HLA number should consist of HLA gene name followed by "*" and sets of digits separated with ":". Maximum number of sets of digits is 4 which is termed 8-digit resolution. Optionally HLA numbers can be supplemented with additional suffix indicating its expression status. See http://hla.alleles.org/nomenclature/naming.html for more details.
HLA alleles with identical sequences across exons encoding the peptide binding domains might be designated with G group allele numbers. Those numbers have additional G or GG suffix. See http://hla.alleles.org/alleles/g_groups.html for more details. They are interpreted as valid HLA alleles designations.
allele <- c("A*01:01", "A*01:02")
checkAlleleFormat(allele)
#> [1] TRUE TRUE