Repository navigation
[FEATURE] ProSE: search initial methionine loss by default - #10358
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous 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. 📝 WalkthroughWalkthroughProSE now searches eligible protein N-terminal peptides with and without the initial methionine by default. FragmentIndex adds clipping support, including protein N-terminal modification and SNES handling. Generated decoys retain the initial methionine when clipping is enabled. ChangesInitial Methionine Clipping
Suggested reviewers: Priority: ⬇️ Low Change: Feature Merge Risk: ⚪ Minimal · up to ProSE now searches the N-terminal peptide with and without the initial methionine by default, and the option can be disabled to restore the previous search space. No concrete merge-blocking risk was identified in the supplied context. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The reviewed change expands peptide matching while retaining existing limits and providing an opt-out. No new privilege or external-access boundary was identified. Remaining uncertainty about the complete comparison scope prevents a minimal-risk assessment. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 21.43% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 6 files. (5 skipped: 5 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 peptide trail Comment |
|
@copilot resolve the merge conflicts in this pull request |
…methionine # Conflicts: # CHANGELOG # src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp # src/tests/topp/ProSE_10_out.idXML # src/tests/topp/ProSE_1_out.idXML # src/tests/topp/ProSE_2_out.idXML # src/tests/topp/ProSE_4_out.idXML # src/topp/ProSE.cpp Co-authored-by: timosachsenberg <[email protected]>
Merged |
Resolves the conflicts with the two ProSE changes that landed on develop after this branch's last develop merge: #10357 (peaks:window_type, the same final-window retention this branch carried; the develop text and the richer develop test are kept, the branch's duplicate CHANGELOG bullet is dropped) and #10358 (peptide:clip_nterm_methionine, kept alongside this branch's peptide:deduplicate and fragment:query_spectrum parameters). Also documents the evidence_spectra parameter of postProcessHits_, which Doxygen_Warning_test flagged. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01UGKGwMtvsf72yELV4xNmAQ
…rences The references from develop (refreshed there for #10357 and #10358) lack the search-parameter entries this branch writes: scoring:method, scoring:method_resolved, scoring:fragment_charges, scoring:fragment_charges_resolved, scoring:mass_error_sd, fragment:max_charge, fragment:query_spectrum, peptide:deduplicate and annotate:local_fragment_evidence; peptide:clip_nterm_methionine moves to the position this branch writes it at. Every identification, score and annotation line is unchanged, so only these UserParam lines are added to ProSE_1_out (also used by the multi-file and chunked tests), ProSE_2_out, ProSE_4_out and ProSE_10_out. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01UGKGwMtvsf72yELV4xNmAQ
ProSE's fully specific digest did not include the mature N-terminal peptide after removal of an initial methionine. For example, a spectrum of
PEPTIDERcould not match the database proteinMPEPTIDER, even though downstream PeptideIndexing already accepts this protein mapping.This is a separate follow-up to #10335, based directly on develop
2e82a31b966e59c595a4b1e6e29a3fc3abd67bc2. The final-window extraction is #10357.Behaviour
peptide:clip_nterm_methionine=trueby default in ProSE. Search the retained-M form and the form with exactly the initial M removed, for any following residue. Internal methionines are not clipped.falserestores the previous candidate space and decoy generation.ANDES source check
At the pinned ANDES revision
b7eaece219ef45198eb233030cf9d69075988f72, enumerate_protein unconditionally adds an offset-1 pass when the protein starts with M and has more than one residue. Its Met-cleavage regression test confirms both forms. The offset-1 start keeps protein-N-terminal modification eligibility.This implementation adds the missing biological variant and avoids adding a second copy of ordinary internal peptides.
Validation
Local targeted C++23/OpenMP build with GCC 13.3:
git diff --checkpasses; changed C++ regions checked with clang-format 20.1.8, omitting unrelated include/comment reformatting.Exact tested source tree:
fd8b293b57c3fe57b570f8491f2aa8ab7b906406.Build scope: ProSEAlgorithm, FragmentIndex, HyperScore and TheoreticalSpectrumGenerator were compiled from this branch and linked against unchanged support code from official pyOpenMS
3.6.0.dev20260930(reports3.6.0-pre-nightly-2026-09-29, revision55f7bdb). This is not a full clean OpenMS/TOPP build, and Python bindings were not rebuilt. No public method signatures change.No new multi-instrument yield or true-FDR claim is made here. The benchmarks in #10335 predate this option and do not measure its benefit.
Reproduce the targeted build and tests
Linux x86_64 with g++-13, make, git, curl, Python 3.12, unzip and required runtime libraries. The public bundle supplies the existing C++ harness/generated configuration headers; no large benchmark downloads are needed for these regression tests.
For a normal OpenMS build, build the same two test targets and run the same CTest expression.
TOPP-fixture checks used each
ProSE_1.ini,ProSE_2.iniandProSE_4.iniSearch section with their spectra/FASTA fromsrc/tests/topp/CMakeLists.txt; test 10 usesProSE_10_duplicate_peaks.mzML,ProSE_10.fasta, 10 ppm fragments and other defaults. Repeat each withpeptide:clip_nterm_methionine=falsefor the legacy control.Summary by CodeRabbit