validate_gl_string
Validate and normalize a GL String (Genotype List, ^ | + ~ / grammar): resolves every allele token, flags outdated/unresolvable names and structural problems (mixed loci within a slash-list, a repeated locus within a haplotype or across ^ blocks, more than two haplotypes, differing loci across a genotype or genotype list, empty elements), and returns the normalized string. Grammar and nomenclature checking only; send allele names, not patient identifiers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gl | Yes | GL String to validate and normalize. Allele names and GL grammar only, never patient identifiers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loci | Yes | ||
| valid | Yes | true when there are no error-severity issues. | |
| counts | Yes | ||
| issues | Yes | ||
| alleles | Yes | Each distinct allele token, in first-seen order. | |
| changed | Yes | normalized_gl differs from the trimmed input. | |
| release | Yes | IPD-IMGT/HLA release every verdict was computed against. | |
| attribution | No | Data attribution (IPD-IMGT/HLA, CC-BY-ND). | |
| normalized_gl | Yes | The GL String with outdated names replaced by current ones. |