verifyAllele: Determine if an Allele Name Ever Existed, and (if so) in...

View source: R/accessoryFunctions.R

verifyAlleleR Documentation

Determine if an Allele Name Ever Existed, and (if so) in Which IPD-IMGT/HLA Database Releases

Description

Returns TRUE if an allele name is present in AlleleListHistory or FALSE it is absent, c(TRUE,version), where 'version' can be the most recent, original, or all IPD-IMGT/HLA Database releases in which that name appears, and c(TRUE,version,acc), where 'acc' is the IPD-IMGT/HLA accession number for the allele.

Usage

verifyAllele(allele, version = FALSE, all = FALSE, first = FALSE, acc = FALSE)

Arguments

allele

A character string of an HLA allele name. Colon-delimited and field-delimited names are both accepted.

version

A logical that indicates if the most recent nomenclature release version in which that name was valid should be returned. The default value is FALSE.

all

A logical that indicates if all of the nomenclature release versions in which that name was valid should be returned. The default value is FALSE.

first

A logical that indicates if only the original nomenclature release version in which that name was valid should be returned. The default value is FALSE.

acc

A logical that indicates if the IPD-IMGT/HLA accession number for an allele name should be returned. The default value is FALSE.

Value

A logical identifying if the allele name is found in AlleleListHistory (TRUE) or not (FALSE), c(TRUE,version) if version = TRUE, and c(TRUE,acc) or c(TRUE,version,acc) if acc = TRUE.

Examples

verifyAllele("A*01:01:01:01")
verifyAllele("A*01:01:01:01",TRUE)
verifyAllele("A*010101",TRUE,TRUE)
verifyAllele("A*0101",TRUE)
verifyAllele("A*02:01:01:01",FALSE,FALSE,FALSE,TRUE)
verifyAllele("A*02:01:01:01",TRUE,TRUE,FALSE,TRUE)


HLAtools documentation built on June 8, 2025, 12:24 p.m.