getAlleleResolution: Infer HLA allele resolution

View source: R/utils.R

getAlleleResolutionR Documentation

Infer HLA allele resolution

Description

getAlleleResolution returns the resolution of input HLA allele numbers.

Usage

getAlleleResolution(allele)

Arguments

allele

Character vector with HLA allele numbers.

Details

HLA allele resolution can take the following values: 2, 4, 6, 8. See http://hla.alleles.org/nomenclature/naming.html for more details.

NA values are accepted and returned as NA.

Value

Integer vector specifying allele resolutions.

Examples

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


Genentech/MiDAS documentation built on Feb. 5, 2024, 11:52 a.m.