# HLA Typing - Usage Guide

> Call HLA alleles from NGS data (WGS, WES, or RNA-seq) for transplant matching, neoantigen prediction, and pharmacogenomic screening.

- Skill: `tools-only/hla-typing-usage-guide` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/hla-typing-usage-guide`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/hla-typing-usage-guide/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-29
- Page: https://skillmd.com/skills/tools-only/hla-typing-usage-guide

---

# HLA Typing - Usage Guide

## Overview

Call HLA alleles from NGS data (WGS, WES, or RNA-seq) for transplant matching, neoantigen prediction, and pharmacogenomic screening.

## Prerequisites

```bash
# OptiType (HLA Class I)
conda install -c bioconda optitype

# HLA-HD
# Download from https://www.genome.med.kyoto-u.ac.jp/HLA-HD/

# arcasHLA (RNA-seq)
pip install arcas-hla
arcasHLA reference --update
```

## Quick Start

Tell your AI agent:
- "Run HLA typing on my WES data"
- "Type HLA from my RNA-seq BAM"
- "Check if this patient has HLA-B*57:01 for abacavir"
- "Get 4-field HLA resolution from my sample"

## Example Prompts

### Basic Typing

> "Run OptiType on my WES BAM to get HLA-A, B, C"

> "Type HLA from my tumor RNA-seq"

### Pharmacogenomics

> "Check HLA alleles for carbamazepine contraindication"

> "Screen for HLA-B*57:01 before abacavir"

### Transplant

> "Get full HLA typing (Class I and II) for transplant matching"

## What the Agent Will Do

1. Extract reads mapping to HLA region (chr6:28-34Mb)
2. Run appropriate HLA typing tool based on data type
3. Parse results to standard nomenclature
4. Report alleles at requested resolution (2-field or 4-field)
5. Check against pharmacogenomic risk alleles if requested

## Tool Selection

| Data Type | Recommended Tool | Classes |
|-----------|------------------|---------|
| WES/WGS | OptiType, HLA-HD | I (OptiType) or I+II (HLA-HD) |
| RNA-seq | arcasHLA | I and II |
| Targeted panel | HLA-HD | I and II |

## Tips

- **OptiType is fastest** but only types Class I (HLA-A, B, C)
- **4-field resolution** (A*02:01) is clinical standard
- **Extract HLA region** from BAM before typing to speed up
- **RNA-seq typing** works well with arcasHLA from STAR-aligned BAMs
- **HLA-B*57:01 screening** is required before abacavir prescription
- **Population-specific alleles** affect pharmacogenomic risk

