Repository navigation
Proteomics MCP v0.2.0
This is the version cited in the manuscript. It carries the correctness fixes found in the co-author review (#33, #149), and it changes scientific output: scores, annotations and figure values differ from 0.1.x. The manuscript's figures are regenerated with this release. metric_profile = "legacy_v1" in a configuration file scores as 0.1.10 and earlier did, but it does not undo the fixes to how tables are read; see Reproducing the manuscript.
Install or upgrade:
pip install --upgrade proteomics-mcp==0.2.0
# or run it without installing:
uvx proteomics-mcp@0.2.0 --helpBreaking changes
Check these before upgrading a pipeline from 0.1.x:
- Score fields (#51):
xcorrandhyperscoreare now the engines' scores, on a different scale.log10_xcorr,log2_xcorrandlog2_hyperscoreno longer exist under either profile. Underlegacy_v1the 0.1.x variants are renamedxcorr_like,log10_xcorr_like,log2_xcorr_like,hyperscore_likeandlog2_hyperscore_like. Dataset and dashboard columns follow (best_xcorr,xcorr_mean). - Default metric profile
v2(#72, #74, #83): spectral angle, cosine, Pearson, matched-ion counts and explained intensity change for most PSMs. - Casanovo confidence (#157):
- Casanovo's own peptide score (
peptide_scoreorsearch_engine_score[1]) becomes a confidence only for Casanovo 5.x, given with the newcasanovo_versionoption. A 4.x score, or a score without a version, gets no confidence and a warning. - A
log_probscolumn with values above 0 is refused. - A
log_probsvalue of 0 now gives confidence 1, not 0.
- Casanovo's own peptide score (
- Row caps of the inspect tools (#82):
inspect_psm_table(limit=N)andinspect_peptide_table(limit=N)now read the whole table, andlimitsets only the number of preview rows. Use the newmax_rowsto cap the rows read. - Spectrum lookup is strict (#76): a run name that matches no run of a multi-run spectrum table, or a scan number that matches several different spectra, is an error. Before, the first spectrum with that scan number was returned.
mcp>=2.1is required (#164).
Changed (scores)
- XCorr and hyperscore are Comet's and X! Tandem's (#51). Under metric profile
v2,xcorris Comet 2026.01.1's XCorr (presetshigh_resandlow_res) andhyperscoreis X! Tandem 2015.12.15.2's. Both were checked against the engines themselves: 3,128 PSMs reproduce exactly (validation/engine_scores/, #154). Underlegacy_v1the 0.1.x variants remain, renamedxcorr_like,log10_xcorr_like,log2_xcorr_like,hyperscore_likeandlog2_hyperscore_like.log10_xcorr,log2_xcorrandlog2_hyperscoreno longer exist under either profile. - Spectral angle, cosine and Pearson compare every predicted ion (#72). Unmatched ions count with zero observed intensity. Metric profile
v2is now the default. - Predicted-ion cut-off (#83): ions below 0.1% of the strongest predicted ion are not scored (
min_predicted_intensity). - One observed peak explains at most one predicted ion (#74).
- Precursor mass error from the spectrum, for every engine (#179).
precursor_mass_error_*andprecursor_isotope_erroruse the spectrum's precursor m/z, as they already did for de novo results; the engine's own (recalibrated) error is reported separately asengine_precursor_isotope_errorandengine_precursor_mass_error_ppm. MaxQuant PSMs showed about 0 ppm before, because msms.txt'sm/zis the peptide's theoretical m/z. The isotope correction now goes up to +3, as in the supplement's FragPipe search. - Supplied predictions follow the package's own rules, and results record what was scored (#137):
scored_ions,excluded_predicted_ions,metric_nandscoring_settings.
Fixed
- Peptides and masses:
- modification parsing in every adapter (#75);
- MaxQuant fixed modifications (#101);
- Proteome Discoverer Met-loss (#125);
- notation normalised in the generic adapter and in accuracy targets (#124);
- the precursor mass error now includes every modification (#73);
- w-ion masses and C-terminal residues (#79);
- precursor-related ions carry every modification (#174).
- Spectra and joins:
- spectrum lookup never returns another spectrum (#76);
- timsTOF scan numbers and mobility (#95);
- mzML isolation window and injection time (#77);
- one run-matching rule (#142);
- gzipped run names (#126);
- the metadata join reports what it matched (#146);
- USI spectra carry their retention time (#135);
- USI retrieval honours its timeout (#84).
- Adapters and tables:
- Predictions: Koina uses the spectrum's collision energy, or one given per call (#128).
- Histograms count their maximum (#169). Histograms whose range came from the data left out the values at the maximum; the published Figure 4 dashboard plots 98–99 of its 100 PSMs.
- One-sided bin ranges (#175).
bin_numeric_fieldignoredrange_minorrange_maxgiven on its own; either end can now be given alone. - Unexpected errors stay hidden from MCP clients (#164). The package now requires
mcp>=2.1; 2.0.x passed internal error text, such as file paths, to the client. - HTML escaping (#78) and faster peptide summaries (#68).
Added
- Thermo
.rawfiles (#172, PR #181), based on @sviglios's implementation:thermo_raw_to_mzmlandthermo_raw_to_feather(MCP and CLI) run ThermoRawFileParser, installed separately (PMID 31755270), and read its mzML. No Thermo library is bundled; the result records the converter's version and command. - Validation against Comet and X! Tandem (
validation/engine_scores/): BioContainers images pinned by digest, committed inputs and golden output, a one-command rerun, and a weekly workflow. - Isotope-corrected precursor error and per-candidate
warnings. - Tests against independent references (#179): masses against pyteomics, against the engines' reported masses and errors, and scoring invariants.
See CHANGELOG.md for the details of every change.
Reproducing the manuscript
-
Figures: regenerated with this release and MS2PIP 4.1.2 (pinned only in the figure environment, #23), by
scripts/regenerate_figures.py; seeRELEASING.md. Figure 2 becomes:Value 0.1.x 0.2.0 Spectral angle 0.833 0.834 Pearson 0.962 0.960 Matched ions 22/24 18/18 Explained intensity 48.0% 47.1% XCorr (Comet) log2 XCorr variant 18.765 3.336 Hyperscore (X! Tandem) log2 hyperscore variant 5.983 59.5 Fragment abs error 15.822 ppm 2.796 ppm -
Figure 4: rebuilt from the first 100 PSMs in the deposited FragPipe PSM table, retained in source-file order (#42, #47).
-
Zenodo: a new version of the supplement carries the regenerated figures, tables and payloads, the Figure 4 spectra,
CHANGES.mdandPROVENANCE.md. -
The published (0.1.x) values:
metric_profile = "legacy_v1"gives the 0.1.x scores for the same peptidoform, spectrum and prediction. Re-scoring the stored payloads reproduces the published values, with XCorr and hyperscore under their*_likenames; the e2e rescoring test checks this. Fragment mass errors also needms2pip==4.1.2(#23). -
Re-reading the supplement's tables does not reproduce them under either profile. The fixes to how tables are read change some peptidoforms, and so their scores:
- #101: MaxQuant fixed modifications are applied. The Figure 3B PSM
AQNSCPICQKbecomesAQNSC[UNIMOD:4]PIC[UNIMOD:4]QK, and 5,966 of the 22,782 ProteomeTools PSMs contain cysteine. - #75: 503 of the 52,530 FragPipe PSMs change modification.
- #125: 19 Proteome Discoverer PSMs get corrected modification sites.
- #79: annotations with w ions change.
- #101: MaxQuant fixed modifications are applied. The Figure 3B PSM