Release notes and changelog
MHCflurry separates code versions (published on PyPI) from weight
catalogue releases (such as 2.3.0 and 2.2.0; see Downloading and selecting model weights).
Full per-version notes live in the repository’s
release-notes/ directory
and on GitHub Releases.
2.5 series (current)
2.5.21: Adds opt-in prediction-time MHC class-I serotype expansion (
#293) and structuredmhcgnomes-based training curation drop classification (#295): addsexpand_serotype()andexpand_allele_list()inmhcflurry.common,--expand-serotypes/--max-serotype-members/--serotype-pooling(min,mean,max) inmhcflurry predictandpredict-scan(plusexpand_serotypes=Trueandaffinity_poolinginClass1PresentationPredictor), while preserving strict default rejection of ambiguous serotypes with an explicit error hint; replaces legacy string-prefix filtering indownloads-generation/data_curated/curate.pywith categorizedmhcgnomesdrop logging and documents the intentional drop policy for serotype and coarse gene/class training labels. Zero changes to2.3.0weights or default predictions.2.5.20: Completes
100%(12/12alleles,6,501 / 6,501rows) recovery of the previously dropped specific training alleles incurated_training_data(#294): bumps minimum upstream floors tomhcgnomes>=3.102.0(pirl-unc/mhcgnomes#341,#344) and optionalmhcseqs>=2.28.0(pirl-unc/mhcseqs#186), adds curated training-row recovery reporting todownloads-generation/allele_sequences/verify_trained_allele_parity.py, and adds regression coverage intest/test_pseudosequences.py. Zero changes to2.3.0weights or predictions.2.5.19: Simpler everyday documentation and upgraded scientific negative controls in the cross-species whitepaper: adds two plain-English user guides (Interpreting predictions and Scanning proteins and proteomes), moves Predicting on new species and MHC mutants, Training models, Evaluating trained models, and Evaluation of the 2.3.0 weights under Advanced topics, trims Orchestrator architecture from 441 lines to a concise 68-line contributor reference nested (with Resource planning guarantees) under Maintainer workflows, and replaces the single
HLA-A*02:01baseline in Whitepaper: Pan-Vertebrate MHC Class I Generalization and Exploratory Pan-Class Transfer in MHCflurry 2.5 and its 16-figure PDF with 50-allele mismatched real-allele null distributions, 30-groove column-permuted pseudosequences, and within-peptide residue-scrambled positive controls. Zero changes to runtime code,2.3.0weights, or predictions.2.5.18: Documentation clarity and organization pass: links and explains companion packages (
mhcseqs,mhcgnomes,hitlist) on first mention, adds a plain-English glossary table to Whitepaper: Pan-Vertebrate MHC Class I Generalization and Exploratory Pan-Class Transfer in MHCflurry 2.5 and its rebuilt companion PDF, refactors Predicting on new species and MHC mutants into a concise how-to guide without figure duplication, tucks whitepapers, canine audits, and dated studies under Advanced topics → Experiment log and whitepapers (Experiment log and whitepapers) to keep MHCflurry documentation focused on everyday usage, and updates the processing fallback note in Configuration and performance. Zero changes to code,2.3.0weights, or predictions.2.5.17: Publishes the unified MHCflurry 2.5 technical whitepaper (Whitepaper: Pan-Vertebrate MHC Class I Generalization and Exploratory Pan-Class Transfer in MHCflurry 2.5) and its companion typeset vector PDF (
mhcflurry_25x_cross_species_whitepaper.pdf, generated reproducibly viadocs/build_whitepaper_pdf.py) synthesizing all2.5.xcross-species Class I affinity/presentation benchmarks, audited CattleBoLA-I/ DogDLA-88validation, training parity, and exploratory Class I → Class II transfer studies; updates.github/workflows/docker.ymland Running MHCflurry in Docker to publish multi-platformamd64/arm64images automatically toghcr.io/openvax/mhcflurrywhile gating Docker Hub push on credentials (#498,#467). Zero changes to runtime code,2.3.0weights, or predictions.2.5.16: Reliability, streaming, and performance fixes (
#175,#290,#374,#411,#440): adds streaming--chunk-sizetomhcflurry predict-scanto bound peak memory on large FASTA/CSV scans, speeds upFlankingEncodingby~14xvia a direct 256-entry ASCII byte lookup table with bit-identical output, records explicitsamplerand separatecandidate_representationmetadata in processing preparation provenance, enforces current download stanza completeness intest/test_model_catalogue.py, and aligns theworker_poolimplementation note with the shared-memory slot-assignment code. Zero changes to2.3.0weights or predictions.2.5.15: Removes Biopython (
#501): migrates the three remainingBio.SeqIOscripts indownloads-generation/tomhcflurry.fasta.FastaParser, dropsbiopythonfromdownloads-generation/data_references/requirements.txt, syncsrequirements.txtwithpyproject.toml, and adds regression tests. Zero changes to runtime prediction code,2.3.0weights, or predictions.2.5.14: Repository hygiene and experiment-script organization: deletes 7 dead unreferenced one-off campaign scripts and 8 legacy Mount Sinai LSF/TensorFlow
.lsffossils fromdownloads-generation/, quarantines 15 reproducible2.3.0/2.5.0experiment scripts intoscripts/experiments/with an indexed provenanceREADME.md, and fixes stale CLI documentation in script READMEs. Zero changes to runtime code,2.3.0weights, or predictions.2.5.13: Publishes Experiment: Audited Cattle BoLA-I & Dog DLA hitlist Validation (2.5.x) in Experiment log and whitepapers (cross-referenced from DLA evidence and canine evaluation): a three-table
2.3.0training-overlap audit and strictly peptide-disjoint evaluation of21,332flanked CattleBoLA-IMS ligands (PXD008151;0.902–0.960Presentation+FAUROC with ultra-few-shot allele ablations on4–12training rows) plus confirmation that IEDBDLA-88*501:01/508:01MS cohorts are100%in-sample in2.3.0(#490). Also fixes the#471CIclassifycheckout (fetch-depth: 0+filter: blob:nonein.github/workflows/ci.yml) after GitHub Actions’ falsy-0ternary expression was caught live on PR#607. Existing2.3.0weights and predictions are unchanged.2.5.12: CI and GitHub Pages infrastructure modernization (
#471,#359): adds fail-safe change classification (scripts/classify_ci_changes.py) in.github/workflows/ci.ymlso docs/container-only PRs run lint, packaging, and CLI checks in ~2 minutes instead of repeating the 4-Python ML matrix, and migrates.github/workflows/docs.ymloff legacygh-pagesbranch publishing to official GitHub Actions Pages (configure-pages@v6,upload-pages-artifact@v5,deploy-pages@v5) while preservingprevious-versions/and eliminating Node 20 deprecation warnings. Existing2.3.0weights and predictions are unchanged.2.5.11: Codebase cleanup and modularization (
#506,#419, partial#513): splits legacy Keras config/weight loading out ofclass1_neural_network.pyintomhcflurry/keras_model_config.py, breaksfit()andfit_streaming_batches()into standalone-tested phase helpers inmhcflurry/class1_training.py, removes the deprecated dense-vector encoding remnants (FlankingEncoding.vector_encode/encode,EncodableSequences.variable_length_to_fixed_length_vector_encoding, andClass1NeuralNetworkModel(peptide_input_is_indices=False)), and drops the undeclared optionalpyarrowCSV engine fallback in pan-allele training. Verified bit-identical (179/179arrays,max_abs_diff=0.0) against2.5.10across released2.0.0/2.2.0/2.3.0models and deterministic training.2.5.10: CLI UX polish across prediction, downloads, training/selection/calibration, and
pseudosequences(#424–#428): adds--float-formatand documents units onpredict/predict-scan, eliminates duplicated flank columns and inconsistent processing-only scan columns, silences noisy default repr/plan/ unused-key logs, replaces routine user-error tracebacks with one-line CLI errors, fixes train/select/calibrate--helpusage synopses and straySIGUSR1banners, and fixesdownloads --verbose/--quietand subcommand help. Existing2.3.0weights and predictions are unchanged.2.5.9: Adds first-class
mhcgnomes.AccessionedAllelesupport inmhcflurry/common.pyso all2,884sequence-backed non-model vertebrate Class I alleles frommhcseqs 2.14.0(e.g.,TriakisScyllium-UAA*uniprot:O46817,Saha*uniprot:G3V1L5 class I) flow cleanly throughnormalize_allele_name,build_pseudosequences_from_mhcseqs(normalize_alleles=True)(26,156alleles across223canonical vertebrate species with0unparsed rows), andClass1AffinityPredictor; publishes the speculative pan-class Class I → Class II transfer experiment againstNetMHCIIpan-4.3in Experiment 2026-11-25: Speculative pan-class Class I → Class II transfer via mhcseqs IMGT alignments (Experiment log and whitepapers); and bumpsmhcgnomes>=3.87.2/ optionalmhcseqs>=2.14.0. Existing2.3.0weights and predictions are unchanged.2.5.8: Adds the published Experiment log and whitepapers log and full
2.5.xcross-specieshitlist+ IEDB validation experiment report (Experiment 2026-11-25: Cross-species hitlist validation & mhcseqs training parity) with a new 16-cohort groove-specificity & training-parity synthesis figure, and defensively guardsbuild_pseudosequences_from_mhcseqs(normalize_alleles=True)against bare UniProt accessions being misparsed as MHC alleles (pirl-unc/mhcgnomes#306). Existing2.3.0weights and predictions are unchanged.2.5.7: Adds
--lock-existing/lock_existing=Trueto freeze baseline alleles verbatim, switchesdownloads-generation/allele_sequences/GENERATE.shtomhcflurry pseudosequences build --lock-existingwith a hard 0-diff parity gate on all trained alleles (verify_trained_allele_parity.py), adds thehitlistzero-shot Presentation-vs-Affinity validation figures to Predicting on new species and MHC mutants, and bumpsmhcgnomes>=3.79.0/mhcseqs>=2.12.5. Existing2.3.0weights and predictions are unchanged.2.5.6: Fixes
Class1NeuralNetworkbatch normalization & merging (#564,#565),robust_mean(#566), percentile-rank calibration & empty-input prediction (#567–#569,#577),Class1ProcessingModel/predict_sequences/ProcessingProteome(#572,#575,#578), andFastaParser(#579). Existing2.3.0weights and predictions are unchanged.2.5.5: Fixes training-loop,
RandomNegativePeptides,ppv_at_n,compare-models, allele-specific model selection, andpredict/predict-scan/downloadsCLI edge cases (#588–#595). Existing2.3.0weights and predictions are unchanged.2.5.4: Fixes local parallelism, GPU/batch auto-sizing,
torch.compile, and cluster retry bugs (#580–#587), accepts registered custom non-mhcgnomesallele keys inAlleleKeyResolver(#597), and guardsmhcseqs >= 2.12.2fragment statuses (status="short",alpha1_only,alpha2_only,fragment_fallback). Existing2.3.0weights and predictions are unchanged.2.5.3: Fixes
2.5.xregressions (#550–#555), NumPy 2 / Pandas 3 compatibility crashes (#556–#559), and core affinity/processing/presentation bugs (#560–#563,#570,#571,#573,#574,#576). Existing2.3.0weights and predictions are unchanged.2.5.2: Adds a torch-free fast path for
--list-supported-allelesand--list-supported-peptide-lengthsinmhcflurry predictandmhcflurry predict-scan, suppresses duplicateWARNINGlogs whenClass1AffinityPredictorraises underthrow=True(#443), and sets explicit defaulttimeout=60s andmax_retries=3ininstall_download(#462). Existing weights and predictions are unchanged.2.5.1: Migrates
mhcflurry downloads fetchontodatacache>=1.37.0(install_archive/inspect_archive) with pinned2.3.0SHA-256 checksums and byte sizes,--forcerefresh/repair,downloads info --verify, read-only legacy directory preservation, andportable_namessupport for historical POSIX tarballs (#484). Existing weights and predictions are unchanged.2.5.0: Adds
mhcseqs-backed Class I binding-groove pseudosequence extraction (mhcflurry.pseudosequences,Class1AffinityPredictor.add_allele_from_sequence,extend_alleles_from_mhcseqs, andmhcflurry pseudosequences extract|build), delegating tomhcseqs >= 2.9.0IMGT G-DOMAIN alignment with groove-insertion and no-op-mutation diagnostic warnings. Includes zero-shot cross-species validation benchmarks and figures (Predicting on new species and MHC mutants). Existing2.3.0weights and predictions are unchanged.
2.4 series
2.4.1: Documentation navigation cleanup (moves internal training-recipe notes under Maintainer workflows, adds a public API overview to API Documentation, adds this release-notes page, and documents
OPENVAX_DATA_CACHE/OPENVAX_OFFLINEin Configuration and performance), plusdatacache 1.35.0test compatibility.2.4.0: Removes deprecated Keras-era Python API aliases, legacy top-level
mhcflurry.*_commandmodule wrappers, duplicatemhcflurryevaluation shortcuts, and deprecated hyphenated training/selection/calibration console scripts. Keeps2.3.0model weights and predictions unchanged.
2.3 series
2.3.38: Harmonizes the data cache and downloads CLI on
datacache>=1.34.0(OPENVAX_DATA_CACHE,OPENVAX_OFFLINE,mhcflurry downloads dirs,mhcflurry downloads prune, andmhcflurry downloads path --json) while preserving existing legacy cache directories.2.3.0: PyTorch-native rewrite, updated
2.3.0presentation/affinity/processing weights (see Evaluation of the 2.3.0 weights), automatic GPU/CPU workload planning, unifiedmhcflurryCLI, and compact percentile calibration.
Earlier releases
2.2.0 / 2.1.x / 2.0.x: MHCflurry 2.0 pan-allele binding and antigen processing models (weights remain available via
--model-release 2.2.0).