GLStoUNI {HLAtools} | R Documentation |
Translate GL String to UNIFORMAT
Description
A wrapper function for GLtoUN, which translates strings from GL String format to UNIFORMAT format.
Usage
GLStoUNI(GLstring, prefix = "HLA-", pre = FALSE)
Arguments
GLstring |
A character string of HLA allele names and operators in the GL String format signifying their relation with one another. |
prefix |
A character string of the pertinent gene-system prefix (default is "HLA-"). |
pre |
A logical that indicates whether returned allele names should contain 'prefix' (TRUE), or if 'prefix' should be excluded from returned names (FALSE). |
Value
A version of 'GLstring' converted to UNIFORMAT format, or FALSE if 'GLstring' is invalid.
Note
This function does not function with the "?" operator, as the "?" operator has no cognate in UNIFORMAT.
References
Nunes Tissue Antigens 2007;69(s1):203-205 https://doi.org/10.1111/j.1399-0039.2006.00808.x
Mack et al. HLA 2023;102(2):206-212 https://doi.org/10.1111/tan.15126
Examples
GLStoUNI("HLA-A*02:01/HLA-A*02:02+HLA-A*03:01/HLA-A*03:02")
GLStoUNI("A+B/C~D^G|E^W+X/Y^Z+J")