GLvalidate: Validate a GL String Code

View source: R/GLupdater.R

GLvalidateR Documentation

Validate a GL String Code

Description

A lightweight validator that inspects a GL String Code for correct structure. If the namespace field contains a value other than value of 'namespace', the namespace is changed to 'hla'. The version and GL String fields are not evaluated.

Usage

GLvalidate(GLString, namespace = c("hla", "kir"))

Arguments

GLString

A character string describing a string formatted to GL String Code specifications.

namespace

A character vector of allowed namespace strings. The default value is 'c("hla","kir")'.

Value

A character string describing either a well-formatted GL String Code or the value FALSE.

Note

For internal use only.

References

Mack et al. HLA 2023;102(2):206-212 https://doi.org/10.1111/tan.15126

Mack et al. HLA 2023;102(4):501-507 https://doi.org/10.1111/tan.15145

Examples

GLvalidate("ha#3.25.0#hla-B15:35") 


HLAtools documentation built on June 8, 2025, 12:24 p.m.