# HLA

Imputation of FinnGen HLA alleles is done for each data freeze by the [Finnish Red Cross Blood Service](https://www.bloodservice.fi/). Analysis team runs [association](/finngen-data-specifics/green-library-data-aggregate-data/core-analysis-results-files/hla-association-results.md) of [imputed classical HLA alleles](/finngen-data-specifics/red-library-data-individual-level-data/genotype-data/types-of-genotype-files-available/imputed-hla-alleles.md) with FinnGen endpoints for every data freeze.

#### Method <a href="#docs-internal-guid-51003714-7fff-904c-faa6-33100ef81777" id="docs-internal-guid-51003714-7fff-904c-faa6-33100ef81777"></a>

HLA imputation in FinnGen is implemented using R library [HIBAG](https://bioconductor.org/packages/release/bioc/html/HIBAG.html) with [imputation models trained on Finnish individuals](https://github.com/FRCBS/HLA-imputation). The Finnish reference data have been genotyped at clinical grade accuracy at 4-digit (i.e. amino acid) level resolution for the HLA genes HLA-A, B, C, DPB1, DQA1, DQB1, DRB1, DRB3, DRB4 and DRB5. HLA imputation of FinnGen data is based on a set of SNPs directly genotyped on the FinnGen array, however, this set is extracted from SNP-imputed data so that approximately the same set of SNPs should be present in all samples regardless of their original genotyping platform.

#### Output

In addition to allelic non-synonymous variants, HLA-DRB3, DRB4, and DRB5 harbor variants where one or both copies of the gene are not expressed or present. These are denoted as 'ng' while in other cases the allele name is shown as usual.

Furthermore, the algorithm may not always be able to impute an HLA allele to the 4-digit resolution. In that case, the result is shown at 2-digit resolution, e.g. A:01.

The output of HIBAG imputation includes posterior probabilities (PPs) over the reference alleles for each target locus. The imputation result is transformed into a VCF file format, where REF codes for absence of an allele while ALT codes for the presence of an allele. The PP information is incorporated into the VCF GP field. For example, 0|0:0.97,0.03,0 means that both copies of an allele are imputed to be absent at 0.97 PP while the PP for one allele being present is only 0.03 and both alleles being present is 0.

From Data Freeze 10 onwards the HLA imputation can be found by looking at the index file in `/finngen/library-red` under genotype folder.

You can read more details of the HLA imputation process from recently published paper by Jarmo Ritari et al. :

{% embed url="<https://pubmed.ncbi.nlm.nih.gov/33575586/>" %}

There is also a GitHub repository for the imputation:\
<https://github.com/FRCBS/HLA-imputation>

and for the PheWas\
<https://github.com/FRCBS/HLA_PheWAS>

International haplotype frequencies can be found from: <http://www.allelefrequencies.net/>

Analysis team runs [association](/finngen-data-specifics/green-library-data-aggregate-data/core-analysis-results-files/hla-association-results.md) of [imputed classical HLA alleles](/finngen-data-specifics/red-library-data-individual-level-data/genotype-data/types-of-genotype-files-available/imputed-hla-alleles.md) with FinnGen endpoints for every data freeze. Summary stats are found from here: `/finngen/library-green/finngen_R[X]/finngen_R[X]_analysis_data/hla`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.finngen.fi/finngen-data-specifics/green-library-data-aggregate-data/other-analyses-available/hla.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
