Repository navigation
PepXMLFile: write schema-valid specificity and search_engine placement - #10346
Conversation
- an enzyme without cleavage rules (the default 'unknown_enzyme', e.g. when the search parameters carry no enzyme) produced <specificity cut="">, which pepXML does not allow; the specificity is now omitted, which it does - 'search_engine' is an attribute of 'search_summary', not of 'msms_run_summary', where it was written as well
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthrough
ChangesPepXML output
Suggested reviewers: Priority: ➖ Normal Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The requested output changes are reflected in the writer and fixtures. No concrete new merge-blocking behavior is established; the v117 fidelity rule remains unverified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The changes remain within the existing file-export path and introduce no demonstrated increase in access or privileges. Compatibility uncertainty remains because nonspecific-enzyme output also changes, and downstream interpretation has not been established. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Out of Scope Changes checkExplanation The incremental change adds a special case that omits Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the tags in line, Comment |
|
the unspecific cleavage case should be fixed in the same PR. |
…c cleavage
'unspecific cleavage' cuts after every residue (RegEx "(?<=[A-Z])"). The
regex parsing that extracts a single cut residue from an enzyme's RegEx
read that pattern as cutting only after alanine ('A', the first letter
the character class happens to contain), writing cut="A" - schema-valid,
but semantically wrong. Treated the same as an enzyme with no cleavage
rule (e.g. unknown_enzyme): no <specificity> element at all, which the
reader already accepts as valid for any named enzyme (it only falls back
to parsing <specificity> when the enzyme name is 'unknown_enzyme').
|
Done. Updated |
timosachsenberg
left a comment
There was a problem hiding this comment.
Approving. Checked: search_engine is no longer written on <msms_run_summary>, and <specificity> is omitted when no cut can be derived (unknown enzyme, no/unspecific cleavage). All 8 reference changes follow from that, the output for every other enzyme in Enzymes.xml is unchanged, and the files still read back correctly with develop's reader. It also merges cleanly with current develop.
Non-blocking follow-ups:
- Please add a CHANGELOG
FIX:entry, since the pepXML output changes. - The output is not fully schema-valid yet (e.g.
spectrum_query index="0",Xincut="KRX"), so the title overstates it a little. The description still says unspecific cleavage is written ascut="A". - Consider
EnzymaticDigestion::UnspecificCleavageinstead of the string literal.
Generated by Claude Code
…ersion, #10583, #10492, #10525, #10524, #10346, #9782) Conflicts in ConversionHelper and its test: develop removes MapConversion::convert(PeakMap -> ConsensusMap) and moves its peak selection tests to MapAlignmentAlgorithmPoseClustering_test; this branch keeps the identification data handling of the remaining conversions (convertIdentifications() and its test section). FileConverter: develop's comment about OMS input is dropped, as this branch removes .oms. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Fixes #10345.
Validating every written reference file against the bundled schemas (
share/OpenMS/SCHEMAS) showed all idXML, featureXML and trafoXML references validate — the five pepXML ones did not, for two reasons:unknown_enzyme, which is what X! Tandem, Percolator and OpenNuXL results in the test data have), the writer emitted<specificity cut="" sense="C"/>. pepXML requires at least one cleavage residue (cuthasminLength1);specificityitself is optional, so it's now left out entirely for an unknown enzyme instead of written empty.search_engineattribute onmsms_run_summary, an attribute the schema only defines onsearch_summary. Real TPP-written files (e.g. the reader fixturePepXMLFile_test_store.pepxml) don't carry it onmsms_run_summaryeither.Note for review: the
unspecific cleavagecase (regex(?<=[A-Z])) is still written ascut="A", i.e. "cuts after alanine" — schema-valid, and what the writer already did before this fix. Expressing it as asample_enzymewithout specificity (orfidelity="nonspecific") would be more semantically faithful to what's actually meant, but that's a separate semantic change beyond just fixing validation, so I left it alone here and I'm flagging it rather than guessing at the preferred approach.Verified in Docker (scoped to the pepXML-relevant tests, since two unrelated
TOPP_IDFileConverter_32/33tests segfault on unmodifieddevelopitself — confirmed by running them against a plain checkout ofdevelopwith no changes, so that's a pre-existing issue unrelated to this fix):PepXMLFile_testplusTOPP_IDFileConverter_17/18/19/20/25(the pepXML-writing ones) all pass; a red check confirmsPepXMLFile_testfails without the fix.Summary by CodeRabbit