Cancer3.AIAI in OncologyAI Models › NetMHCpan-4.1
Task-specific model API / hosted only Research use only immunopeptidomics

NetMHCpan-4.1 4.1

The reference pan-allele predictor of MHC class I antigen presentation: one small neural network covers more than 11,000 MHC molecules because the groove itself is part of the input — a 34-residue pseudosequence next to the peptide.

At a glance

DeveloperHealth Tech, Technical University of Denmark (Nielsen lab)
Version4.1
Released2020-05-22
Licencefree for academic use; commercial licence required (DTU)
AvailabilityAPI / hosted only
KindTask-specific model
Regulatory statusResearch use only
Parameterssmall by modern standards — the point of this model is representation, not scale

What it does

Takes a peptide (8–14 aa) and an HLA allele and answers whether that pair will appear on the cell surface. Output is a %Rank — the peptide's position against a background of random natural peptides for that specific allele (0.5% strong binder, 2% weak) — plus the predicted 9-mer binding core and its offset.

Notable uses in oncology

The default first filter in neoantigen pipelines for individualised mRNA cancer vaccines: it narrows thousands of mutated peptides to the few dozen worth testing on the patient's own cells.

Tasks, data types and cancers

CancerPan-cancer
Input9-aa binding core + 34-aa HLA pseudosequence, BLOSUM50-encoded (43 × 20 = 860 numbers) plus length/insertion/deletion features
Outputtwo output neurons: predicted binding affinity and ligand probability; reported as %Rank

Architecture

Familyfeed-forward neural network ensemble (NNAlign_MA)
Backboneone hidden layer of 56 or 66 neurons; ensemble (4.0: 100 networks — 2 architectures × 5 cross-validation splits × 10 seeds)
Parameterssmall by modern standards — the point of this model is representation, not scale
Pre-trainingsupervised on binding affinity + MS-eluted ligands, with motif deconvolution of multi-allelic samples during training

Pseudosequence

  • 34 positions chosen from crystal structures: within 4 Å of the peptide AND polymorphic across alleles. An allele stops being a name and becomes a 34-letter word, which is what makes prediction possible for alleles with zero measurements.

Variable length

  • Everything is reduced to a 9-mer core by searching over insertions and deletions and keeping the best-scoring alignment; the model reports which core it chose.

Two heads, one shared layer

  • Affinity measurements and eluted ligands each have their own output neuron but share the hidden layer, so the wide allele coverage of in-vitro data and the true presentation signal of mass spectrometry train one representation.

MOTIF DECONVOLUTION (NNAlign_MA).

  • After 20 warm-up iterations on single-allele data, each peptide from a multi-allele sample is assigned to the best-scoring allele among the ones that sample actually carries, with score standardisation so a 'generous' allele cannot take everything.

Training data

13,245,212 training data points — but only about 850,000 are laboratory measurements (binding affinities plus MS-eluted ligands). The rest are random natural peptides from UniProt assumed to be negatives, roughly 94% of the set: mass spectrometry never reports true negatives, so they have to be invented.

Training set size~850,000 measured peptides (+ assumed negatives to 13.2M points)
InstitutionsIEDB deposits, published mono-allelic and multi-allelic immunopeptidomics studies
Populations / geographyallele coverage is heavily skewed: HLA-A*02:01 alone is 24.38% of the IEDB benchmark datasets, and 66.24% of class I molecules have six datasets or fewer
Consent / provenance notespublic deposited data; no patient-level identifiers

Linked datasets

Evaluation

Benchmark / datasetMetricValueExternal validationSource
MS-eluted ligand prediction vs NetMHCpan-4.0 PPV / AUC clearly improved (paper) yes Source
true T-cell epitopes vs NetMHCpan-4.0 AUC comparable — consistent gain only for HLA-B and HLA-C yes Source
vaccinia virus epitopes in mice (220 peptides tested experimentally) epitopes recovered in the top 0.04% of predictions over half of the most immunogenic epitopes; 90% required going to 1.3–1.5% of the list yes Source
IEDB automated benchmark, eight years ranking among top methods leading methods statistically indistinguishable yes Source

How to run

Librarystandalone binary / web server (DTU Health Tech)
HardwareCPU; a whole-proteome scan is minutes, not hours
APIhttps://services.healthtech.dtu.dk/services/NetMHCpan-4.1/

Download requires an academic licence form; the binary is not on PyPI or Hugging Face. Read %Rank, not the raw score — and remember %Rank is a rank, not a probability: 0.1% is not ten times more likely to be presented than 1%.

Regulatory status and intended use

Regulatory statusResearch use only
Intended useResearch software for narrowing candidate lists; not a medical device and not a basis for clinical decisions.

Source →

Regulatory status is quoted from the source linked above and can change. Research-use-only models must not be used for clinical decisions.

Limitations and bias

  • Answers presentation, not immunogenicity: a well-presented peptide may still meet no matching T-cell receptor.
  • All negative training examples are assumed, never observed.
  • Inherits mass-spectrometry bias: cysteine-containing peptides are 5–10× under-detected, and solvent conditions alone shifted detected ligands by more than twofold for HLA-A*02 while dropping HLA-A*30 by 25%.
  • Expression is not an input: the model does not know whether the source gene is transcribed in that tumour.
  • Rare alleles (especially HLA-C) are predicted by analogy, and the antibody used to collect data itself prefers some genes.

Sources

  1. Reynisson B et al. NetMHCpan-4.1 and NetMHCIIpan-4.0. Nucleic Acids Res 2020
  2. Jurtz V et al. NetMHCpan-4.0. J Immunol 2017
  3. Nielsen M et al. NetMHCpan (pseudosequence definition). PLoS ONE 2007
  4. Alvarez B et al. NNAlign_MA. Mol Cell Proteomics 2019
  5. cancer3.ai — Trzydzieści cztery litery zamka (explainer)

This page is educational — it is not medical advice and does not replace consultation with an oncologist. Diagnostic and treatment decisions are made solely by specialist physicians.