Skip to content

MHCflurry 3.0: mhcseqs integration and retrained models#264

Draft
iskandr wants to merge 2 commits into
masterfrom
v3
Draft

MHCflurry 3.0: mhcseqs integration and retrained models#264
iskandr wants to merge 2 commits into
masterfrom
v3

Conversation

@iskandr

@iskandr iskandr commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

MHCflurry 3.0

Tracking branch for the next major release. See V3_PLAN.md for the full plan.

Key changes

  • Allele sequences: Replace alignment-derived pseudosequences with mhcseqs groove sequences (~26,000 class I alleles vs current 20,252)
  • Training data: Refresh IEDB affinity and mass-spec ligand data
  • Models: Retrain all pan-allele, processing, and presentation models
  • Non-classical: Add HLA-E, F, G, MICA/B where groove data is available

Allele coverage (mhcseqs vs current)

Current (2.2.0) With mhcseqs
Total class I alleles 20,252 26,000+
Human classical (A/B/C) ~17,000 ~19,000
Non-classical (E/F/G/MICA/B) 0 ~800
Non-human species ~3,000 ~6,000+

Dependencies

iskandr added 2 commits March 30, 2026 13:04
Outline for mhcflurry 3.0: switch to mhcseqs for allele sequences,
curate updated training data, retrain models with broader allele coverage.
The original plan was authored before any of the 2.3.0 perf / recipe
/ infra work landed. Rewrite to reflect the actual foundation 3.0
will start from, and resolve the gaps surfaced in PR review.

Major changes:

* New "Foundation: 2.3.0 baseline" section enumerating what 3.0
  inherits as starting infrastructure (layered SHM, recipe
  tightening, --gpu-batched calibrate, calibrate filter, unified
  pipeline, compare_runs harness). 3.0 does not re-derive these.

* Allele-sequences section now quantifies the size implications
  of the three representation options (pseudosequence 34 aa /
  contact subset ~50 aa / full groove ~180 aa) — input tensor
  growth, per-fit memory growth (~5x for full groove), wall-time
  growth. Recommended default: contact subset; ablate vs full
  groove rather than picking blind.

* New "Benchmark plan" section with quantitative thresholds per
  slice (existing alleles vs new human alleles vs non-classical),
  referencing the compare_runs.py / compare_new_vs_public.py
  tooling that landed in 2.3.0.

* New "Compatibility / migration" section covering bundle
  incompatibility, prediction-delta documentation, deprecation
  window for 2.x bundles, and mhcgnomes alias audit.

* Decisions:
  - H2-D*q fix lands in 2.3.0 patch (cheap, isolated, irrelevant
    after 3.0's mhcseqs replaces the source). Removed the
    "Consider..." ambiguity.
  - Class II is explicitly out of scope; reframed for a hypothetical
    4.0 track.
  - Sequencing diagram showing 3.0 branches from tagged 2.3.0;
    3.0 cannot start full training until 2.3.0 is tagged.

* Cleaned up dependency table to reference 2.3.0 (the actual
  foundation) rather than 2.2.0.
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.

1 participant