Skip to content

feat: Add MyImmune EpiMHC2 v10.0.0 hosted baseline and scores for immunogenicity benchmark - #14

Open
ayansengupta-myimmune wants to merge 1 commit into
Graylab:mainfrom
ayansengupta-myimmune:feat/epimhc2-submission
Open

ayansengupta-myimmune wants to merge 1 commit into
Graylab:mainfrom
ayansengupta-myimmune:feat/epimhc2-submission

Conversation

@ayansengupta-myimmune

Copy link
Copy Markdown

Summary

Adds a zero-shot immunogenicity baseline to FLAb: MyImmune EpiMHC2 v10.0.0, a 26-model HLA class II meta-ensemble developed by MyImmune (myimmune.ai), together with its scores on immunogenicity/Prihoda2021_mAb_immunogenicity.

Two scoring modes are submitted — _seq (sequence-intrinsic presentation risk) and _clin (clinical pharmacology-adjusted ADA risk).

Results

immunogenicity/Prihoda2021_mAb_immunogenicity, N = 217, fitness = %ADA response. Zero-shot: no FLAb data was used in training and no per-dataset fitting was performed.

method Pearson r Spearman ρ Kendall τ
myimmune_epimhc2_v10_clin 0.5233 0.4312 0.3123
myimmune_epimhc2_v10_seq 0.4838 0.4194 0.3058
progen/small (best existing) 0.4799 0.3158 —
progen/medium 0.4616 0.3302 —

On this dataset _clin is the highest of the 13 methods scored in this repository, on both Pearson and Spearman. Two caveats stated up front:

  • _seq leads progen/small by Δr = 0.004, which at N = 217 is within noise. We read the two as comparable rather than ranked, and have not claimed a rank for _seq.
  • This is one dataset in one FLAb category. We make no claim about the other categories, where we have not submitted scores.

Per-antibody scores, correlation files and plots follow the existing score/ layout, under score/myimmune_epimhc2_v10_{seq,clin}/immunogenicity/Prihoda2021_mAb_immunogenicity/.

Method, in brief

  1. Dual-orientation groove epistasis — 9-mer binding registers are evaluated in both the forward (N→C) and inverted (C→N) orientation, with asymmetric pocket epistasis terms.
  2. 27-allele global panel — the standard Greenbaum et al. (2011) IEDB-27 reference set, >97% global population coverage, with multi-allele %Rank calibration.
  3. Natural-repertoire tolerance — presented cores that the human germline repertoire already carries are discounted using an index over 5,467 OAS NGS runs (4,126 human IGH, 1,561 human IGL) plus 140-subfamily xenogeneic log-likelihood ratios. This is what suppresses framework-derived false positives, which dominate naive MHC-II scans of humanized antibodies.

How this is evaluated: hosted REST mode

Unlike the other entries in models/, this baseline is an API client, not a local model. models/myimmune_epimhc2_score.py POSTs VH/VL pairs to a hosted MyImmune endpoint and reads back the two scores; models/scoring_myimmune_epimhc2.py is the usual FLAb runner around it.

Consequences worth flagging for review:

  • No weights, architectures, or checkpoints are added to this repository. No PyTorch or CUDA dependency is introduced — the client needs only requests, pandas, and scipy.
  • No endpoint URL is hardcoded. The service is access-controlled, so the client requires MYIMMUNE_EPIMHC2_URL and MYIMMUNE_API_KEY in the environment and raises a clear error if they are unset. Access can be requested at myimmune.ai.
  • This means the scores in this PR are not independently re-runnable from a clean checkout without credentials. We recognise that is a weaker reproducibility story than a local-weights entry, and we are happy to provide maintainers with access for verification, or to adjust how the entry is labelled if you would prefer hosted baselines marked distinctly in the README table.

Happy to rework the structure, naming, or placement to fit your conventions.

🤖 Generated with Claude Code

…unogenicity benchmark

Adds a zero-shot immunogenicity baseline from MyImmune EpiMHC2 v10.0.0, a
26-model HLA class II meta-ensemble developed by MyImmune (myimmune.ai).

- models/myimmune_epimhc2_score.py: thin REST client for the hosted service
- models/scoring_myimmune_epimhc2.py: FLAb runner (Spearman/Pearson vs %ADA)
- models/myimmune_epimhc2_README.md: method summary and access instructions
- score/myimmune_epimhc2_v10_{seq,clin}/: per-antibody scores, correlations, plots
  for immunogenicity/Prihoda2021_mAb_immunogenicity (N = 217)

Results on Prihoda2021_mAb_immunogenicity (zero-shot, no per-dataset fitting):

  myimmune_epimhc2_v10_clin: Pearson r = 0.5233, Spearman rho = 0.4312
  myimmune_epimhc2_v10_seq:  Pearson r = 0.4838, Spearman rho = 0.4194

On this dataset _clin is the highest of the 13 methods scored in this repository
on both coefficients (next highest: progen/small r = 0.4799).

No model weights, architectures, or checkpoints are included: this is an API
client only. The endpoint is access-controlled and no default URL is published;
MYIMMUNE_EPIMHC2_URL and MYIMMUNE_API_KEY must be set by the caller.

Co-Authored-By: Claude Opus 5 <[email protected]>
@ayansengupta-myimmune
ayansengupta-myimmune marked this pull request as draft October 31, 2026 03:26
@ayansengupta-myimmune
ayansengupta-myimmune marked this pull request as ready for review October 31, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants