getAlleleResolution {midasHLA} | R 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)

[Package midasHLA version 1.2.0 Index]