checkAlleleFormat: Check HLA allele format

View source: R/utils.R

checkAlleleFormatR Documentation

Check HLA allele format

Description

checkAlleleFormat test if the input character follows HLA nomenclature specifications.

Usage

checkAlleleFormat(allele)

Arguments

allele

Character vector with HLA allele numbers.

Details

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.

Value

Logical vector specifying if allele elements follows HLA alleles naming conventions.

Examples

allele <- c("A*01:01", "A*01:02")
checkAlleleFormat(allele)


Genentech/midasHLA documentation built on Feb. 12, 2024, 9:38 a.m.