queryRelease {HLAtools} | R Documentation |
Search Allele Names Across Release Versions
Description
Searches specific release versions in the AlleleListHistory object for user-defined allele variants.
Usage
queryRelease(rel, variant = "", all = FALSE)
Arguments
rel |
An IPD-IMGT/HLA Database release version, represented as either a character (e.g. "3.56.0") or a numeric (e.g., 3560) value. |
variant |
A character string. The value of 'var' can be any part of a locus or allele name (e.g., "DR", "02:01", "DRB1*08:07"). The default ("") specifies all alleles in 'rel'. |
all |
A logical. When 'all' = TRUE, a vector of all instances of 'variant' in 'rel' is returned. When 'all' = FALSE, the number of instances of 'var' in 'rel' is returned. |
Value
A character vector of all matches to 'variant' in 'rel' or the number of all matches to 'variant' in 'rel'.
Examples
# Identify the number of DRB9 alleles in releases 3.30.0 and 3.31.0.
queryRelease("3.30.0","DRB9",FALSE)
queryRelease("3.31.0","DRB9",FALSE)
# Identify the total number of alleles in release 3.56.0.
queryRelease(3560)
[Package HLAtools version 1.1.1 Index]