Call HLA class I (A, B, C) and class II (DRB1, DRB3/4/5, DQA1, DQB1, DPA1, DPB1) alleles at the resolution required for HSCT, solid-organ transplant, neoantigen prediction, pharmacogenomic screening, and disease-association studies. Covers short-read tools (OptiType, HLA-LA, T1K, Polysolver, HLA-HD, arcasHLA), long-read (StarPhase, FuFiHLA), and SNP-array imputation (HIBAG, HLA-TAPAS) with explicit reconciliation when tools disagree.
# Short-read all-rounder
conda install -c bioconda t1k
# Class I gold standard (TCGA-compatible)
conda install -c bioconda optitype
# Class II reference grade (needs ~30-100 GB scratch)
conda install -c bioconda hla-la
# Build PRG (one-time, ~12 hours): HLA-LA.pl --action prepareGraph --PRG_graph_dir PRG_MHC_GRCh38_withIMGT
# RNA-seq
pip install arcas-hla
arcasHLA reference --update # Pull current IPD-IMGT/HLA release
# Long-read (PacBio HiFi)
# StarPhase: install from PacBio Bioconda channel or follow PacBio docs
# SNP-array imputation (R)
# install.packages('HIBAG')
# Download ancestry-matched reference panel from https://hibag.s3.amazonaws.com/
Tell the agent what to do: - "Run T1K on my WGS BAM to call HLA-A, B, C, DRB1, DRB3/4/5, DQB1, DPB1 at 4-field" - "Type HLA from my RNA-seq with arcasHLA for neoantigen prediction" - "Screen this patient for HLA-B*57:01 before abacavir; require 4-field specificity" - "Impute HLA from SNP-array genotypes using HIBAG with the African-ancestry panel" - "For my HSCT donor search, type all class I + II at 6-field on PacBio HiFi using StarPhase" - "Compare T1K vs HLA-LA outputs on these 20 samples and reconcile discrepancies"
"Run T1K on these 50 WES samples. Output 4-field calls for all class I + II loci. Verify the DRB1+DRB3/4/5 linkage rule on each sample and flag any violations."
"Type HLA-A, B, C with OptiType on this TCGA-compatible workflow. Compare to T1K and report concordance."
"For my tumor + normal RNA-seq pairs, run arcasHLA on both. Flag any tumors with HLA LOH (allele loss vs normal)."
"Screen these patients for HLA-B57:01 before abacavir; require 4-field resolution. Distinguish 57:01 from 57:02 and 57:03 explicitly."
"Pre-prescription HLA screen for carbamazepine: check B15:02 (Han Chinese SJS risk) and A31:01 (European DRESS). Report ancestry-specific risk."
"For this Han Chinese cohort, screen B58:01 before allopurinol and B13:01 before dapsone."
"Type all class I + II at 6-field for this HSCT donor with PacBio HiFi using StarPhase. Output null alleles (N-suffix) explicitly; do not strip suffixes for clinical reporting."
"For this DPB1 mismatch, classify as TCE3 core (GvHD-reduction permissive) vs non-core (relapse-protection) per Arrieta-Bolaños 2024."
"Calculate eplet mismatch score (HLAMatchmaker) for this donor-recipient pair at HLA-A, B, DRB1, DQB1."
"From this UK Biobank-style array, impute HLA-A, B, C, DRB1 at 4-field using HIBAG. Use ancestry-matched panels (EUR for NFE samples, AFR for AFR samples)."
"For multi-ancestry GWAS, use HLA-TAPAS multi-ancestry reference panel for HLA imputation."
"Run both T1K and HLA-LA on these 20 samples; reconcile class II disagreements and flag samples needing long-read confirmation."
"Tumor HLA differs from germline HLA in this patient; run LOHHLA to confirm somatic LOH and report germline class I as the actionable genotype."
| Scenario | Tool | Resolution |
|---|---|---|
| WGS/WES general purpose | T1K | 4-field, class I + II + KIR |
| WGS/WES class I only | OptiType | 4-field |
| WGS/WES class II reference | HLA-LA | 4-field |
| RNA-seq | arcasHLA | 4-field |
| TCGA cancer cohort | Polysolver | 4-field, class I |
| Long-read transplant | StarPhase (PacBio HiFi) | 8-field |
| Long-read platform-agnostic | FuFiHLA (PacBio + ONT) | 8-field |
| SNP array | HIBAG (ancestry-matched) | 4-field |
| Multi-ancestry GWAS | HLA-TAPAS | 4-field |
| Cost-effective targeted typing | pbaa + StarPhase | 8-field |