Abstract
Phosphorylated peptides presented by human leukocyte antigen (HLA) class II molecules play pivotal roles in immune regulation, yet their characterization and prediction remain challenging due to data noise and limited HLA coverage. Here, we introduce NetMHCIIphosPan, a prediction method for HLA-II antigen presentation of phosphorylated peptides, developed using mass spectrometry (MS)-based immunopeptidomics data sets. Employing a refined peptide identification workflow, we reanalyzed earlier HLA-II phospholigand data sets and trained predictive models, achieving superior performance compared to models trained on the original data. Binding motif analysis revealed that HLA-specific preferences for phospholigands closely aligned with those of unmodified ligands. Incorporating unmodified ligands into training further enhanced predictive accuracy, particularly for HLA-DP and HLA-DQ molecules. NetMHCIIphosPan outperformed existing tools, such as NetMHCIIpan-4.3 and MixMHC2pred-1.3, for prediction of HLA antigen presentation of phosphorylated peptides, demonstrating robustness and utility. This work establishes NetMHCIIphosPan as a state-of-the-art tool for understanding the HLA-II phospholigandome, with potential applications in immunotherapy and vaccine design.
Keywords: HLA class II, antigen presentation, phosphorylation, post-translational modification, immunopeptidomics, machine learning, neural networks, predictive methods, immunoinformatics
Graphical Abstract

INTRODUCTION
Major histocompatibility complex (MHC) class II molecules, also known as human leukocyte antigen (HLA) class II in humans, play a central role in the adaptive immune response by presenting peptides to CD4+ T cells. These are heterodimers consisting of α and β chains, with high polymorphism in the β chain only for HLA-DR and in both chains for HLA-DQ and HLA-DP. HLA class II ligands can originate from both exogenous and intracellular proteins processed by the endocytic pathway.1 This, combined with the locus diversity, allows HLA class II molecules to present a broad range of peptides, which is crucial for initiating immune responses and maintaining immune tolerance.
Historically, research on HLA class II antigen presentation has been focused primarily on HLA-DR molecules, given their higher expression2 and established associations with autoimmune diseases.3 However, recent advancements in immunopeptidomics and machine learning (ML) have led to an increased understanding of the peptide repertoires presented by all HLA class II loci. These advances include a transformed view of the contribution of HLA-DRB3/4/5 molecules to the overall HLA-DR immunopeptidome,4 improved predictive accuracy and allele coverage for HLA-DQ and DP loci5,6 and confirmation of α and β chain-pairing rules that limit the diversity of HLA-DQ heterodimers.5 Furthermore, motif deconvolution methods have identified an inverted peptide binding mode, primarily restricted to HLA-DP heterodimers formed by specific HLA-DPA1 molecules.6 Building on these findings, pan-specific prediction tools such as NetMHCIIpan-4.3 have been developed6,7 offering a close to complete understanding of the rules defining HLA class II antigen presentation of unmodified peptides, significantly improving the ability to deconvolute complex immunopeptidomes.
However, post-translational modifications (PTM) play a key role in defining the function of proteins because they regulate activity, localization, and protein–protein interactions. Phosphorylation, a ubiquitous PTM, is known to influence protein structure and regulate protein function.8 Yet its role in contributing to the HLA-II immunopeptidome is not fully understood. Earlier studies in mice have shown that CD4+ T cells respond differently to phosphorylated and nonphosphorylated rabies virus antigens9,10 as well as lupus autoantigens11 in lymphocyte proliferation assays. A few years later, Meyer et al.12 and Depontieu et al.13,14 directly identified natural MHC class II phospholigands via tandem mass spectrometry (MS2), demonstrating that these modified peptides can indeed be processed and presented. Depontieu et al.14 also showed that human CD4+ T cells can distinguish phosphorylated residues using cells raised against the melanoma antigen mutant B-Raf and its phosphorylated counterpart. Additionally, in the same study, the authors found that the phospho-MART-1 antigen, isolated from two melanoma cell lines and identified via MS2, was specifically recognized by CD4+ T cells in the context of its cognate HLA-DRB1 molecule.
While there is increasing evidence of the relevance of phosphorylated ligands in immune responses, their identification remains technically challenging. As stated above, the main source of data currently applied for characterizing and learning the rules of HLA antigen presentation is immunopeptidomics (reviewed for instance in15). In short, a conventional immunopeptidomics pipeline consists of cell lysis, MHC-specific immunoprecipitation combined with liquid chromatography coupled to high-resolution tandem mass spectrometry followed by peptide identification by spectral annotation using software such as MaxQuant,16,17 MSFragger18 and PEAKS.19 While these experimental pipelines have been greatly optimized and improved over the last decades, they have not been specifically adapted for stabilization and identification of post-translational modifications, making their application for the identification of MHC phospholigands particularly complicated. This, first and foremost, is due to the relatively low abundance of post-translationally modified peptides, and the fact that conventional enrichment techniques such as metal-affinity chromatography20,21 or titanium dioxide-based affinity chromatography22 are not commonly used in immunopeptidomics workflows which negatively impact the phosphopeptide yield. Second, peptide ionization and fragmentation techniques are not specifically optimized for detecting MHC phospholigands. Third, in addition to the already computationally demanding task of annotating MHC ligands from MS2 spectra, identifying the precise phosphorylation sites introduces an additional layer of complexity. This challenge arises from the existence of positional isomers: modified peptides that share the same molecular formula but differ in structure depending on which amino acid (serine, threonine, or tyrosine) is phosphorylated.23
These issues result in a very low data yield and quality when analyzing conventional MS-immunopeptidomics data sets for the presence of phosphorylated peptides. This is for instance illustrated in the earlier work by Solleder et al.24, in which the authors reanalyzed a larger set of MS-immunopeptidomics data sets using the MaxQuant spectral annotation software for the presence of phosphorylated ligands and found on average ~100 peptides per sample (which is typically 10–50 times lower when compared to the identification of unmodified peptides25). Moreover, seeking to train a prediction model on these data, the authors concluded that close to half of these observed peptides may consist of co-eluted contaminants or incorrectly identified peptides.
Given these limitations, we propose that novel workflows and advanced computational algorithms are needed for accurate identification and training of methods for prediction of MHC class II antigen presented phospholigands. To illustrate this, we defined a workflow refined for optimal PTM recovery, and used this to reanalyze the raw MS data sets from Solleder et al.24 Our results show that our workflow recovered a higher quantity and quality of HLA-II phospholigands, compared to that of the earlier work of Solleder et al. underscoring the need for specialized immunopeptidome-specific workflows for accurate data acquisition. Given this, these data sets combined with others, likewise generated by reanalyzing MS-immunopeptidomics spectral data sets using our workflow, were used to train a ML model, termed NetMHCIIphosPan, which outperforms all prior state-of-the-art methods. This model fills a critical gap in existing prediction tools, such as NetMHCIIpan-4.3, which do not account for PTMs in their predictions, offering insights into the impact of phosphorylation on antigen presentation, which could be highly relevant in the context of autoimmune diseases, infections, and cancer.
MATERIALS AND METHODS
HLA-II MS Data Sets
In this study, we employed HLA class II (HLA-II) phospholigands derived from various MS-based immunopeptidomics experiments. The PEAKS DeepNovo Peptidome, version 11.5 (Bioinformatics Solutions, Waterloo, Canada), hereafter referred to as PEAKS, was used to search the raw MS data. In the final list of identified peptides, only peptides found by database search were included in the study. That is, peptides identified by homology search (peptides with mutations) or de novo sequencing were excluded.
Raw MS data from 20 single-allelic (SA) cell lines from Abelin et al.26 and 23 multiallelic (MA) cell lines from Racle et al.25 were used in this search. Sequential HLA purification experiments were performed on 12 of the 23 multiallelic cell lines, first with an HLA-DR monoclonal antibody (termed “Racle_DR” cell lines) and then with a pan-HLA-II antibody (termed “Racle” cell lines), yielding different subsets of ligands. Of the remaining, 10 multiallelic cell lines were only processed with a pan-HLA-II antibody, and one was only processed with an HLA-DR monoclonal antibody. This resulted in a total of 35 subsets of ligands derived from multiallelic cell lines.
Additionally, we included MS data sets from previous studies by Nilsson et al.,5,6 Kaabinejadian et al.,4 and van Balen and colleagues.27 These data sets that were derived from either genetically engineered single-allelic (SA) or homozygous cell lines included 16 HLA-DQ, 14 HLA-DP, and 11 HLA-DR data sets from which HLA class II was purified using locus-specific monoclonal antibodies, SPVL3, B7/21, and L243, respectively. This allowed us to expand our search to cover the HLA-DP and HLA-DQ as well.
The identified sequences were searched against the Swiss-Prot Homo sapiens (Taxon identifier 9606) database, including 20,395 entries, accessed on 12 May 2021 (https://www.uniprot.org). Precursor mass error tolerance of 10 ppm and fragment mass error tolerance of 0.02 Da were used. The enzyme was set to none and HCD (High-energy collisional dissociation) was selected as the fragmentation method. Variable post-translational modifications (PTM) including acetylation (N-term), deamidation, pyroglutamate formation, oxidation, sodium adducts, phosphorylation (STY), cysteinylation and citrullination were included in the database search. The maximum number of PTMs per peptide was set at 3 and the peptide length was restricted to 7 to 30 amino acids. Identified peptides were further filtered at a false discovery rate (FDR) of 5% using the PEAKS decoy-fusion algorithm, in line with earlier work,24 to allow for an increased peptide yield. Default settings were used for the rest of the parameters including confident amino acid threshold and DeepNovo Score. For data acquired using the Triple-TOF Sciex 5600 instrument,4–6 CID (Collision-induced dissociation) was selected as the fragmentation method, and precursor mass error tolerance was set at 30 ppm. Other parameters remained the same as above, and only peptides found by database search (DB Search) were included in the study.
In addition to the PEAKS analysis, the raw files from the Racle data sets were reanalyzed using FragPipe v23.1, incorporating MSFragger v4.3 and Philosopher v5.1.2.18,28,29 MSFragger searches were performed using the same Swiss-Prot Homo sapiens database (accessed 12 May 2021) to ensure comparability with PEAKS output. Precursor mass tolerance was set to ±10 ppm and fragment mass tolerance to 0.02 Da. The enzyme specificity was set to “nonspecific”. Variable modifications were oxidation (M), phosphorylation (STY), cysteinylation (C), and protein N-terminal acetylation, with a maximum of 2 variable modifications per peptide. Peptide lengths were restricted to 7 to 30 amino acids. Identified peptides were filtered with sequential 1% FDR at PSM- and protein-levels using Philosopher’s implementation of PeptideProphet. MS1-level peptide quantification was performed using IonQuant,30 with default label-free quantification (LFQ) settings, including MaxLFQ, match-between-runs (MBR), and intensity normalization across runs. To ensure methodological consistency and enable a fair comparison with FragPipe, we conducted a second PEAKS search using the same search parameters.
All identified phosphopeptide sequences of length 12–21 amino acids are listed in Supplementary Table S1.
Training Data Sets
For all trained methods, negative data were generated as random natural phosphopeptides sampled for each phospholigand data set, covering the same peptide length range as the latter, but with equal numbers of random peptides for each peptide length. More precisely, this number of random peptides was set to five times the number of ligands for the most prevalent peptide length. In this manner, the algorithm can learn the difference in peptide length preferences for ligands, as described before.31,32 The random phosphopeptides were sampled from the human phosphoproteome downloaded from PhosphoSitePlus,33 a comprehensive MS database of post-translational modifications (PTMs).
Several methods were trained on different data sets. Models M1, M2 (and its variants M2′ and M2″) were trained on the original data from Solleder et al.24 Model M3 was trained on the same original MS data reanalyzed using the workflow defined here. Models M4-M6 were trained using an extended data set, expanding the data set from M3 with phospholigands obtained from earlier MS studies (Saghar_DR/DP/DQ4–6 and PvanBalen_DP27) reanalyzed using the workflow defined here. M4 was trained using only the extended phospholigand data set. For M5 and M6, the training data was extended by unmodified MS eluted ligands derived from human cell lines or alleles, also from the NetMHCIIpan-4.3 training data set. These data sets consist of single-allelic (SA) cell lines (101,449 peptides from 70 human cell lines covering 52 HLA-II alleles) and multi-allelic (MA) cell lines (44,956 peptides from 37 human cell lines covering 52 HLA-II alleles). For all models, a set of unmodified peptide binding affinity (BA) data extracted from the training data set of the NetMHCIIpan-4.3 method (125,985 peptides covering 72 HLA alleles) was included in the training data. For the models M5 and M6, phospholigands and random natural phosphopeptides were upscaled (i.e., duplicated) 10 times when incorporating them into the training data set.
Data Partitioning
As described below, models were trained and evaluated using 5-fold cross-validation. Before generating the five training data partitions, phosphosites represented as “sty” (where “s” stands for pS, “t” for pT, and “y” for pY) were translated into their corresponding uppercase “STY” amino acids. Next, a common motif algorithm, inspired by the original Hobohm 1 algorithm, was used to cluster peptides sharing any identical 9-mer subsequences.34 This ensures that nested peptides (ignoring phosphosites) are placed in the same partition. After partitioning, the phosphosites were back-translated to “sty”. The final training data set is available at https://services.healthtech.dtu.dk/services/NetMHCIIphosPan-1.0/, “Supplementary material” tab.
Model Training
Models were trained using a 5-fold cross-validation scheme, employing the NNAlign_MA algorithm.35 The model architecture was set to 40 and 60 hidden neurons, and each architecture was trained with 10 random weight initializations per cross-validation fold, resulting in a final ensemble consisting of 100 (5 × 2 × 10) network models. All models were trained using backpropagation with stochastic gradient descent, for 400 epochs, without early stopping, and a fixed learning rate of 0.05. Peptides were represented using sparse sequence encoding with an extended amino acid alphabet: ARNDCQEGHILKMFPSTWYVsty, where “sty” represents the phosphorylated amino acids pS, pT, and pY as described above. The motif length, or binding core, was set to 9 amino acids. Only SA data was included in the training for a burn-in period of 30 epochs, followed by training cycles including both SA and MA data. During the first 10 training iterations, only ILVMFYWRKsty amino acids were allowed at position 1 of the binding core. Models were trained including peptide flanking region (PFR) amino acid composition encoding, PFR length encoding, and peptide length encoding as described earlier.32 If required, models were trained allowing for peptide inversion as described in ref 6.
Independent Benchmark Data Sets
External phospholigand data sets were gathered to benchmark the NetMHCIIphosPan method against other state-of-the-art tools, such as MixMHC2pred-1.3.24 Two distinct class II immunopeptidomics data sets were selected, both acquired in the laboratory of Nicola Ternette. The first data set consisted of unpublished data generated on Orbitrap Fusion Lumos Tribrid Mass Spectrometer from fresh frozen tissue surgically resected from 14 subjects diagnosed with esophageal adenocarcinoma (EAC), tissue consisting of both tumor and normal adjacent esophagus and stomach. The second data set consisted of previously published class II immunopeptidomes data from monocyte-derived dendritic cells (MDDCs) generated on a Q-Exactive HF-X Hybrid Mass Spectrometer from 5 HLA-DRB1-heterozygous healthy blood donors.36 Here, each donor MDDC was pulsed with a recombinant SARS-CoV-2 S protein vaccine immunogen candidate. Both tissue and MDDC class II immunopeptidomes were generated using the anti-HLA-DR monoclonal antibody (L243). In the case of the “Esophageal tumor” data set, the HLA typing only covers DRB1 alleles (and HLA-DQ alleles, though these were not employed for making predictions). For these data sets, DRB3/4/5 alleles were inferred with the HLAAssoc-1.0 tool.37 Regarding the “Spike” data set, full HLA typing is available for these samples.
Preparation of Peptides from Tissues and Cells
Tissues were placed in a lysis buffer (0.5% (v/v) IGEPAL 630, 50 mM Tris pH 8.0, 150 mM NaCl, and 1 tablet complete Protease Inhibitor Cocktail EDTA-free (Roche) per 10 mL buffer) in bead beater tubes for soft tissues (Precellys Evolution, Bertin Technologies, France), bead beating was performed with 5 cycles at 7200 rpm for 20 s, separated by 20 s pauses followed by mixing for 30 min at 4 °C to obtain complete lysis. Lysates were cleared by centrifugation initially at 500 × g for 10 min and supernatants were removed and centrifuged at 21,000 × g for 45 min at 4 °C to complete clarification. Peptide-HLA complexes were immunoprecipitated with L243 mAb cross-linked protein G sepharose beads at 4 °C overnight. The resin was washed consecutively in Tris buffer 50 mM, pH 8.0 containing 150 mM NaCl, 5 mM EDTA; 150 mM NaCl; 450 mM NaCl; no addition. Peptides were eluted twice with 500 μL 10% acetic acid and dried in a speed vac before cleanup by HPLC as described in ref 36.
LC-MS Data Acquisition
The SARS-CoV-2 data set was generated as described,36 using an Ultimate 3000 RSLC nano system (Thermo Scientific) coupled to a Q-Exactive HF-X Hybrid Mass Spectrometer (Thermo Fisher Scientific). For the EAC tissue, purified peptides were initially trapped and separated; spectra were acquired using an Ultimate 3000 RSLC nano system (Thermo Scientific) coupled to an Orbitrap Fusion Tribrid Mass Spectrometer (Thermo Fisher Scientific) with a nanoelectrospray ion source. Separation was achieved on a PepMap C18 EASY-Spray column (3 μm particle size, 75 μm × 50 cm) (Thermo Scientific) in buffer A (0.1% formic acid) using a linear gradient of 2%–35% buffer B (acetonitrile and 0.1% formic acid) at a flow rate of 300 nL/min over 60 min. The ion transfer tube temperature was 305 °C and full MS spectra were acquired (300 to 1500 m/z) in the Orbitrap at 120,000 resolution with an automatic gain control (AGC) target of 40,000. Precursors were isolated using an isolation width of 1.2 amu and MS2 scans were acquired at maximal speed (120 ms with an AGC target of 300,000). Higher-energy collisional dissociation (HCD) with NCE of 28 was used to fragment peptides with a charge state of 2–4, for singly charged peptides NCE of 32 was applied with a lower priority in the decision tree. Fragments were analyzed in the Orbitrap at 30,000 resolution.
Phosphopeptide Data Analysis and Benchmark Data Set Generation
Both data sets were analyzed with the PEAKS DeepNovo Peptidome 11.5 platform, applying the same search parameters and settings mentioned before for the training data sets (refer to the section entitled “HLA-II MS Data Sets”). The list of identified peptide sequences can be found in Supplementary Table S2.
As all external evaluation data originated from MS-based experiments, each data set was enriched with random natural phosphopeptides in the same manner as for the training data. For the independent “Esophageal tumor” data set, normal and tumor samples from each subject were combined into a single data set. Only data sets with at least 10 positives were retained, resulting in a benchmark comprising 2058 phospholigands (available at https://services.healthtech.dtu.dk/services/NetMHCIIphosPan-1.0/, “Supplementary material” tab).
Performance Evaluation
When assessing the performance of NetMHCIIpan-4.3 on our method’s training data set and when evaluating the performance of NetMHCIIpan-4.3 and the method developed here on the external data sets, the following strategy was employed.
For NetMHCIIpan-4.3, which was trained exclusively on unmodified ligands, three “phospho-equivalent” data sets were generated: (1) phosphosites were replaced with glutamic acid (“E”) due to its similar charge, (2) phosphosites were substituted with amino acids of similar charge (pS → D, pT → E, pY → Y) (“DEY”), or (3) phosphosites were reverted to their unmodified forms (“STY”). Next, the overlap between the corresponding “phospho-equivalent” data set and the NetMHCIIpan-4.3 training data set was computed using the common motif algorithm.34 For peptides with a 9-mer overlap with peptides placed in a given NetMHCIIpan-4.3 training partition, predictions were made using the neural network ensemble that was not trained on that specific partition (NetMHCIIpan-4.3 was trained using a 5-fold cross-validation scheme, which implies that 20 out of the total 100 networks were used to make predictions). If no overlap was found, a random neural network ensemble (also consisting of 20 networks) was selected for predictions.
To evaluate our method, which was trained on both unmodified and phosphopeptides, phosphopeptides in the external data sets were converted from “sty” to “STY”. Then, the same evaluation procedure described before was followed: predictions were generated using the neural network ensemble trained on orthogonal data (as defined in the “converted” peptide space) to the evaluation data to prevent artificially inflated performance values.
Performance Metrics
The model’s ability to distinguish ligands from random peptides was assessed using four performance metrics: the ROC-AUC (Area Under the Receiver Operating Characteristic Curve), the ROC-AUC0.1 (ROC-AUC integrated up to a False Positive Rate of 10%), the PR-AUC (Area Under the Precision-Recall Curve), and PPV (Positive Predictive Value). Note that ROC-AUC0.1 values were not normalized using the McClish standardization; therefore, a random performance for this metric does not correspond to 0.5. The PPV was computed as the proportion of true positives among the top N ranked peptides, where N corresponds to the number of ligands (positive instances) for a given HLA or cell line. In 5-fold cross-validation, the data was partitioned into five subsets. For each fold, models were trained on four-fifths of the data and evaluated on the remaining one-fifth, which served as the test set. This procedure was repeated five times, with each subset used once as the test fold. The resulting five subsets of test predictions, which together covered the entire data set were concatenated, and all performance metrics were computed on the combined set of “raw” prediction scores. For the independent benchmark, a similar approach was applied. For each peptide, models from a single training fold identified from a 9-mer overlap (with phosphosites being translated into their corresponding uppercase “STY” amino acids) to the training partitions were used for the predictions. In case no overlap was found, models from a random training fold were used. Next, metrics were similarly calculated using “raw” prediction scores generated for each HLA allele or cell line. All metrics were reported only for data sets or cell lines containing at least 10 positive instances.
Statistical Rationale
The corresponding statistical tests employed to compare model performances or other results are described in detail in the legend of each of the figures. In all cases, p-values less than 0.05 are considered to be statistically significant. In Figure 8, pairwise comparisons of model performances were made using one-tailed binomial tests. For each comparison, 10,000 resamples of the entire predicted benchmark data set were generated, allowing for replacement (each subsample should contain at least 1% of the total original positive instances). Next, the p-value for one method outperforming the other was estimated as the fraction of resampled data sets where the other method had superior performance.
Figure 8.

Performance of NetMHCIIphosPan and MixMHC2pred-1.3 methods on two phospholigand external evaluation data sets covering HLA-DR alleles. Performance metrics included are (A) ROC-AUC, (B) ROC-AUC0.1, (C) PPV and (D) PR-AUC. ROC-AUC refers to the area under the Receiver Operating Characteristic curve; ROC-AUC0.1 is the partial AUC integrated up to a FPR of 10%; PR-AUC is the area under the Precision-Recall curve; and PPV (Positive Predictive Value) is calculated as described in Materials and Methods. Performance is evaluated in a per-cell line manner from the concatenated test sets. Metrics were computed for cell lines with at least 10 phospholigands (N = 5 cell lines for “Spike_DR” and N = 11 cell lines for “Esophageal_Tumor_DR”). The center line inside the box indicates the median value of the plotted metric and the box covers the interquartile range. The whiskers extend to, at most, 1.5-fold of the interquartile range. The individual data points in the jitter plots correspond to different cell lines. A one-tailed binomial test was employed for model performance comparison, and p-values were estimated using a bootstrap analysis, for more details refer to Materials and Methods (**** P < 0.0001). Y-axis ranges differ between panels (A) and (B–D).
Data Visualization
Sequence logos were made using the R “ggseqlog” package developed by Wagih et al.38 All the remaining plots in this study were made in R using the “ggplot2” package.
RESULTS
This work introduces NetMHCIIphosPan, an ML-based predictor of HLA class II presentation of phosphorylated peptides. The Results section is organized to reflect the progressive development of this tool. We begin by defining a workflow refined for optimal PTM recovery and show how this workflow results in higher MHC-II phosphopeptidome data quantity and quality compared to that reported in earlier studies.24 We next train predictive models on the generated data and further investigate their consistency and quality. Furthermore, we explore strategies to refine our method, including the incorporation of unmodified ligand data and support for inverted binding mode. Finally, we benchmark the final method against state-of-the-art tools, both in cross-validation and in an independent benchmark to demonstrate its robustness and improved performance.
Data Overview: Improved Phosphopeptide Identification
As a starting point, we extracted the original HLA-II phosphorylated ligand data set employed in Solleder et al.24 In this work, the authors reprocessed high-quality MS samples from Abelin et al.26 and Racle et al.25 using oxidation (M), N-terminal acetylation and phosphorylation (STY) as PTMs in their spectral searches with the MaxQuant software (version 1.5.5.1), and from these HLA-II phospholigandome data characterized the binding motifs for more than 30 HLA-II molecules. A main challenge, described in the work by Solleder et al., concerning this HLA-II phospholigandome data set, is the presence of co-eluted contaminants or incorrectly identified peptides resulting in approximately half of the data being discarded by the authors.
We speculated that a substantial source of the seeming low quality of data generated in the study by Solleder et al. stems from a rather old version of the MaxQuant software used in the study and hypothesized that the issue could at least in part be corrected by using a more recent method for MS spectral annotation. Many such novel tools exist, and we do not intend to suggest an optimal choice. Rather, we simply picked one such tool, PEAKS, for the task given our in-house expertise and experience with its usage. Based on a series of pilot studies, we define a workflow tailored to discover PTM peptides with properties aligning with MHC class II antigen presentation (peptide length distribution and MHC binding potential as defined from models trained on unmodified peptides). Using this workflow, we next reprocessed the raw MS samples from the Solleder et al. study. Further, we included other MS samples in our searches (Saghar_DR/DP/DQ4–6 and PvanBalen_DP27) to expand the allele coverage to better characterize HLA-DP and DQ binding motifs (refer to Materials and Methods for more details on data sets). Using this approach, we were able to increase peptide numbers and HLA coverage of the data in comparison to the original publication. Figure 1 provides an overview of the data sets reprocessed with MaxQuant by Solleder et al. and the same data sets reanalyzed with PEAKS (refer to Supplementary Figure S1A–C for the statistics over the full PEAKS data sets). Overall, the MaxQuant and PEAKS data sets display similar peptide length distributions preserving the peak at 15 amino acids long (Figure 1A), although the former is shifted toward shorter peptide lengths. The peptide length distribution of unmodified HLA-II ligands falls between the distributions of these two data sets. The distribution of phosphosites in the two data sets is pS (55%/50%), pT (34%/36%), and pY (11%/14%) (for MaxQuant/PEAKS data sets, Figure 1B), in line with the proportions of observed phosphosites in human proteins reported in PhosphoSitePlus39 (pS: 58%; pT: 25%; pY: 17%). Most of the phosphorylated ligands (85%/88%) contain only one phosphosite, while a small fraction contain two (13%/11%), and almost none contain three (2%/1%) phosphosites (for MaxQuant/PEAKS data sets, Figure 1C). PEAKS recovers 33%, 246%, and 118% more phosphopeptides for the Abelin, Racle (data generated with pan class II antibody in the immunoprecipitation), and Racle_DR (data generated with a DR-specific class II antibody in the immunoprecipitation) data sets, respectively, in comparison to the original MaxQuant analysis (Figure 1D). Considering these three data sets reanalyzed in common, Abelin, Racle, and Racle_DR, the overlap between phosphopeptides identified by PEAKS and MaxQuant was limited. In the Abelin data set, only 15 phosphopeptides were identified by both tools, corresponding to 2.0% of MaxQuant and 1.0% of PEAKS identifications. For the combined Racle and Racle_DR data sets, 499 overlapping peptides were observed, representing 15.1% of MaxQuant and 4.8% of PEAKS identifications. Across these three data sets, only 3.8% of the total unique identified phosphopeptides overlap between the two approaches. Taking all data sets into account, 19,019 phosphopeptides were identified with the PEAKS software, while 4,632 phosphopeptides were identified with MaxQuant (including only 12 to 21-mers in both cases).
Figure 1.

Overview of the phospholigand data sets identified by MaxQuant and PEAKS software. (A) Phosphopeptide length distribution. In gray, the distribution of unmodified HLA-II ligands lengths from the training data set of the NetMHCIIpan-4.3 method (“UM_NetMHCIIpan”). (B) Phosphorylation type prevalence, considering all phosphosites found in modified peptides. (C) Distribution of the number of phosphosites per modified peptide. (D) Number of phosphopeptides identified in each of the analyzed data sets. Note that the PvanBalen and Saghar data sets were not analyzed using MaxQuant, and MaxQuant values are hence not available for these data sets in (D).
We acknowledge that the comparison is limited by the outdated version of MaxQuant used in the earlier study. We will return to this later in the manuscript, where we include a study using a third state-of-the-art algorithm for immunopeptidome identifications, and here demonstrate a high consistency to the PEAKS results. In summary, these results suggest that using the workflow defined here results in a major increase in peptide yields of identified phospholigands compared to that of earlier workflows.
Enhanced Predictive Models for Phospholigand Binding
Next, to investigate the quality of the data sets and assess to what degree each could lead to an understanding of the HLA-II phospholigandome, models were trained either with the original data from the Solleder et al. study (Abelin, Racle, and Racle_DR data set reanalyzed using MaxQuant) or with data from the same EL data sets reanalyzed using the workflow defined here.
All developed models were trained using the NNAlign_MA machine-learning framework.35 In short, the NNAlign_MA algorithm enables simultaneous training and motif deconvolution of multi-allelic (MA) data, i.e., MS eluted ligands from cell lines expressing multiple HLA-II alleles. This aspect is crucial for this work since a substantial amount of the phosphorylated HLA-II ligands employed in the training of these methods originate from multi-allelic data, which implies they have no predetermined HLA-II allelic restriction. Indeed, this becomes even more relevant for this study as the HLA-II binding preferences of phosphorylated peptides have been very scarcely characterized and may differ from the HLA-II binding motifs described for their unmodified counterparts.
Models were trained using a 5-fold cross-validation scheme. To prepare the training data sets, random negatives were sampled from the human phosphoproteome deposited in PhosphoSitePlus,33 and peptides were grouped using a common motif algorithm, ensuring no 9-mer overlap between partitions34 (for details on Training Data Sets, Data Partitioning or Model Training refer to Materials and Methods). Details related to the number of phospholigands (positive instances), random phosphopeptides (negatives) and the number of cell lines included in the training data set of these models, are given in Supplementary Table S3. For each fold, the model was trained on four-fifths of the data and evaluated on the remaining one-fifth. This process was repeated five times, resulting in five sets of test set predictions that, together, covered the entire data set. These predictions were concatenated, and metrics were computed on the combined set of prediction scores. We report four complementary performance metrics: ROC-AUC, ROC-AUC0.1 which corresponds to ROC-AUC integrated up to a 10% FPR, Precision-Recall AUC (PR-AUC), and Positive Predictive Value (PPV) computed over the top N predictions, where N corresponds to the number of HLA-II ligands for each data set. ROC-AUC0.1 focuses on the high-specificity region of the ROC curve, which is critical when minimizing false positives, while PPV directly quantifies the model’s ability to prioritize true HLA-II ligands among top-ranked predictions, where experimental validation efforts are concentrated. Note that the ROC-AUC0.1 values reported are not normalized and that a random performance for this metric here corresponds to 0.05. Finally, it is relevant to mention that the NNAlign_MA framework requires both eluted ligand (EL) and binding affinity (BA) data to perform training. Therefore, in this case, the phospholigand training data sets were combined with more than 125,000 unmodified peptides measured in BA assays from the training data set of the NetMHCIIpan-4.3 method.
Figure 2 illustrates the 5-fold cross-validation performances of three methods, two of them, M1 and M2, trained with the MaxQuant data sets, and one trained with the PEAKS data sets (M3). For “MaxQuant_w_filter” M2 method, we applied the same filtering strategy as Solleder et al. using MixMHC2pred-2.040 predictions replacing phosphosites by glutamic acid to filter the data and discard potential contaminants or misidentified peptides (%rank >10). Supplementary Figure S2 expands this analysis including the performances of two other methods, trained on the MaxQuant data sets and filtered according to NetMHCIIpan-4.3 predictions.
Figure 2.

5-fold cross-validation performance of the methods trained with phospholigands identified by MaxQuant and PEAKS. M1 refers to the method trained and evaluated on the complete MaxQuant data set, M2 refers to the method trained and evaluated on the MaxQuant data set, prefiltered according to MixMHC2pred-2.0 predictions (% rank ≤10), and M3 refers to the method trained and evaluated on the complete PEAKS data set. Performance metrics included are (A) ROC-AUC, (B) ROC-AUC0.1, (C) PPV and (D) PR-AUC. ROC-AUC refers to the area under the Receiver Operating Characteristic curve; ROC-AUC0.1 is the partial AUC integrated up to a FPR of 10%; PR-AUC is the area under the Precision-Recall curve; and PPV (Positive Predictive Value) is calculated as described in Materials and Methods. Performance is evaluated in a per-data set manner from the concatenated phosphopeptide test sets. (E) Proportion of predicted non-binders (%rank >20) according to each of the methods. The center line inside the box indicates the median value of the plotted metric and the box covers the interquartile range. The whiskers extend to, at most, 1.5-fold of the interquartile range. The individual data points in the jitter plots correspond to different cell lines. Only cell lines with 10 or more positive instances for all trained methods were included in the analysis (N = 31 cell lines). Y-axis ranges differ between panels (A) and (B–D).
We notice that the different methods are trained and evaluated on data sets of varying sizes, which complicates direct comparison. Nonetheless, the results presented in Figure 2 and Supplementary Figure S2 show that, although filtering of potential noise improved the performance of the models trained and evaluated on the MaxQuant data sets, the model trained on the full, unfiltered PEAKS data sets consistently exhibit a superior performance. This enhanced predictive power is also reflected in the overall lower proportion of predicted non-binders (phosphopeptides with %rank >20) within the PEAKS data sets, in relation to the MaxQuant and MaxQuant_w_filter data sets (refer to Figure 2E). This robustness further contributes to the superior performance even in cell lines with very few data points. For instance, the M3 model achieves an average ROC-AUC0.1 of 0.56 on the 10 data sets with the fewest positive examples (average of 130 positive data points per data set), while the M1 model achieves an average ROC-AUC0.1 of only 0.25 on the corresponding 10 data sets with the most positive examples (average of 183 positive data points per data set) (see Supplementary Table S4). This result suggests that the superior performance of the PEAKS-trained model is attributed not only to the increased data quantity but also a higher data quality.
IMPROVED MOTIF CONSISTENCY
We next evaluated the similarity between the HLA-II binding motifs of unmodified and phospholigands, for each of the trained models. For this, we computed position-specific frequency matrices (PSFMs) based on the HLA restriction and predicted 9-mer binding cores obtained in 5-fold cross-validation. Here, peptides with a predicted %rank score greater than 20% were considered potential HLA irrelevant co-immunoprecipitation outliers and were excluded from this motif comparison analysis. Likewise, phosphopeptides lacking phosphosites within the predicted binding core were also discarded. For more details on phosphosite localization within the binding core or peptide flanking regions see subsequent analyses and refer to Supplementary Figure S3. Finally, only HLA-II molecules characterized with more than 30 ligands were included in the analysis. For unmodified peptides, binding cores from the cross-validation predictions from the training of the latest NetMHCIIpan-4.3 method were employed. Subsequently, PCCs (Pearson Correlation Coefficients) were computed between the flattened PSFMs corresponding to HLA-II phospholigand and unmodified ligand binding motifs. It is relevant to note that to enable this comparison of the binding preferences between modified and unmodified peptides, only the 20 unmodified amino acids were included in the estimates of the position frequency matrices (PSFMs).
Figure 3A shows the distribution of PCCs for each of the trained models. An extension of this analysis can be found in Supplementary Figure S4, which includes the results for two other models trained with the MaxQuant data sets and filtered according to NetMHCIIpan-4.3 predictions. In line with the results in Figure 2, the model M1 displays the lowest concordance between HLA-II phospholigand and unmodified ligand binding motifs, followed by the model M2. Finally, the model M3 presents the highest concordance, with a median PCC of 0.82. For this model, the DQ molecules (DQA1*03:01-DQB1*03:02, DQA1*01:01-DQB1*05:01 and DQA1*03:03-DQB1*03:01) presented the lowest PCC values (PCCs < 0.3), sharing a low number of phospholigands assigned during training (N < 70 for all three molecules). After the DQ molecules, the next lowest correlations were observed for three DP molecules (PCCs < 0.6). Together, these results suggest that this model remains challenged in the characterization of the HLA-DP and DQ phospholigand space.
Figure 3.

Concordance between unmodified and phospholigand binding motifs for HLA-II molecules with 30 or more peptides assigned during cross-validation. (A) PSFMs (position-specific frequency matrices) were computed to represent HLA-II binding motifs for unmodified and phosphopeptides, based on cross-validation predictions of the different methods. The three methods included are M1, M2 and M3 described in Figure 2. In the case of phosphopeptides, phosphosites were ignored and frequencies per position were renormalized to sum up to 1. For unmodified peptides, predictions from NetMHCIIpan-4.3 were employed. To compare binding motifs for a given allele, PCCs (Pearson Correlation Coefficients) were calculated between flattened unmodified and phosphopeptide PSFMs. The violin plots show the distribution of PCCs for each of the trained methods (each data point corresponds to a different HLA-II molecule, the diamond indicates the median PCC; above each plot, the analyzed number of HLA-II molecules is noted). (B) Sequence logos for a subset of four selected DRB1 alleles, generated from cross-validation predictions as in (A). The first row corresponds to logos illustrating phospholigand (“PH”, outlined in violet) binding motifs for 4 HLA-II molecules according to the M2 method, while the second row shows the same for the M3 method. The third row shows logos representing unmodified (“UM”, outlined in gray) HLA-II ligand binding motifs according to NetMHCIIpan-4.3. Each logo displays in parentheses the number of peptides employed for its generation. In the case of the M3 and NetMHCIIpan-4.3 methods, logos were constructed by randomly subsampling 200 peptides per allele from the cross-validated test set predictions. Amino acid color coding: basic in blue (RHK), acidic in red (DE), polar in pink (STNQYC), hydrophobic in dark gray (GPLIVAMFW), and phosphosites in violet (STY).
Next, Figure 3B illustrates sequence logos representations of binding motifs for four selected DRB1 alleles. Shannon logos were constructed employing the calculated PSFMs of models M2 and M3. Logos built on the M2 method appear fuzzy for all alleles, with barely defined anchor positions (typically positions 1, 4, 6, and 9) except for position 1. In contrast, logos corresponding to the M3 model appear sharper, with most anchor positions well-defined and in close concordance with the anchor positions observed in unmodified peptide logos of NetMHCIIpan-4.3.
In summary, the results from Figures 2 and 3 extend the conclusions from Figure 1, detailing that not only does the novel pipeline proposed here result in a higher peptide yield compared to earlier studies, but also suggest that the data is of a higher quality. Further, the results demonstrate that the M3 model, in addition to having higher predictive performance, can also infer more coherent HLA-II binding preferences from the training data, congruent with the existing knowledge on how unmodified ligands bind HLA-II molecules.
Integrating Unmodified and Phospholigand Data
In light of these results, and in line with conclusions from earlier work on HLA class I,41 we next investigated whether the predictive performance of the M3 model could be improved by expanding the training set to include unmodified ligands. To achieve this aim, we constructed a new training data set by combining phospholigands with over 140,000 unmodified HLA-II ligands, extracted as a subset of the NetMHCIIpan-4.3 training data set. This combined set also included phospholigands derived from the additional van Balen and Saghar data sets described in Figure 1. To balance the number of unmodified ligands and phospholigands included in the training data set, phospholigands were upscaled by a factor of 10 (refer to Methods for more details). Furthermore, we also allowed for the inverted peptide binding described earlier for unmodified peptides for a subset of HLA-DP molecules.6,40,42 For these molecules, the ligand repertoire has been shown to cluster into two mirror-symmetric motifs, consistent with peptide binding occurring either in the canonical N → C orientation or in a reversed C → N orientation. Supplementary Table S3 details the number of phospholigands, negative phosphopeptides, and cell lines used for model training.
Figure 4A–D shows the 5-fold cross-validation performance of the model M4, trained on phospholigands only, the model M5, trained on phospholigands and unmodified ligands, and the model M6, trained on the same data but including the option for the inverted binding motif. In terms of the ROC-AUC, ROC-AUC0.1, PPV and PR-AUC metrics, the M5 and M6 methods demonstrated close to equal performance and significantly outperformed the M4 method (one-tailed binomial tests, for the ROC-AUC all P < 0.05, and ROC-AUC0.1, PPV and PR-AUC all P < 0.0001). Next, we repeated the analysis to evaluate the similarity between unmodified ligand and phospholigand binding motifs for the studied methods, also based on model cross-validation predictions. As before, only HLA-II molecules with more than 30 assigned ligands were included. The results of this analysis are presented in Figure 4E, comparing the three methods across different loci. For HLA-DR, the distribution of PCC values is highly similar for all three methods. For the HLA-DQ alleles, there is a marked difference between the PCC distributions of the two models trained including unmodified data to the model trained without. Here, the M5 and M6 (including inversions) methods both display a median PCC > 0.77, while for the M4 method this value is 0.60. Finally, for HLA-DP, the M6 model shows higher PCC values compared to the two other methods, with a median PCC of 0.91. Inspecting sequence logos representing phospholigand binding motifs for selected HLA-DP and HLA-DQ molecules (refer to Supplementary Figure S5), it becomes clear that the motifs of the M5 and M6 methods mimic more closely the binding preferences found in the unmodified ligands (in this case represented by the NetMHCIIpan-4.3 logos). In particular, the sequence logos for the two exemplary HLA-DP molecules illustrate that the concordance between unmodified and phosphopeptide binding motifs is maximized for the M6 model, which allows for the inverted peptide binding mode, resulting in the consistent placement of “K” at P1 instead of P9. Supplementary Figure S6A shows that the presence of the inverted binding mode for phospholigands follows the same rules as earlier described for unmodified ligands. That is, this binding mode is almost solely present for HLA-DP molecules, and mainly for molecules sharing the HLA-DPA1*02:02/01 alleles (see Supplementary Figure S6B).
Figure 4.

Improvement of the baseline method trained with phospholigands by adding unmodified ligands to the training data set and allowing for peptide inversion. 5-fold cross-validation performance of the M4 method, trained only with phospholigands (“PH”), the M5 method, trained with both phospholigands and unmodified ligands (“PH+UM”), and the same method, M6, trained with peptide inversion (“PH+UM (w_inv)”; N = 96 cell lines). Performance metrics included are (A) ROC-AUC, (B) ROC-AUC0.1, (C) PPV and (D) PR-AUC. ROC-AUC refers to the area under the Receiver Operating Characteristic curve; ROC-AUC0.1 is the partial AUC integrated up to a FPR of 10%; PR-AUC is the area under the Precision-Recall curve; and PPV (Positive Predictive Value) is calculated as described in Materials and Methods. Performance evaluation, computed over the concatenated phosphopeptide test sets, and plots were made as in Figure 2. One-tailed binomial tests were performed to compare the performance of the methods, with arrowheads indicating the direction of the tests (* P < 0.05, ** P < 0.01, and **** P < 0.0001; ns, not significant). Y-axis ranges differ between panels A and B-D. (E) Concordance between unmodified and phospholigand binding motifs, based on model cross-validation predictions, for HLA-II molecules with 30 or more peptides assigned discriminated by loci. (Plots were made as in Figure 3A; above each plot, the number of analyzed HLA-II molecules is indicated).
In summary, these results demonstrate that the inclusion of the unmodified ligands and the option for the inverted binding mode have aided the deconvolution of complex multiallelic phospholigand data sets, especially enhancing the characterization of HLA-DP and HLA-DQ binding motifs, which contributes to the overall moderate improvement in model performance. Moving forward, the M6 method will be referred to as NetMHCIIphosPan, our method of choice.
Benchmarking against the State-Of-The-Art Method: NetMHCIIpan-4.3
Next, we benchmarked the NetMHCIIphosPan method against its closest predecessor, NetMHCIIpan-4.3. To compare with the earlier developed method, solely trained on unmodified ligands, three “phospho-equivalent” training data sets were generated: (1) phosphosites were replaced with glutamic acid (“E”) due to its similar charge, (2) phosphosites were substituted with amino acids of similar charge (pS → D, pT → E, pY → Y) (“DEY”), or (3) phosphosites were reverted to their unmodified forms (“STY”).
Figure 5 shows that NetMHCIIphosPan significantly (all P < 0.0001) surpassed NetMHCIIpan-4.3, evaluated over the different “phospho-equivalent” data sets across all metrics (for performance evaluation details refer to Methods section).
Figure 5.

5-fold cross-validation performance of NetMHCIIphosPan and NetMHCIIpan-4.3 on training data set phospholigands. Performance metrics included are (A) ROC-AUC, (B) ROC-AUC0.1, (C) PPV and (D) PR-AUC. ROC-AUC refers to the area under the Receiver Operating Characteristic curve; ROC-AUC0.1 is the partial AUC integrated up to a FPR of 10%; PR-AUC is the area under the Precision-Recall curve; and PPV (Positive Predictive Value) is calculated as described in Materials and Methods. Performance is evaluated in a per-data set manner from the concatenated test sets (N = 96 cell lines, for details see Materials and Methods). The center line inside the box indicates the median value of the plotted metric and the box covers the interquartile range. The whiskers extend to, at most, 1.5-fold of the interquartile range. The individual data points in the jitter plots correspond to different cell lines. One-tailed binomial tests were performed to compare the performance of the NetMHCIIphosPan method against the NetMHCIIpan-4.3 method (different “phospho-equivalent” data sets) (**** P < 0.0001). Y-axis ranges differ between panels (A) and (B–D).
Concordance between Unmodified and Phosphorylated Peptide Binding Motifs
Following, we assessed if the allele-specific binding motif preferences captured by NetMHCIIphosPan aligned with the motifs present in the training data. This analysis is essential to assess to what degree the model has learned the underlying motifs. Here, we compared logos for the 25 HLA-II molecules with the highest number of assigned phospholigands during training constructed either from the 5-fold cross-validation NetMHCIIphosPan predictions (excluding phospholigands with predicted %rank >5 and without phosphosites within the binding core in order to focus the analysis on peptides with very high antigen presentation likelihood only) or from the top 200 (0.1%) NetMHCIIphosPan predictions from a set of 200,000 random phosphopeptides (refer to NetMHCIIphosPan logos in Supplementary Figure S7). As before, we evaluated the pairwise similarity between unmodified and phospholigand logos for each individual HLA-II molecule by computing the Pearson correlation coefficient (PCC) between their corresponding flattened PSFMs. Supplementary Figure S8 shows the distribution of PCCs, with a median value of 0.90, confirming that the motifs captured by the model to a high degree align with the one found in the phospholigands training data sets.
Subsequently, we created sequence logos and visually compared the phospholigand HLA-II binding motifs learned by our method with the corresponding NetMHCIIpan-4.3 motifs for unmodified ligands. To achieve this aim, we, like above, predicted two sets of 200,000 random phospho- and unmodified peptides each and selected the top 200 (0.1%) binders. Figure 6 presents sequence logos for ten alleles selected from the top 25 with the highest number of assigned phospholigands during NetMHCIIphosPan training. Supplementary Figure S7 extends this analysis to include all top 25 HLA-II molecules, as previously described. This analysis again confirms the high concordance between the binding motifs of phosphorylated and unmodified ligands. Focusing on the phospholigand motifs, the logos reveal that phosphosites (shown in violet) are distributed throughout the binding motifs, though they predominantly localize to canonical HLA-II anchor positions.
Figure 6.

Sequence logo representations of HLA-II binding preferences for unmodified and phosphorylated peptides. Ten alleles were selected from among the 25 with the highest number of assigned phospholigands during NetMHCIIphosPan training. To construct the motifs two sets of 200,000 phospho- and unmodified peptides each were randomly sampled and predicted with NetMHCIIphosPan and NetMHCIIpan-4.3 respectively. The top 0.1% scoring peptides were used to construct the logos (all peptides had a predicted %rank ≤5, and phosphopeptides without phosphosites in the binding core were excluded). Amino acid color coding: basic in blue (RHK), acidic in red (DE), polar in pink (STNQYC), hydrophobic in dark gray (GPLIVAMFW), and phosphosites in violet (STY).
Insights into Phosphosite Localization Preferences
Given this last observation, we next investigated in more detail if phosphosites shared a specific localization preference within the HLA-II ligands. This was evaluated first within the phospholigand with respect to the NetMHCIIphosPan predicted 9-mer binding core, and second within the predicted binding core with respect to the 9 possible binding positions. For the first analysis, we calculated the relative frequency of appearance of the phosphosite within the binding core or in its corresponding left or right peptide flanking regions (PFRs), averaged across peptides 13 to 17 amino acids long. This peptide length selection covers 69% of total phospholigands (refer to Figure 1A) and was intentionally defined to be symmetric around 15-mers to compute an overall representative mean relative frequency. Taking natural random “non-binding” phosphopeptides (peptides with predicted %rank >20) as a baseline, we observe (see Supplementary Figure S3) that all three categories of phospholigands (%rank: [0,1], (1,5], (5,20]) behave similarly to this baseline, indicating that there is no particular preference with respect to the phosphosite localization between the binding core and PFRs.
Following this, we studied if any of the 9 binding core positions were enriched or depleted in phosphorylated amino acids. HLA-II binding predictions were computed for 200,000 random natural phosphopeptides for HLA molecules with 100 or more phospholigands assigned during model cross-validation (in total 50 HLAs). For each of the selected HLAs, the top 2.5% scoring predictions were taken as binders (top 5000 peptides per HLA), and an equal number of randomly sampled natural phosphopeptides with a predicted % rank >20 were considered non-binders.
Figure 7 shows the log2 ratio between the relative frequency of binders vs non-binders for each of the 9 binding core positions, discriminating by HLA loci/subtype and phosphorylation type. Overall, there are very limited consistent phosphosite enrichment/depletion signals. One exception being a few DRB1 alleles that are suggested to have enriched preference for pY at P1. In terms of depletion, most such observations appear to be located at the conventional class II anchor positions. Key examples of such marked HLA anchor position depletions include both pS and pT at P1 for almost all DRB1, DRB3/4/5, and HLA-DP molecules, and pY at P1 for most HLA-DP molecules, pY at P6 and P9 for DRB1 molecules, pY at P9 for HLA-DP and pY at P6 and P9 for HLA-DQ molecules.
Figure 7.

Phosphosite enrichment/depletion within the NetMHCIIphosPan predicted 9-mer binding core, discriminated by allele (columns) and phosphorylation type (rows). HLA-II binding predictions were computed for 200,000 random natural phosphopeptides for alleles with 100 or more phospholigands assigned during model cross-validation (in total 50). For each of the selected alleles, the top 2.5% scoring predictions were taken as binders, and an equal number of randomly sampled phosphopeptides with a %rank >20 were considered non-binders. The y-axis shows the log2 ratio between the relative frequency of binders vs non-binders for each of the 9 binding core positions. Each data point in the plot corresponds to a different allele and, data points colored in blue indicate an enrichment of binders relative to non-binders (the blue dashed line corresponds to a log2 ratio of 1) whereas data points in red show the opposite, a depletion of binders relative to non-binders (the red dashed line corresponds to a log2 ratio of −1). Supplementary Table S5 includes the computed log2 (Ratio) for each binding core position, HLA-II molecule, and phosphorylation type.
Overall, these observations, together with the HLA binding motif analyses discussed earlier, suggest that phosphosite location is to a high degree aligned with the preferences described for unmodified S/T/Y residues. This is further supported by Supplementary Figure S9, which compares the log2 binder/non-binder ratios derived from random natural phosphopeptides with those obtained from random natural unmodified peptides across all nine core positions, stratified by HLA-II loci and residue type. When considering phosphosite depletion (log2 ratio ≤ −1), a strong concordance with unmodified peptides is observed, with 92% (192/208) of depleted phosphosites matching depleted S/T/Y positions in unmodified peptides, of which 91% (175/192) are located at canonical HLA-II anchor positions (P1, P4, P6, and P9). These results indicate that phosphorylated S/T/Y residues are disfavored at certain anchor positions largely since their unmodified counterparts are themselves not preferred at these same positions. In contrast, among allele–position combinations showing phosphosite enrichment (log2 ratio ≥ 1), only 58% (7/12; with no overlap observed for HLA-DP or HLA-DQ) coincide with core positions enriched for unmodified S/T/Y residues, and all such coincident cases occur at anchor positions. Together, these observations indicate that, within the current prediction framework, the impact of phosphorylation on HLA-II binding is predominantly constrained by the underlying enrichment/depletion patterns defined for the corresponding unmodified residues.
To further examine the impact of phosphorylation on peptide binding, we compared NetMHCIIphosPan cross-validation predictions for phospholigands in the training data and their unmodified counterparts (Supplementary Figure S10). As in the earlier analyses, phospholigands with a predicted %rank >20 were excluded as likely HLA-irrelevant coimmunoprecipitated contaminants. Among phosphopeptides that also appeared in unmodified form in the training data set (10% of total), 95% retained the same predicted binding core, while only 5% were assigned an alternative one. For the remaining 90% without matched unmodified forms, 91% conserved their predicted binding core, and 9% exhibited a core shift. Thus, in the vast majority of phospholigands (91%), the predicted binding core remains conserved upon dephosphorylation, and for this subset, changes in binding likelihood were generally small, as indicated by the narrow distribution of delta %rank values centered around zero (see Supplementary Figure S10). In contrast, phospholigands with a shifted binding core exhibited delta %rank values of larger magnitude, although still modest in most cases. In both groups, a prevalent trend toward increased %rank upon dephosphorylation was observed, reflected by the density shift toward positive values in the delta %rank distributions, indicating that removal of the phosphate group tends to reduce predicted binding likelihood. Focusing on the most relevant subset of phospholigands, those predicted as binders by our method (% rank ≤5), which account for 74% of the training data set (14,046 out of 19,019), only 2.2% exceeded a %rank of 10, and just 0.37% surpassed 20 upon dephosphorylation.
In summary, these results indicate that phosphorylation does not substantially alter either the predicted 9-mer binding core or the binding likelihood, reinforcing our previous observation that phosphosite localization preferences coincide with those of unmodified S/T/Y residues. While dephosphorylation may moderately weaken phosphopeptide–HLA-II interactions in some cases, according to the developed model, the overall impact is limited.
A Comment on Phosphosite Localization Certainty
Our analyses thus far have not accounted for the ambiguity in phosphosite localization, as indicated by the AScore (or Ambiguity Score) parameter computed by PEAKS. A more detailed examination of this aspect is provided in the Supplementary Note. Briefly, in this examination, we observed that model performance does not improve when exclusively trained on high-confidence site data (ligands with AScore >13), suggesting limited sensitivity to localization certainty as annotated by PEAKS. Additionally, attempts to increase the accuracy of phosphosite localization annotation either by using phosphosite prediction tools, such as NetPhosPan43 or PhosphoLingo,44 or by overlapping with public phosphoproteomics databases demonstrated, in all cases, a very limited recovery (i.e., only a small fraction of the observed phosphosites in the identified phospholigands were either predicted to be phosphorylated or matched to entries in the phosphoproteomics databases). In the case of phosphosite predictions, sequence composition analysis revealed biases in phosphosite prediction tools, which tend to favor cytosolic or nuclear kinase motifs. Therefore, these tools are of limited utility for our purposes, as most of the identified HLA-II phospholigands are derived from the endolysosomal pathway (as predicted by DeepLoc-2.045). Together, these findings reveal that current phosphorylation prediction tools and databases are restricted by biases and specific data set characteristics, emphasizing the need for tailored approaches to achieve accurate phosphosite localization assignment.
NetMHCIIphosPan Predictions on Phosphopeptides Identified by FragPipe
To further evaluate the generalizability of NetMHCIIphosPan and investigate the limited overlap between phospholigands identified by PEAKS and MaxQuant, we reanalyzed the Racle and Racle_DR data sets using FragPipe (v23.1, MSFragger v4.3, Philosopher v5.1.2;18,28,29 for more details refer to Methods). These data sets were selected for analysis as they yielded the highest number of phosphopeptide identifications among all samples, as previously shown in Figure 1. We further reran the PEAKS analyses with adjusted search parameters, including a 1% FDR and a reduced number of variable PTMs, to allow for a better comparison between the two analyses (for details refer to Methods). Comparing the sets of unmodified peptides identified by the two methods demonstrates a very high concordance between the two approaches both in terms of peptide yield (242,247 and 261,781 unique peptides identified by PEAKS and FragPipe, respectively) and overlap of 86% (with respect to the minority set; see Supplementary Figure S11A). However, when focusing on the phosphopeptides, the concordance between the two methods is greatly reduced. Here, the overlap is of 29% (with respect to the minority set), and the overall peptide yield is substantially lower when considering FragPipe compared to PEAKS, with 3320 and 5407 unique phosphorylated peptides identified by FragPipe and PEAKS, respectively, see Supplementary Figure S11B. When phosphorylated residues are reverted to their unmodified forms, thereby disregarding both the number of phosphorylations and the exact phosphorylation sites when multiple S/T/Y acceptor sites are present within the same sequence, only a modest increase in overlap is observed (Supplementary Figure S11C).
To further assess the accuracy of the phospholigands identified by the two methods, we stratified the peptides into two subsets: peptides identified by both methods (“overlapping”), or peptides identified only by one of the two methods (“non-overlapping”), and next extracted prediction scores for the peptides using NetMHCIIphosPan. For peptides identified exclusively by FragPipe, predictions were generated as an external evaluation set, since these peptides were not included in model training. For peptides identified by PEAKS, which were used in model training, predictions were obtained through 5-fold cross-validation. As shown in Supplementary Figure S11D, overlapping phosphopeptides displayed consistently high predicted presentation likelihoods, with close to 77% of the peptides scoring at %rank ≤1. Among non-overlapping peptides, both methods display a comparable performance with only 6–8% of the peptides being assigned a rank >20%. In terms of rank values, PEAKS displays a small advantage over FragPipe, with 75% of the peptides being predicted with a rank ≤5%. In comparison, this value is 67% for FragPipe. Returning to the peptides identified using PEAKS with the search criteria applied to extract the training data for NetMHCIIphosPan (among other things relaxed to an FDR of 5% and an increased number of PTMs (refer to Methods and Figure 1)), we show in Supplementary Figure S11E, the distribution of percentile rank values for the two peptide subsets; the subset identified using the search criteria with the FDR of 1%, and the subset only identified using the relaxed settings. The results of this demonstrate a very similar %rank distribution of the two subsets, with less than 5% of the peptides in both data sets being assigned a rank >20%, and more than 80% of the peptides being assigned a rank value less than 5%.
Together these results suggest that despite a rather low concordance between the identified sets of phosphorylated peptides between the FragPipe and PEAKS methods, the HLA binding patterns contained within the different data sets is consistent, allowing a method trained on the PEAKS data to accurately predict peptides identified by FragPipe. Further, the similarities between the percentile rank values for the peptides identified using an FDR of 1% or 5%, supports that the impact of the increased false discovery imposed by the relaxed FDR rate is very minor if at all present.
Benchmarking against Other Earlier Methods: MixMHC2pred-1.3
As a final test, the NetMHCIIphosPan method was benchmarked against MixMHC2pred-1.324 employing an independent immunopeptidome data set of 2058 phospholigands obtained from esophageal adenocarcinoma (EAC) samples (11 cell lines) and monocyte-derived dendritic cells pulsed with a recombinant SARS-CoV-2 Spike protein vaccine candidate (5 cell lines). Note that the overall peptide yield from the EAC samples was poor given their low HLA-II expression (for details on this data set refer to Materials and Methods). As explained before, we evaluated the performance with the ROC-AUC, ROC-AUC0.1, PPV and PR-AUC metrics. Note that the external data sets only cover DRB1 and a few DRB3/4/5 alleles. Also, it is important to stress that, in contrast to NetMHCIIphosPan, MixMHC2pred-1.3 can only make predictions for alleles present in its training data set. To accommodate for this limitation, the benchmark was limited to consider only the HLAs available in MixMHC2pred-1.3. Of note, when evaluating performance using this external benchmark, we ensured no overlap between the training data set of our model (or NetMHCIIpan-4.3) and the independent evaluation data (for more details refer to Materials and Methods). In contrast, MixMHC2pred-1.3 was evaluated without controlling for such overlap, potentially resulting in inflated performance estimates due to data leakage.
Figure 8 presents the benchmark results, showing that NetMHCIIphosPan outperformed MixMHC2pred-1.3 across all metrics for the two external data sets (all P < 0.0001; for performance evaluation details refer to Methods section). Remarkably, performance values for the EAC data set remain low, particularly for ROC-AUC0.1, PR-AUC and PPV, compared to the cross-validation results (Figures 2 and 4), suggesting a lower quality for this data set compared to the training data sets. Supplementary Figure S12 extends the comparison shown in Figure 8 by including prediction results from NetMHCIIpan-4.3, evaluated on three “phospho-equivalent” data sets. Additionally, Supplementary Figure S13 reports prediction performance across the full allele set, excluding MixMHC2pred-1.3, which supports only a limited set of alleles, as previously noted.
The NetMHCIIphosPan method is made available as a web server and stand-alone tool at https://services.healthtech.dtu.dk/services/NetMHCIIphosPan-1.0. The tool has functionality like the other NetMHC-tools and allows for the submission of either phosphopeptides or proteins with annotated phosphosites, making predictions for any HLA class II molecule with a known sequence (for details refer to the web server instructions). The web server implementation returns predictions based on the full ensemble of 100 networks constituting the final NetMHCIIphosPan predictor.
DISCUSSION
This study introduces NetMHCIIphosPan, a novel predictor for phosphorylated peptide binding to HLA class II molecules, developed through a tailored ML framework and an extensive reanalysis of MS-based immunopeptidomics data. By addressing critical challenges such as data quality, and allele coverage in earlier phospholigand data sets, this work significantly advances the characterization of HLA class II phospholigand binding motifs and predictive modeling.
An important aspect of this study is the shift from a model-centric ML approach to a data-centric ML approach. In model-centric ML, the focus is on continuously improving the model itself while keeping the training data fixed. In contrast, data-centric ML focuses on improving the quality of the training data while holding the model architecture constant.46 The initial approach to improve HLA-II phospholigand prediction followed a model-centric strategy, where the NNAlign_MA algorithm was trained using MaxQuant-identified data sets (filtered using prior knowledge of HLA-II unmodified peptide binding). However, this approach yielded suboptimal results due to the deficiencies of the training data described here. This limitation prompted a shift to a data-centric approach, prioritizing improvements in data quality by reprocessing raw MS data sets with a tailored PEAKS workflow. A key observation from this data-centric shift was a superior performance in identifying phosphorylated HLA class II ligands in terms of both peptide quantity and quality. Across data sets, the new workflow recovered 33% to 246% more phosphopeptides.
Using these reannotated data sets, we subsequently developed predictive models using the NNAlign_MA framework. Here, the superior quality of the new data was manifested not only in terms of improved predictive performance metrics, but also in terms of a substantial reduction in the number of peptides classified as HLA-irrelevant contaminants. Investigating the identified HLA binding motifs, the model trained on the novel data further demonstrated superior consistency compared to models built with MaxQuant-identified phosphopeptides. Here, the median Pearson Correlation Coefficient (PCC) between motifs for phosphorylated and unmodified ligands was 0.39 for the M1 and M2 models, compared to 0.82 for the M3 model, highlighting the superior ability of PEAKS-based models to capture binding preferences. While the improved motif concordance is consistent with higher identification quality, we cannot fully exclude the possibility that properties of the PEAKS scoring function may, at least in part, contribute to the observed motif agreement. Because the PEAKS software is proprietary, the extent to which such effects might influence the composition of the identified phospholigand set cannot be directly assessed. More generally, most peptide identification tools are optimized for unmodified peptides. Consequently, phosphopeptide identification relies on search strategies originally developed for unmodified peptides, and it cannot be entirely ruled out that this may introduce certain identification biases. However, as shown here, such potential biases do not appear to be specific to any particular peptide annotation workflow, as phosphopeptides identified by one method could still be accurately predicted using a method trained on phosphopeptides identified by another. In addition, incorporating unmodified ligands into the training data set and allowing peptides to bind in the inverted mode further refined the predictive model, which achieved superior performance values across all metrics (ROC-AUC, ROC-AUC0.1, PPV and PR-AUC) compared to the baseline model. As expected, motif consistency was increased for HLA-DP alleles, from a median PCC of 0.86 to 0.91. For HLA-DQ alleles, the median PCC improved from 0.60 to 0.77, suggesting that the inclusion of unmodified ligands helped to mitigate the limited coverage of the HLA-DQ phospholigand data.
Phosphosite localization analysis revealed nuanced enrichment and depletion patterns across HLA class II molecules. Regarding phosphosite placement relative to the predicted binding core, approximately 20% of phosphosites are found in both the N- and C-terminal flanking regions, in contrast to the findings of Solleder et al., who reported a higher occurrence of phosphosites in the C-terminus.
Within the binding core, we observed clear differences from HLA class I phospholigands, which tend to favor phosphoresidues at P4, particularly for pS.41,47 In this regard, Solleder et al. made two key observations: (1) a predominance of phosphosites at P5 within the binding core, and (2) a low frequency of phosphoresidues at the anchor position P1. Our findings diverge from the first observation, as we did not detect an enrichment of phosphorylated residues at P5. Instead, our analysis did reveal a marked depletion of pS and pT at P1 across most DRB1, DRB3/4/5, and HLA-DP alleles, along with a general tendency for phosphosites to be disfavored at P1 for most alleles and phosphorylation types. However, an exception to this trend is pY and DRB1 alleles, where a small proportion showed an enrichment at P1. Finally, consistent with Solleder et al. we found that the binding motifs of unmodified peptides closely resemble those of phosphopeptides. Our current model predicts that phosphosite location within the binding core is strongly correlated with binding motif preferences for unmodified S/T/Y residues, reinforcing the notion that HLA class II phospholigand motifs are primarily shaped by the inherent binding preferences of unmodified ligands.
As mentioned earlier, a key challenge for annotating phosphopeptides is the identification of the phosphorylation site. To address this, we investigated if phosphosite recovery and thus, localization certainty, could be improved by using prediction tools such as NetPhosPan and PhosphoLingo, or by cross-referencing with public phosphoproteomics data sets. However, our results revealed the limited potential of such approaches, as only a small fraction of the phosphosites identified in our MS spectra coincided with high-scoring predicted sites or reported entries. We suggest that this discrepancy arises from data set-specific characteristics or biases. HLA-II phospholigands predominantly originate from endolysosomal pathway proteins, whereas most phosphosite prediction tools and databases are primarily based on proteins from the cytosol or nucleus. As a result, these tools have limited applicability in our context, highlighting the need for refined approaches to achieve accurate phosphosite localization.
To further assess phosphopeptide identification quality and investigate the limited overlap between the peptides identified using the PEAKS workflow compared to MaxQuant, we reanalyzed the Racle data sets using FragPipe (v23.1). The FragPipe analysis yielded a substantial overall overlap with PEAKS. This overlap was however considerably reduced for phosphorylated peptide identifications compared to the overlap found for unmodified peptides. The vast majority of overlapping phosphopeptides were consistently predicted as strong HLA-II binders by NetMHCIIphosPan. Notably, among nonoverlapping identifications between the two methods, the FragPipe-unique phosphopeptides displayed an HLA binding profile very similar to that of the PEAKS-unique phosphopeptides both containing more than 75% of the peptides with a NetMHCIIphosPan predicted percentile rank score of 5 or less. These results support the high confidence of FragPipe and PEAKS outputs and highlight their reliability in recovering biologically relevant phospholigands. However, the fact that the overlap in the identified phosphopeptide space between the two methods is much reduced compared to that observed for unmodified peptides, suggests that neither method is performing optimally when applied in the context of PTM identification, and that further refinement of the tools is needed. Of note, for the workflow developed here, we used a relaxed FDR threshold of 5% for phosphopeptide identification, which naturally entails a risk of false positive ligand identifications. In principle, phosphopeptides in the 1–5% FDR range could introduce some degree of label noise during model training if they contain a higher fraction of incorrect identifications. However, despite the model being trained on the data set generated using an FDR threshold of 5%, phosphopeptides identified using FDR thresholds of 1% or 5% display very similar predicted binding score distributions. This suggests that, at least when it comes to learning the patterns associated with HLA antigen presentation, the relaxed false discovery rate has very minor impact, if any. It is however essential to underline that the application of such a relaxed FDR might not be recommendable in cases where the workflow is applied for direct antigen discovery.
Beyond identification algorithms, additional sources of bias may also arise from sample preparation conditions. In both the data sets used for model training and the newly generated experiments used for the external data sets, lysis buffers were not systematically supplemented with phosphatase inhibitors. Phosphoproteomics studies consistently recommend supplementing lysis buffers with phosphatase inhibitors to preserve in vivo phosphorylation and prevent rapid dephosphorylation during cell lysis. Consequently, it cannot be excluded that the data sets used here underrepresent labile phosphorylation events and are biased toward phosphorylation sites that remain stable under the applied sample handling conditions. In addition, complementary strategies such as phosphopeptide enrichment of the purified MHC peptide fraction (e.g., IMAC or TiO2-based approaches) could further increase phosphopeptide coverage and improve sensitivity in future studies.
Despite these limitations, benchmarking NetMHCIIphosPan against existing tools, including NetMHCIIpan-4.3 and MixMHC2pred-1.3, demonstrated superior predictive accuracy. Although external benchmarks were limited to DRB1 and some DRB3/4/5 molecules, the results highlight the robustness of NetMHCIIphosPan and suggest opportunities for further validation on expanded data sets covering HLA-DP and HLA-DQ alleles.
Importantly, while these results demonstrate improved predictive modeling of phosphorylated HLA class II ligands, orthogonal biological validation is essential to further substantiate these findings. Future studies incorporating biochemical binding assays, functional T-cell assays, and structural modeling of phosphopeptide–HLA class II complexes will help validate the predicted binding preferences and further refine our understanding of phosphopeptide presentation by HLA class II molecules.
Overall, by integrating data-centric ML principles with comprehensive MS data sets, NetMHCIIphosPan offers a state-of-the-art method for analyzing phosphorylated peptide binding to HLA class II molecules. This work underscores the importance of using high-quality data sets in training predictive modeling and provides new insights into the determinants of phosphorylated peptide presentation, setting the stage for future studies exploring their role in immune recognition, autoimmune diseases, and cancer. Further, we envision that similar approaches combining refined MS peptide identification workflows with tailored machine learning methods could be applied to other PTMs, to cast light on their roles in HLA antigen presentation.
Supplementary Material
ASSOCIATED CONTENT
Supporting Information
The Supporting Information is available free of charge at https://pubs.acs.org/doi/10.1021/acs.jproteome.5c01284.
Figure S1: overview of the MaxQuant- and PEAKS-identified phospholigand data sets; Figure S2: 5-fold cross-validation performance of the methods trained with MaxQuant- and PEAKS-identified phospholigands; Figure S3: phosphosite localization distribution for phospholigands and random phosphopeptides; Figure S4: concordance between unmodified and phospholigand binding motifs for HLA-II molecules; Figure S5: sequence logos for selected HLA-DP and HLA-DQ molecules; Figure S6: fraction of peptides predicted to bind in the inverted mode according to the M6 method; Figure S7: sequence logo representations of HLA-II binding preferences for unmodified and phosphorylated peptides; Figure S8: concordance between NetMHCIIphosPan logos based on random phosphopeptides and cross-validation phospholigands from Figure S7; Figure S9: correlation between the log2 (ratio) for random natural phosphopeptides and unmodified peptides; Figure S10: impact of dephosphorylation on NetMHCIIphosPan-predicted percentile rank scores for HLA-II phospholigands; Figure S11: overlap and NetMHCIIphosPan-predicted HLA-II presentation of phosphopeptides identified by PEAKS and FragPipe in the Racle data sets; Figure S12: performance of NetMHCIIphosPan, NetMHCIIpan-4.3, and MixMHC2pred-1.3 methods on two external evaluation data sets; Figure S13: performance of NetMHCIIphosPan and NetMHCIIpan-4.3 on two external evaluation data sets; Figure S14: NetMHCIIphosPan log10-transformed predicted percentile rank scores for phospholigands across AScore intervals; Figure S15: iceLogos depicting positional fold changes in amino acid frequencies between a set of sequence-centered phosphosites used as the “experimental” set (unambiguous phosphosites, AScore >13) and corresponding “reference” sets; Figure S16: 5-fold cross-validation performance of methods trained on AScore-stratified phospholigand data sets; Figure S17: iceLogos depicting positional fold changes in amino acid frequencies between a set of sequence-centered phosphosites used as the “experimental” set (high-scoring phosphosites, score >0.2) and corresponding “reference” sets (low-scoring phosphosites, score ≤0.2), based on prediction scores; Figure S18: subcellular localization of phospholigand source proteins evaluated as a function of their predicted phosphosite scores (PDF)
Table S1: list of PEAKS-identified phosphopeptides in the training data sets (XLSX)
Table S2: list of PEAKS-identified phosphopeptides in the external benchmark data sets (XLSX)
Table S3: training data set composition for each method presented in this study (XLSX)
Table S4: performance metrics computed for each of the trained methods in this study (XLSX)
Table S5: phosphosite enrichment/depletion within the NetMHCIIphosPan predicted 9-mer binding core (Figure 7) (XLSX)
ACKNOWLEDGMENTS
We thank the Southampton University Hospitals and Oxford University Hospitals for collecting the tumor samples and thank Prof. Xin Lu and Prof. Mark Middleton for providing resources and their support of the research project. A graphical element included in the Table of Contents (TOC) graphic was created with BioRender.com and modified by the authors.
Funding
Research reported in this publication was supported in part by the National Cancer Institute (NCI), under award number U24CA248138, the National Institute of Allergy and Infectious Diseases (NIAID), under award number 75N93019C00001, and the Cancer Research UK Centres Network Accelerator Award grant (C328/A21998).
ABBREVIATIONS
- HLA
Human Leukocyte Antigen
- HLA-II
Human Leukocyte Antigen class II
- MS
Mass Spectrometry
- MHC
Major Histocompatibility Complex
- ML
Machine Learning
- PTM
Post-Translational Modification
- SA
Single-Allele
- MA
Multi-Allele
- BA
Binding Affinity
- EL
Eluted Ligand
- PH
Phosphopeptide
- UM
Unmodified peptide
- FPR
False Positive Rate
- ROC-AUC
Receiver Operating Characteristic—Area Under the Curve
- ROC-AUC0.1
Receiver Operating Characteristic—Area Under the Curve integrated up to a 0.1 FPR
- PPV
Positive Predictive Value
- PR-AUC
Precision-Recall—Area Under the Curve
Footnotes
The authors declare no competing financial interest.
Ethics Statement: Most of the human data used in this study were obtained from the PRIDE database and/or previously published studies that had received appropriate ethical approval and documented informed consent from participants. In addition, the study that generated the “Esophageal tumor” data set, included in the independent benchmark, was conducted in accordance with the Declaration of Helsinki and approved by the South Central–Oxford C Research Ethics Committee (REC reference: 16/SC/0015). The study protocol was registered under protocol number LUD2015–005, with EudraCT number 2015–005298–19 and IRAS project ID 194443. All subjects involved in this study provided written informed consent prior to participation.
Complete contact information is available at: https://pubs.acs.org/10.1021/acs.jproteome.5c01284
Contributor Information
Heli M. Garcia Alvarez, Instituto de Investigaciones Biotecnológicas (IIBIO), Consejo Nacional de Investigaciones Científicas y Técnicas, San Martín, Buenos Aires B1650HMQ, Argentina Escuela de Bio y Nanotecnología (EByN), Universidad Nacional de San Martín, San Martín, Buenos Aires B1650HMQ, Argentina.
Saghar Kaabinejadian, Department of Microbiology and Immunology, University of Oklahoma Health Sciences Center, Oklahoma City, Oklahoma 73104, United States.
Hooman Yari, Department of Microbiology and Immunology, University of Oklahoma Health Sciences Center, Oklahoma City, Oklahoma 73104, United States.
Chloe M. Shepherd, University of Dundee, Dundee DD15EH, Scotland, U.K.
William H. Hildebrand, Department of Microbiology and Immunology, University of Oklahoma Health Sciences Center, Oklahoma City, Oklahoma 73104, United States
Alessandro Sette, Center for Vaccine Innovation, La Jolla Institute for Immunology, La Jolla, California 92037, United States; Department of Medicine, Division of Infectious Diseases and Global Public Health, University of California, San Diego, La Jolla, California 92037, United States.
Bjoern Peters, Center for Vaccine Innovation, La Jolla Institute for Immunology, La Jolla, California 92037, United States; Department of Medicine, Division of Infectious Diseases and Global Public Health, University of California, San Diego, La Jolla, California 92037, United States.
Robert Parker, Nuffield Department of Medicine, University of Oxford, Oxford OX37DQ, U.K..
Nicola Ternette, University of Dundee, Dundee DD15EH, Scotland, U.K.; Nuffield Department of Medicine, University of Oxford, Oxford OX37DQ, U.K.
Morten Nielsen, Department of Health Technology, Technical University of Denmark, Lyngby DK-2800, Denmark.
Data Availability Statement
The MS proteomics data, generated in this study for the external benchmark, have been deposited in the ProteomeXchange Consortium via the PRIDE48 partner repository with the data set identifier PXD060958. Furthermore, the training and evaluation data for NetMHCIIphosPan-1.0 are available on its web server at https://services.healthtech.dtu.dk/services/NetMHCIIphosPan-1.0, “Supplementary material” tab.
REFERENCES
- 1.Unanue ER; Turk V; Neefjes J Variations in MHC Class II Antigen Processing and Presentation in Health and Disease. Annu. Rev. Immunol. 2016, 34, 265–297. [DOI] [PubMed] [Google Scholar]
- 2.Alcaïde-Loridan C; Lennon AM; Bono MR; Barbouche R; Dellagi K; Fellous M Differential Expression of MHC Class II Isotype Chains. Microbes. Infect 1999, 1 (11), 929–934. [DOI] [PubMed] [Google Scholar]
- 3.Arango M-T; Perricone C; Kivity S; Cipriano E; Ceccarelli F; Valesini G; Shoenfeld Y HLA-DRB1 the Notorious Gene in the Mosaic of Autoimmunity. Immunol. Res. 2017, 65 (1), 82–98. [DOI] [PubMed] [Google Scholar]
- 4.Kaabinejadian S; Barra C; Alvarez B; Yari H; Hildebrand WH; Nielsen M Accurate MHC Motif Deconvolution of Immunopeptidomics Data Reveals a Significant Contribution of DRB3, 4 and 5 to the Total DR Immunopeptidome. Front. Immunol. 2022, 13, 835454. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Nilsson JB; Kaabinejadian S; Yari H; Peters B; Barra C; Gragert L; Hildebrand W; Nielsen M Machine Learning Reveals Limited Contribution of Trans-Only Encoded Variants to the HLA-DQ Immunopeptidome. Commun. Biol. 2023, 6 (1), 442. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Nilsson JB; Kaabinejadian S; Yari H; Kester MGD; van Balen P; Hildebrand WH; Nielsen M Accurate Prediction of HLA Class II Antigen Presentation across All Loci Using Tailored Data Acquisition and Refined Machine Learning. Sci. Adv. 2023, 9 (47), No. eadj6367. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Nilsson JB; Nielsen M The Journey towards Complete and Accurate Prediction of HLA Antigen Presentation. ImmunoInformatics 2024, 13, 100032. [Google Scholar]
- 8.Olsen JV; Blagoev B; Gnad F; Macek B; Kumar C; Mortensen P; Mann M Global, in Vivo, and Site-Specific Phosphorylation Dynamics in Signaling Networks. Cell 2006, 127 (3), 635–648. [DOI] [PubMed] [Google Scholar]
- 9.Otvos L; Cappelletto B; Varga I; Wade JD; Xiang ZQ; Kaiser K; Stephens LJ; Ertl HC The Effects of Post-Translational Side-Chain Modifications on the Stimulatory Activity, Serum Stability and Conformation of Synthetic Peptides Carrying T Helper Cell Epitopes. Biochim. Biophys. Acta 1996, 1313 (1), 11–19. [DOI] [PubMed] [Google Scholar]
- 10.Larson JK; Otvos L; Ertl HC Posttranslational Side Chain Modification of a Viral Epitope Results in Diminished Recognition by Specific T Cells. J. Virol. 1992, 66 (7), 3996–4002. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Monneaux F; Lozano JM; Patarroyo ME; Briand J-P; Muller S T Cell Recognition and Therapeutic Effect of a Phosphorylated Synthetic Peptide of the 70K SnRNP Protein Administered in MR/Lpr Mice. Eur. J. Immunol. 2003, 33 (2), 287–296. [DOI] [PubMed] [Google Scholar]
- 12.Meyer VS; Drews O; Günder M; Hennenlotter J; Rammensee H-G; Stevanovic S. Identification of Natural MHC Class II Presented Phosphopeptides and Tumor-Derived MHC Class I Phospholigands. J. Proteome Res. 2009, 8 (7), 3666–3674. [DOI] [PubMed] [Google Scholar]
- 13.Depontieu F; Qian J; Zarling AL; McMiller TL; Shabanowitz J; Hunt DF; Engelhard VH; Topalian SL Tumor-associated MHC II-restricted Phosphopeptides: New Targets for Immune Recognition. FASEB J. 2008, 22, S1. [Google Scholar]
- 14.Depontieu FR; Qian J; Zarling AL; McMiller TL; Salay TM; Norris A; English AM; Shabanowitz J; Engelhard VH; Hunt DF; Topalian SL Identification of Tumor-Associated, MHC Class II-Restricted Phosphopeptides as Targets for Immunotherapy. Proc. Natl. Acad. Sci. U. S. A. 2009, 106 (29), 12073–12078. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Purcell AW; Ramarathinam SH; Ternette N Mass Spectrometry-Based Identification of MHC-Bound Peptides for Immunopeptidomics. Nat. Protoc. 2019, 14 (6), 1687–1707. [DOI] [PubMed] [Google Scholar]
- 16.Cox J; Mann M MaxQuant Enables High Peptide Identification Rates, Individualized p.p.b.-Range Mass Accuracies and Proteome-Wide Protein Quantification. Nat. Biotechnol. 2008, 26 (12), 1367–1372. [DOI] [PubMed] [Google Scholar]
- 17.Cox J; Neuhauser N; Michalski A; Scheltema RA; Olsen JV; Mann M Andromeda: A Peptide Search Engine Integrated into the MaxQuant Environment. J. Proteome Res. 2011, 10 (4), 1794–1805. [DOI] [PubMed] [Google Scholar]
- 18.Kong AT; Leprevost FV; Avtonomov DM; Mellacheruvu D; Nesvizhskii AI MSFragger: Ultrafast and Comprehensive Peptide Identification in Mass Spectrometry-Based Proteomics. Nat. Methods 2017, 14 (5), 513–520. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Xin L; Qiao R; Chen X; Tran H; Pan S; Rabinoviz S; Bian H; He X; Morse B; Shan B; Li M A Streamlined Platform for Analyzing Tera-Scale DDA and DIA Mass Spectrometry Data Enables Highly Sensitive Immunopeptidomics. Nat. Commun. 2022, 13 (1), 3108. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Andersson L; Porath J Isolation of Phosphoproteins by Immobilized Metal (Fe3+) Affinity Chromatography. Anal. Biochem. 1986, 154 (1), 250–254. [DOI] [PubMed] [Google Scholar]
- 21.Stensballe A; Andersen S; Jensen ON Characterization of Phosphoproteins from Electrophoretic Gels by Nanoscale Fe(III) Affinity Chromatography with off-Line Mass Spectrometry Analysis. Proteomics 2001, 1 (2), 207–222. [DOI] [PubMed] [Google Scholar]
- 22.Pinkse MWH; Uitto PM; Hilhorst MJ; Ooms B; Heck AJR Selective Isolation at the Femtomole Level of Phosphopeptides from Proteolytic Digests Using 2D-NanoLC-ESI-MS/MS and Titanium Oxide Precolumns. Anal. Chem. 2004, 76 (14), 3935–3943. [DOI] [PubMed] [Google Scholar]
- 23.Joyce AW; Searle BC Computational Approaches to Identify Sites of Phosphorylation. Proteomics 2024, 24 (8), No. e2300088. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Solleder M; Racle J; Guillaume P; Coukos G; Bassani-Sternberg M; Gfeller D Deciphering the Landscape of Phosphorylated HLA-II Ligands. iScience 2022, 25 (5), 104215. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Racle J; Michaux J; Rockinger GA; Arnaud M; Bobisse S; Chong C; Guillaume P; Coukos G; Harari A; Jandus C; Bassani-Sternberg M; Gfeller D Robust Prediction of HLA Class II Epitopes by Deep Motif Deconvolution of Immunopeptidomes. Nat. Biotechnol. 2019, 37 (11), 1283–1286. [DOI] [PubMed] [Google Scholar]
- 26.Abelin JG; Harjanto D; Malloy M; Suri P; Colson T; Goulding SP; Creech AL; Serrano LR; Nasir G; Nasrullah Y; et al. Defining HLA-II Ligand Processing and Binding Rules with Mass Spectrometry Enhances Cancer Epitope Prediction. Immunity 2019, 51 (4), 766–779.e17. [DOI] [PubMed] [Google Scholar]
- 27.Laghmouchi A; Kester MGD; Hoogstraten C; Hageman L; de Klerk W; Huisman W; Koster EAS; de Ru AH; van Balen P; Klobuch S; van Veelen PA; Falkenburg JHF; Jedema I Promiscuity of Peptides Presented in HLA-DP Molecules from Different Immunogenicity Groups Is Associated With T-Cell Cross-Reactivity. Front. Immunol. 2022, 13, 831822. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Teo GC; Polasky DA; Yu F; Nesvizhskii AI Fast Deisotoping Algorithm and Its Implementation in the MSFragger Search Engine. J. Proteome Res. 2021, 20 (1), 498–505. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.da Veiga Leprevost F; Haynes SE; Avtonomov DM; Chang H-Y; Shanmugam AK; Mellacheruvu D; Kong AT; Nesvizhskii AI Philosopher: A Versatile Toolkit for Shotgun Proteomics Data Analysis. Nat. Methods 2020, 17 (9), 869–870. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Yu F; Haynes SE; Nesvizhskii AI IonQuant Enables Accurate and Sensitive Label-Free Quantification With FDR-Controlled Match-Between-Runs. Mol. Cell. Proteomics 2021, 20, 100077. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Nielsen M; Connelley T; Ternette N Improved Prediction of Bovine Leucocyte Antigens (BoLA) Presented Ligands by Use of Mass-Spectrometry-Determined Ligand and in Vitro Binding Data. J. Proteome Res. 2018, 17 (1), 559–567. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Barra C; Alvarez B; Paul S; Sette A; Peters B; Andreatta M; Buus S; Nielsen M Footprints of Antigen Processing Boost MHC Class II Natural Ligand Predictions. Genome Med. 2018, 10 (1), 84. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Hornbeck PV; Kornhauser JM; Latham V; Murray B; Nandhikonda V; Nord A; Skrzypek E; Wheeler T; Zhang B; Gnad F 15 Years of PhosphoSitePlus®: Integrating Post-Translationally Modified Sites, Disease Variants and Isoforms. Nucleic Acids Res. 2019, 47 (D1), D433–D441. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Nielsen M; Lundegaard C; Lund O Prediction of MHC Class II Binding Affinity Using SMM-Align, a Novel Stabilization Matrix Alignment Method. BMC Bioinf. 2007, 8 (1), 238. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Alvarez B; Reynisson B; Barra C; Buus S; Ternette N; Connelley T; Andreatta M; Nielsen MN MHC Peptidome Deconvolution for Accurate MHC Binding Motif Characterization and Improved T-Cell Epitope Predictions. Mol. Cell. Proteomics 2019, 18 (12), 2459–2477. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Parker R; Partridge T; Wormald C; Kawahara R; Stalls V; Aggelakopoulou M; Parker J; Powell Doherty R; Ariosa Morejon Y; Lee E; Saunders K; Haynes BF; Acharya P; Thaysen-Andersen M; Borrow P; Ternette N Mapping the SARS-CoV-2 Spike Glycoprotein-Derived Peptidome Presented by HLA Class II on Dendritic Cells. Cell Rep. 2021, 35 (8), 109179. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Pedersen MB; Asmussen SR; Sarfelt FM; Saksager AB; Sackett PW; Nielsen M; Barra C Integration of HLA-DR Linkage Disequilibrium to MHC Class II Predictions. bioRxiv, 2023. [Google Scholar]
- 38.Wagih O Ggseqlogo: A Versatile R Package for Drawing Sequence Logos. Bioinformatics 2017, 33 (22), 3645–3647. [DOI] [PubMed] [Google Scholar]
- 39.Hornbeck PV; Zhang B; Murray B; Kornhauser JM; Latham V; Skrzypek E Mutations, PTMs and Recalibrations. Nucleic Acids Res. 2014, 43 (Database issue), D512–D520. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Racle J; Guillaume P; Schmidt J; Michaux J; Larabi A; Lau K; Perez MAS; Croce G; Genolet R; Coukos G; et al. Machine Learning Predictions of MHC-II Specificities Reveal Alternative Binding Mode of Class II Epitopes. Immunity 2023, 56 (6), 1359–1375.e13. [DOI] [PubMed] [Google Scholar]
- 41.Refsgaard CT; Barra C; Peng X; Ternette N; Nielsen MN Pan-Specific Prediction of MHC Class I Antigen Presentation of Phosphorylated Ligands. ImmunoInformatics 2021, 1–2, 100005. [Google Scholar]
- 42.van Balen P; Kester MGD; de Klerk W; Crivello P; Arrieta-Bolaños E; de Ru AH; Jedema I; Mohammed Y; Heemskerk MHM; Fleischhauer K; van Veelen PA; Falkenburg JHF. Immunopeptidome Analysis of HLA-DPB1 Allelic Variants Reveals New Functional Hierarchies. J. Immunol. 2020, 204 (12), 3273–3282. [DOI] [PubMed] [Google Scholar]
- 43.Fenoy E; Izarzugaza JMG; Jurtz V; Brunak S; Nielsen M A Generic Deep Convolutional Neural Network Framework for Prediction of Receptor-Ligand Interactions-NetPhosPan: Application to Kinase Phosphorylation Prediction. Bioinformatics 2019, 35 (7), 1098–1107. [DOI] [PubMed] [Google Scholar]
- 44.Zuallaert J; Ramasamy P; Bouwmeester R; Callewaert N; Degroeve S A Study on Experimental Bias in Post-Translational Modification Predictors. bioRxiv, 2024. [Google Scholar]
- 45.Thumuluri V; Almagro Armenteros JJ; Johansen AR; Nielsen H; Winther O DeepLoc 2.0: Multi-Label Subcellular Localization Prediction Using Protein Language Models. Nucleic Acids Res. 2022, 50 (W1), W228–W234. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Kumar S; Datta S; Singh V; Singh SK; Sharma R Opportunities and Challenges in Data-Centric AI. IEEE Access 2024, 12, 33173–33189. [Google Scholar]
- 47.Solleder M; Guillaume P; Racle J; Michaux J; Pak HS; Müller M; Coukos G; Bassani-Sternberg M; Gfeller D. Mass Spectrometry Based Immunopeptidomics Leads to Robust Predictions of Phosphorylated HLA Class I Ligands. Mol. Cell. Proteomics 2020, 19 (2), 390–404. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Perez-Riverol Y; Bandla C; Kundu DJ; Kamatchinathan S; Bai J; Hewapathirana S; John NS; Prakash A; Walzer M; Wang S; Vizcaíno JA The PRIDE Database at 20 Years: 2025 Update. Nucleic Acids Res. 2025, 53 (D1), D543–D553. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The MS proteomics data, generated in this study for the external benchmark, have been deposited in the ProteomeXchange Consortium via the PRIDE48 partner repository with the data set identifier PXD060958. Furthermore, the training and evaluation data for NetMHCIIphosPan-1.0 are available on its web server at https://services.healthtech.dtu.dk/services/NetMHCIIphosPan-1.0, “Supplementary material” tab.
