Tooluniverse hla immunogenomics

From mims-harvard/ToolUniverse · View interactive version

Tooluniverse hla immunogenomics is an AI agent skill from the GitHub repository mims-harvard/ToolUniverse. HLA gene-family analysis and MHC-peptide binding for transplant compatibility, vaccine epitope coverage, and cancer immunotherapy. Uses IMGT (HLA polymorphism), IEDB (epitope-MHC binding), UniProt (annotation), DGIdb (druggability). Use for HLA typing/imputation review, vaccine HLA coverage, and imm

How to use this skill

Skill file

HLA & Immunogenomics Analysis

Pipeline for exploring HLA gene families, MHC-peptide binding, epitope associations, and their clinical implications in transplantation, vaccine development, and cancer immunotherapy. Bridges immunogenetic databases (IMGT, IEDB) with functional annotation (UniProt) and druggability data (DGIdb).

Reasoning Strategy

HLA analysis is fundamentally about peptide presentation: the polymorphism of HLA molecules determines which peptides are displayed to T cells, which in turn governs disease susceptibility, transplant rejection, drug hypersensitivity, and vaccine immunogenicity. HLA type affects disease susceptibility for autoimmune conditions (HLA-B27 and ankylosing spondylitis), transplant rejection (HLA mismatch drives alloresponse), drug hypersensitivity (abacavir causes severe hypersensitivity reactions only in HLA-B*57:01 carriers), and vaccine design (epitopes must be presented by the recipient's HLA alleles to elicit a T-cell response). Class I and Class II HLA molecules have fundamentally different binding grooves, peptide lengths, and T-cell partners — never conflate them. The absence of an epitope from IEDB means it has not been tested, not that it cannot bind.

LOOK UP DON'T GUESS: Never assume an allele's binding properties or population frequency — query IEDB for experimental binding data and IMGT for allele annotation. Do not guess which HLA alleles are common in a population; look up published frequency data via PubMed.

Guiding principles:

  1. HLA nomenclature precision -- HLA allele names follow strict conventions (e.g., HLA-A*02:01); get the resolution level right
  2. MHC class awareness -- Class I (A, B, C) and Class II (DR, DQ, DP) have different binding properties and clinical roles
  3. Species context -- most queries target human HLA, but MHC exists across vertebrates; confirm species early
  4. Evidence layering -- combine binding data (IEDB) with gene annotation (IMGT) and structural context (UniProt)
  5. Clinical translation -- connect molecular findings to transplant matching, vaccine targets, or immunotherapy response
  6. English-first queries -- use English terms in all tool calls; respond in the user's language

COMPUTE, DON'T DESCRIBE

When analysis requires computation (statistics, data processing, scoring, enrichment), write and run Python code via Bash. Don't describe what you would do — execute it and report actual results. Use ToolUniverse tools to retrieve data, then Python (pandas, scipy, statsmodels, matplotlib) to analyze it.

When to Use

Typical triggers:

Not this skill: For full neoantigen prediction pipelines, use tooluniverse-immunotherapy-response-prediction. For general gene function lookup, use tooluniverse-drug-target-validation.


Core Databases

| Database | Scope | Best For |

|----------|-------|----------|

| IMGT | International ImMunoGeneTics; HLA/MHC gene nomenclature and sequences | Authoritative HLA gene info, allele nomenclature, sequence data |

| IPD-IMGT/HLA | IPD-IMGT/HLA allele database (via IPD_* tools); allele-accession-level records and reference cell lines | Full allele-history detail for a specific accession, HLA-typed reference cell lines |

| IEDB | Immune Epitope Database; experimentally validated epitope-MHC data | Epitope binding, MHC restriction, T-cell assay results |

| HLA Ligand Atlas / MHC Motif Atlas | Mass-spectrometry-eluted, naturally-presented HLA ligands | Direct evidence of presentation (not just predicted/assayed binding) |

| BVBRC | BV-BRC (formerly PATRIC/IRD); pathogen epitopes | Pathogen-derived epitopes with host MHC context |

| UniProt | Protein function and structure annotations | HLA protein features, domains, variants |

| DGIdb | Drug-Gene Interaction Database | Druggability of HLA-pathway genes |

| PubMed | Biomedical literature | Clinical HLA studies, transplant outcomes |


Workflow Overview

Phase 0: Query Parsing & HLA Disambiguation
  Resolve allele names, identify MHC class, confirm species
    |
Phase 1: HLA Gene Lookup
  IMGT gene info, allele details, sequence data
    |
Phase 2: MHC Binding & Restriction
  IEDB MHC binding data, allele-specific peptide repertoire
    |
Phase 3: Epitope-MHC Associations
  IEDB/BVBRC epitope search, pathogen-specific epitopes
    |
Phase 4: Functional Annotation
  UniProt protein features, structural domains
    |
Phase 5: Clinical & Therapeutic Context
  DGIdb druggability, PubMed clinical evidence
    |
Phase 6: Report Synthesis
  Integrated immunogenomics report

Phase Details

Phase 0: Query Parsing & HLA Disambiguation

Parse the user's input to identify:

HLA nomenclature quick reference:

Phase 1: HLA Gene Lookup

Objective: Get authoritative gene and allele information from IMGT.

Tools:

Workflow:

  1. Search IMGT for the target HLA gene or allele
  2. Retrieve full gene details including functional status and sequence
  3. Note the number of known alleles (HLA-A has >7,000; HLA-B has >8,000)
  4. Identify whether the allele is commonly studied or rare

If allele not found: Check nomenclature -- older names may have been reassigned. Try searching by the gene name alone (e.g., "HLA-A") and filtering results.

Allele-level detail via IPD-IMGT/HLA: For the authoritative allele-nomenclature record itself (not just gene-level info), use the IPD-IMGT/HLA tools:

Verified live example: IPD_search_hla_alleles({"name": "A*02:01"}) returns accessions HLA00005/HLA00006/... for the A*02:01:01:01/A*02:01:01:02/... sub-lineages; IPD_get_hla_allele({"accession": "HLA00005"}) returns the full allele-history record.

Phase 2: MHC Binding & Restriction

Objective: Find what peptides bind to a specific MHC molecule, or what MHC molecules present a given peptide.

Tools:

Workflow:

  1. Search IEDB for the target MHC allele to see available binding data
  2. For specific epitope-MHC pairs, retrieve binding assay details
  3. Note binding affinity (IC50 < 500 nM is typically considered a binder for class I)
  4. Distinguish between binding assays (in vitro) and T-cell assays (functional)

Binding affinity interpretation (Class I):

Naturally-presented ligands (immunopeptidomics): IEDB's binding assays test whether a peptide can bind; the HLA Ligand Atlas and MHC Motif Atlas instead report peptides actually eluted from HLA molecules by mass spectrometry -- direct evidence of presentation, not just affinity.

Verified live example: MHCMotifAtlas_get_allele_ligands({"allele": "A0201"}) returns real eluted peptides (e.g. ALFTKVLENV); HLALigandAtlas_get_benign_peptides({"hla_class": "HLA-I", "limit": 3}) returns real thymus-tissue peptides with full donor-allele context.

Phase 3: Epitope-MHC Associations

Objective: Find epitopes from specific pathogens or antigens and their MHC restriction.

Tools:

Workflow:

  1. Search IEDB for epitopes from the target pathogen/antigen
  2. Supplement with BVBRC for additional pathogen-specific epitopes
  3. Filter by the MHC allele of interest if specified
  4. Categorize by assay type: binding assay, T-cell assay (IFN-gamma, cytotoxicity), MHC multimer

Important: IEDB epitopes are experimentally validated, not predicted. The absence of an epitope does not mean it won't bind -- it may simply be untested.

Population coverage for vaccine design: When selecting epitopes for a vaccine, check how common the restricting HLA allele is in the target population. An epitope restricted to HLA-A*02:01 covers ~50% of Europeans but <15% of some African populations. For broad population coverage, select epitopes across multiple HLA supertypes (A2, A3, B7, B44 cover >95% of most populations).

Phase 4: Functional Annotation

Objective: Get protein-level features for HLA molecules and related proteins.

Tools:

Workflow:

  1. Search UniProt for the HLA protein (e.g., "HLA-A human")
  2. Extract functional domains: signal peptide, alpha chains, transmembrane region
  3. Note polymorphic positions that define allele specificity
  4. Check for structural data (PDB cross-references)

Phase 5: Clinical & Therapeutic Context

Objective: Connect HLA findings to drug interactions and clinical evidence.

Tools:

Workflow:

  1. Query DGIdb for drug interactions with relevant HLA genes
  2. Search PubMed for clinical studies (transplant outcomes, pharmacogenomics, disease associations)
  3. For transplant queries, look for HLA matching guidelines and outcomes data
  4. For pharmacogenomics, note HLA alleles linked to drug hypersensitivity (e.g., HLA-B*57:01 and abacavir)

Well-known HLA-drug associations (for context, always verify with current data):

Phase 6: Report Synthesis

Structure the report as:

  1. HLA Context -- gene/allele identification, MHC class, population frequency if available
  2. Binding Profile -- peptide repertoire, binding affinity distribution
  3. Epitope Landscape -- pathogen-specific epitopes, assay evidence
  4. Protein Features -- structural domains, polymorphic sites
  5. Clinical Relevance -- transplant implications, drug associations, disease links
  6. Evidence Summary -- graded by source (IEDB experimental > computational prediction > literature mention)

Edge Cases & Fallbacks


Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.