Immunogenicity logo

Immunogenicity

Organization
K-Dense-AI
immunogenicity

Estimate how likely a protein therapeutic is to provoke an anti-drug antibody response, and locate the sequence regions responsible. Use this skill to tile a sequence into peptides, predict class II MHC presentation across a population-representative allele panel, aggregate predicted binders into a per-region and whole-molecule risk score, compare a candidate against its closest human germline, and decide which liabilities are worth deimmunising. Also trigger on immunogenicity, anti-drug antibody, ADA, T-cell epitope, MHC class II, HLA-DRB1, NetMHCIIpan, NetMHCpan, deimmunisation, tregitope, or population coverage.

Overview

PublisherK-Dense-AI
Repositorydrug-discovery-agent-skills
Skill nameimmunogenicity
Stars
51
Forks
5
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by K-Dense-AI on GitHub. Read the source before you install it.

Installation

Install the Immunogenicity AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/immunogenicity
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/K-Dense-AI/drug-discovery-agent-skills.git /tmp/drug-discovery-agent-skills
mkdir -p .claude/skills
cp -r /tmp/drug-discovery-agent-skills/skills/immunogenicity .claude/skills/immunogenicity
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Immunogenicity in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Immunogenicity on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Immunogenicity is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Immunogenicity Risk

A protein therapeutic can provoke antibodies against itself, and when it does the drug stops working — or worse, cross-reacts with an endogenous counterpart. This skill locates the sequence regions responsible and puts them in proportion against the factors that usually matter more.

No installation, no network, no key for the bundled scripts. Running the predictor needs NetMHCIIpan from DTU Health Tech, free for academic use under a signed licence and not redistributable — which is why these scripts prepare its input and parse its output rather than wrapping it.

Read references/running-netmhciipan.md before your first scan, references/deimmunisation.md before changing a sequence, and references/what-drives-ada.md before drawing a conclusion — that one is judgement, not syntax, and it is mostly about what the scan cannot see.

The two scripts

ScriptAnswers
epitope_scan.pyWhich regions present peptides, on how many alleles?
ada_risk.pyWhat does that add up to, and what else should I be worried about?

Class II, and %Rank

Two things to get right before anything else.

Anti-drug antibodies need CD4 T-cell help, which is class II restricted. Scanning a biologic against MHC-I answers a question about cytotoxic T cells that is rarely the one being asked. Use NetMHCIIpan.

Use %Rank, not affinity. Predicted IC50 is not comparable between alleles — each has its own affinity distribution — so nM cannot be thresholded uniformly. %Rank normalises against a background of random peptides and can. Conventionally ≤2% is a strong binder, ≤10% weak.

Collapse peptides to cores, then count alleles

bash
python skills/immunogenicity/scripts/epitope_scan.py peptides --sequence-file mab.fa > peptides.txt
# netMHCIIpan -f peptides.txt -inptype 1 -a DRB1_0101,... -xls -xlsfile out.txt
python skills/immunogenicity/scripts/epitope_scan.py parse --output out.txt
core       example_peptide  alleles_bound  allele_coverage_pct  best_rank  promiscuous
LVESGGGLV  EVQLVESGGGLVQPG  3              75.0                 0.85       true

Consecutive 15-mers overlap by 14 residues and share a 9-mer core, so peptide hits overcount epitopes by up to sevenfold. Three predictions here collapse to one epitope.

Promiscuity matters more than potency. A core binding one rare allele affects few patients; one binding eight common alleles affects most of them. The scripts sort by alleles bound, not by rank.

Germline identity dominates the epitope count

bash
python skills/immunogenicity/scripts/ada_risk.py score --cores cores.tsv --length 120 --humanness 0.92

A fully human sequence contains plenty of predicted class II binders — human proteins are full of them. What makes it low-risk is central tolerance: T cells recognising self-peptides were deleted in the thymus.

So the location of an epitope matters far more than the count. Peptides in germline framework are largely noise; peptides in CDRs, engineered junctions, and non-human segments are the signal. ada_risk.py changes its interpretation based on --humanness, and says so when you omit it.

Aggregation probably matters more than your sequence

The single largest non-sequence factor. Aggregates present repetitive epitope arrays that cross-link B-cell receptors and are taken up by antigen-presenting cells far more efficiently than monomer.

A low-epitope sequence that aggregates in the vial will be more immunogenic than a higher-epitope one that does not. Behind it: route (subcutaneous > IV), dosing frequency, patient population, concomitant immunosuppression, impurities, and non-human glycans — which are epitopes in their own right and invisible to any sequence scan.

Nothing here predicts an ADA rate

bash
python skills/immunogenicity/scripts/ada_risk.py context
MoleculeObserved ADA
trastuzumab (humanised)<1%
pembrolizumab (humanised)<2%
natalizumab (humanised)~6–9%
adalimumab (fully human)up to ~26%
infliximab (chimeric)~10–60%
muromonab-CD3 (murine)~50–100%

Humanisation helps and does not decide it — fully human adalimumab reaches 26%. Clinical ADA spans under 1% to over 60%, and no in-silico method resolves that range. Anything claiming to predict a percentage is overselling.

Deimmunising without breaking the molecule

The highest-leverage change is usually a substitution at P1 of the 9-mer core, replacing a large hydrophobic with something charged or small polar. But a substitution that breaks one core routinely creates a new one shifted a few residues along — the class II groove is open-ended, so suppressing the best register promotes the next.

Re-scan the whole molecule after every change, not just the mutated peptide. And rescreen for what you may have introduced: N-X-S/T sequons (glycoengineering), NG or DG hotspots (antibody-engineering), and aggregation propensity.

Composing with the rest of the bundle

  • antibody-engineering → before: germline identity, CDR boundaries, and Vernier residues, which is the context every epitope needs.
  • glycoengineering → alongside: non-human glycans are immunogenic epitopes no sequence scan finds, and deimmunising substitutions can create new sequons.
  • protein-binder-design → here: de novo binders are entirely non-germline, so this scan is not optional for them.
  • esm → alongside: sequence likelihood as a rough humanness proxy when no germline reference fits.
  • adaptyv → after: get the variants made and tested.

Reporting results honestly

Say where the promiscuous epitopes are, not just how many. Give germline identity alongside. Name the alleles scanned and note that DP and DQ were not. State that aggregation and route are likely larger contributors than sequence. Call the output a triage aid, and recommend MAPPs or a T-cell proliferation assay before any decision that matters. Never report a predicted ADA rate.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Immunogenicity AI skill do?

Estimate how likely a protein therapeutic is to provoke an anti-drug antibody response, and locate the sequence regions responsible. Use this skill to tile a sequence into peptides, predict class II MHC presentation across a population-representative allele panel, aggregate predicted binders into a per-region and whole-molecule risk score, compare a candidate against its closest human germline, and decide which liabilities are worth deimmunising. Also trigger on immunogenicity, anti-drug antibody, ADA, T-cell epitope, MHC class II, HLA-DRB1, NetMHCIIpan, NetMHCpan, deimmunisation, tregitope...

Why use Immunogenicity on TypingMind?

Because you install it once and use it with any model. Immunogenicity is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Immunogenicity in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/immunogenicity. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Immunogenicity?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Immunogenicity?

As many as you like. As long as a model supports skills, you can use Immunogenicity with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Immunogenicity AI skill free?

Yes. It is published on GitHub by K-Dense-AI under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇