Skip to contents

Retrieve the list of txt files in github.com/ANHIG/IMGTHLA/alignments and return a list of gene names derived from the file names.

Usage

hla_genes(release = "latest", overwrite = FALSE, verbose = FALSE)

Arguments

release

Default is "latest". Should be a release name like "3.51.0".

overwrite

Overwrite the existing genes.json file with a new one from GitHub

verbose

If TRUE, print messages along the way.

Value

A tibble with two columns: HLA gene names ("A", "DRB1") and types ("nuc", "gen", "prot").

See also

hla_releases() to get a complete list of all release names.

Examples

# \donttest{
hla_genes() 
#> # A tibble: 107 × 2
#>    gene  type 
#>    <chr> <chr>
#>  1 A     gen  
#>  2 A     nuc  
#>  3 A     prot 
#>  4 B     gen  
#>  5 B     nuc  
#>  6 B     prot 
#>  7 C     gen  
#>  8 C     nuc  
#>  9 C     prot 
#> 10 DMA   gen  
#> # ℹ 97 more rows
# }