Skip to content

Rename PeptideDataBaseSearchFI to ProSE - #9137

Merged
timosachsenberg merged 12 commits into
developfrom
feature/rename-pdbsfi-to-prose
Apr 12, 2026
Merged

timosachsenberg merged 12 commits into
developfrom
feature/rename-pdbsfi-to-prose

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Apr 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Renames the TOPP tool PeptideDataBaseSearchFI → ProSE and the library class PeptideSearchEngineFIAlgorithm → ProSEAlgorithm
  • Updates all file names, CMake registrations, test data, test registrations, pyOpenMS bindings, Doxygen docs, and CHANGELOG
  • Pure rename: 21 files changed, 237 insertions, 237 deletions — no logic changes

Test plan

  • ProSEAlgorithm_test unit test passes
  • All 12 TOPP_ProSE_* integration tests pass (including DDA and calibration tests)
  • grep -r confirms zero stale references to old names in src/, doc/, CHANGELOG
  • CI passes
  • pyOpenMS builds and from pyopenms import ProSEAlgorithm works

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Refactor

    • Renamed peptide search tool from PeptideDataBaseSearchFI to ProSE across the app and executables.
    • Algorithm class and public API names updated to ProSEAlgorithm.
  • Documentation

    • Updated changelog, Doxygen entries, CLI/HTML docs and parameter files to reference ProSE.
  • Tests

    • Updated test fixtures and TOPP test registrations to use ProSE.
  • Bindings

    • Python bindings updated to expose ProSEAlgorithm and related types.

timosachsenberg and others added 11 commits April 12, 2026 11:41
…header

Rename the class declaration, constructor, and all method signatures
from PeptideSearchEngineFIAlgorithm to ProSEAlgorithm inside the
library header. Update doc comment to reference ProSE TOPP tool.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…source

Rename all ~30 occurrences of PeptideSearchEngineFIAlgorithm to
ProSEAlgorithm in the library source file. Also update the search
engine identifier from "PeptideDataBaseSearchFI" to "ProSE" and the
identifier prefix from "PDBSFI_" to "ProSE_". Update the include
directive to reference the renamed header.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…pyOpenMS bindings

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
… names

Update PSEFIA.cpp comment references in test, FragmentIndex.h doc comment,
and BrukerTimsFile_test.cpp include/usage.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Apr 12, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 735b7fcf-bc29-485a-97cd-41171a5676b9

📥 Commits

Reviewing files that changed from the base of the PR and between e8252f2 and 013f372.

📒 Files selected for processing (1)
  • src/pyOpenMS/tests/test_modification_discovery.py

📝 Walkthrough

Walkthrough

Renames the fragment-index-based peptide search tool and algorithm: PeptideDataBaseSearchFI → ProSE (TOPP tool) and PeptideSearchEngineFIAlgorithm → ProSEAlgorithm, updating headers, sources, CMake lists, Python bindings, tests, and documentation accordingly.

Changes

Cohort / File(s) Summary
Docs & Changelog
CHANGELOG, doc/doxygen/public/TOPP.doxygen
Replaced references to PeptideDataBaseSearchFI/PeptideSearchEngineFIAlgorithm with ProSE/ProSEAlgorithm in changelog and Doxygen entries.
Algorithm API & Docs
src/openms/include/OpenMS/ANALYSIS/ID/FragmentIndex.h, src/openms/include/OpenMS/ANALYSIS/ID/ProSEAlgorithm.h, src/openms/include/OpenMS/ANALYSIS/ID/sources.cmake
Renamed exported algorithm class and constructor to ProSEAlgorithm; updated doc comments to reference ProSEAlgorithm; updated header listing in sources.cmake.
Algorithm Implementation
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp, src/openms/source/ANALYSIS/ID/sources.cmake
Replaced implementation scope and all symbol references from PeptideSearchEngineFIAlgorithm to ProSEAlgorithm; updated logging prefixes and metadata strings; adjusted CMake source listing.
TOPP Tool & Executables
src/topp/ProSE.cpp, src/topp/executables.cmake, src/openms/source/APPLICATIONS/ToolHandler.cpp
Renamed TOPP class/tool to ProSE, updated TOPPBase identifiers and tool registry entry, changed executable list to include ProSE instead of PeptideDataBaseSearchFI.
Python Bindings
src/pyOpenMS/bindings/bind_misc.cpp
Exposed Python class renamed to ProSEAlgorithm (including nested SearchResult and ExitCodes), bindings updated to dispatch to ProSEAlgorithm methods and enums.
Tests & Test Config
src/tests/class_tests/openms/executables.cmake, src/tests/topp/CMakeLists.txt, src/tests/topp/ProSE_*.ini, src/tests/topp/ProSE_*_out.idXML, src/tests/class_tests/openms/source/BrukerTimsFile_test.cpp, src/tests/class_tests/openms/source/ProSEAlgorithm_test.cpp, src/pyOpenMS/tests/test_modification_discovery.py
Renamed test executables and TOPP CTest registrations; updated INI node names and IDXML search_engine attributes; migrated unit/integration tests to use ProSEAlgorithm and updated expected metadata/exit codes.

Possibly related PRs

Suggested labels

Review effort 2/5

Suggested reviewers

  • jpfeuffer
  • cbielow

Poem

🐰 A tiny hop, a tidy name,
ProSE now bounds into the frame,
Headers, tests, and bindings cheer,
Fragment indexes lend an ear—
Hoppity code, refined and tame.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 59.38% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: renaming PeptideDataBaseSearchFI to ProSE, which aligns with the primary objective of this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/rename-pdbsfi-to-prose

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/pyOpenMS/bindings/bind_misc.cpp (1)

3338-3352: 🛠️ Refactor suggestion | 🟠 Major

Add copy/deepcopy bindings for ProSEAlgorithm to match pyOpenMS binding contract.

ProSEAlgorithm currently exposes only the default constructor (Line 3351). Please also expose copy constructor, __copy__, and __deepcopy__ like other bound classes.

♻️ Proposed patch
     auto prosealgorithm_class = nb::class_<OpenMS::ProSEAlgorithm, OpenMS::DefaultParamHandler>(m, "ProSEAlgorithm",
@@
-        .def(nb::init<>())
+        .def(nb::init<>())
+        .def(nb::init<const OpenMS::ProSEAlgorithm&>())
+        .def("__copy__", [](const OpenMS::ProSEAlgorithm& self) { return OpenMS::ProSEAlgorithm(self); })
+        .def("__deepcopy__", [](const OpenMS::ProSEAlgorithm& self, nb::dict) { return OpenMS::ProSEAlgorithm(self); }, "memo"_a)
         // in-memory search with prot_ids output parameter (4-arg, most specific — must be first)

As per coding guidelines: "Class bindings must include default constructor nb::init<>(), copy constructor nb::init<const ClassName &>(), __copy__ method, and __deepcopy__ method with memo parameter."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pyOpenMS/bindings/bind_misc.cpp` around lines 3338 - 3352, Add
copy/deepcopy bindings for ProSEAlgorithm: update the
nb::class_<OpenMS::ProSEAlgorithm,...>("ProSEAlgorithm",...) registration to
include nb::init<const OpenMS::ProSEAlgorithm &>() for the copy constructor and
add Python-facing methods .def("__copy__", [](const OpenMS::ProSEAlgorithm
&self){ return OpenMS::ProSEAlgorithm(self); }) and .def("__deepcopy__",
[](const OpenMS::ProSEAlgorithm &self, py::dict /*memo*/){ return
OpenMS::ProSEAlgorithm(self); }) so the class matches the pyOpenMS binding
contract (default ctor, copy ctor, __copy__, __deepcopy__).
🧹 Nitpick comments (3)
src/topp/ProSE.cpp (1)

159-159: Prefer '\n' over endl in touched log lines.

Line 159, Line 291, Line 346, and Line 411 use endl; please switch to '\n' to avoid forced stream flushes in hot logging paths.

Suggested diff
-        OPENMS_LOG_INFO << "[ProSE] Percolator rescoring enabled: deferring protein FDR to post-rescoring." << endl;
+        OPENMS_LOG_INFO << "[ProSE] Percolator rescoring enabled: deferring protein FDR to post-rescoring." << '\n';

-          OPENMS_LOG_INFO << "[ProSE] Rescoring " << in_list[i] << " with Percolator..." << endl;
+          OPENMS_LOG_INFO << "[ProSE] Rescoring " << in_list[i] << " with Percolator..." << '\n';

-          OPENMS_LOG_INFO << "[ProSE] Merged protein inference + FDR: "
-                          << merged_protein_ids[0].getHits().size() << " proteins at "
-                          << user_protein_fdr * 100 << "% FDR" << endl;
+          OPENMS_LOG_INFO << "[ProSE] Merged protein inference + FDR: "
+                          << merged_protein_ids[0].getHits().size() << " proteins at "
+                          << user_protein_fdr * 100 << "% FDR" << '\n';

-        OPENMS_LOG_ERROR << "ProSE finished with " << failed_count
-                         << " file(s) failing out of " << in_list.size() << "." << endl;
+        OPENMS_LOG_ERROR << "ProSE finished with " << failed_count
+                         << " file(s) failing out of " << in_list.size() << "." << '\n';

As per coding guidelines: "Avoid std::endl for performance reasons; prefer \n in C++".

Also applies to: 291-291, 346-348, 411-412

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ProSE.cpp` at line 159, Replace the use of std::endl in the logging
statements with '\n' to avoid unnecessary stream flushes: locate the
OPENMS_LOG_INFO calls that print "[ProSE] Percolator rescoring enabled:
deferring protein FDR to post-rescoring." and the other ProSE log messages (the
OPENMS_LOG_INFO invocations around the rescoring/status messages you touched)
and change the trailing << endl to << '\n'; ensure no other stream-flushing
manipulators remain in those statements so logging uses '\n' instead of
std::endl.
src/pyOpenMS/bindings/bind_misc.cpp (1)

30-30: Consider moving ProSEAlgorithm binding to bind_analysis.cpp for module-location consistency.

ProSEAlgorithm is under OpenMS/ANALYSIS/... but is added in bind_misc.cpp (Line 30 and Lines 3322-3407). This works for the rename, but a follow-up relocation would align with the current pyOpenMS domain mapping rule.

As per coding guidelines: "Add #include and class binding in the appropriate binding file based on C++ module location (... ANALYSIS/ → bind_analysis.cpp ...)."

Also applies to: 3322-3407

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pyOpenMS/bindings/bind_misc.cpp` at line 30, Move the ProSEAlgorithm
binding out of bind_misc.cpp into the analysis bindings file: remove the
`#include` <OpenMS/ANALYSIS/ID/ProSEAlgorithm.h> and the ProSEAlgorithm class
binding block currently in bind_misc.cpp (the block covering the ProSEAlgorithm
binding) and add the include and the same class binding code into
bind_analysis.cpp so bindings follow module-location convention; ensure any
dependencies and export registration used by the ProSEAlgorithm binding are also
moved or adjusted in bind_analysis.cpp to compile cleanly.
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp (1)

1452-1505: Prefer '\n' over std::endl in the ProSE summary log blocks (lines 1452–1505).

These logs run on every search, and the explicit flush via std::endl is unnecessary here. Apply the same cleanup to other newly touched OPENMS_LOG_* statements in this file.

♻️ Example change
-      OPENMS_LOG_INFO << "[ProSE]   Unique proteins:      " << unique_proteins.size() << std::endl;
+      OPENMS_LOG_INFO << "[ProSE]   Unique proteins:      " << unique_proteins.size() << '\n';

Per coding guidelines: "Avoid std::endl for performance reasons; prefer \n in C++".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp` around lines 1452 - 1505,
Replace all uses of std::endl in the ProSE summary logging block with a literal
'\n' to avoid unnecessary flushes: update the OPENMS_LOG_INFO statements that
print the header/footer, MS2 ID rate block, missed-cleavages string, tolerance
estimation header and lines, and the configured tolerance line to end with "\n"
instead of std::endl; also apply the same change to any other newly touched
OPENMS_LOG_* statements in this file (search for OPENMS_LOG_INFO/ERROR/DEBUG
occurrences added/modified in this patch) so none of them use std::endl.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp`:
- Around line 61-63: Replace all uses of the old PeptideSearchEngineFIAlgorithm
symbol and its exit enum with the new ProSEAlgorithm names in the test: change
imports and docstring references from PeptideSearchEngineFIAlgorithm to
ProSEAlgorithm, update all instantiations (where the test constructs
PeptideSearchEngineFIAlgorithm) to construct ProSEAlgorithm instead, and switch
any references to the old exit-code enum to ProSEAlgorithm_ExitCodes; ensure the
import line and all enum accesses (previously like
PeptideSearchEngineFIAlgorithm.ExitCodes) are updated to use ProSEAlgorithm and
ProSEAlgorithm_ExitCodes so the test matches the renamed binding.

---

Outside diff comments:
In `@src/pyOpenMS/bindings/bind_misc.cpp`:
- Around line 3338-3352: Add copy/deepcopy bindings for ProSEAlgorithm: update
the nb::class_<OpenMS::ProSEAlgorithm,...>("ProSEAlgorithm",...) registration to
include nb::init<const OpenMS::ProSEAlgorithm &>() for the copy constructor and
add Python-facing methods .def("__copy__", [](const OpenMS::ProSEAlgorithm
&self){ return OpenMS::ProSEAlgorithm(self); }) and .def("__deepcopy__",
[](const OpenMS::ProSEAlgorithm &self, py::dict /*memo*/){ return
OpenMS::ProSEAlgorithm(self); }) so the class matches the pyOpenMS binding
contract (default ctor, copy ctor, __copy__, __deepcopy__).

---

Nitpick comments:
In `@src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp`:
- Around line 1452-1505: Replace all uses of std::endl in the ProSE summary
logging block with a literal '\n' to avoid unnecessary flushes: update the
OPENMS_LOG_INFO statements that print the header/footer, MS2 ID rate block,
missed-cleavages string, tolerance estimation header and lines, and the
configured tolerance line to end with "\n" instead of std::endl; also apply the
same change to any other newly touched OPENMS_LOG_* statements in this file
(search for OPENMS_LOG_INFO/ERROR/DEBUG occurrences added/modified in this
patch) so none of them use std::endl.

In `@src/pyOpenMS/bindings/bind_misc.cpp`:
- Line 30: Move the ProSEAlgorithm binding out of bind_misc.cpp into the
analysis bindings file: remove the `#include`
<OpenMS/ANALYSIS/ID/ProSEAlgorithm.h> and the ProSEAlgorithm class binding block
currently in bind_misc.cpp (the block covering the ProSEAlgorithm binding) and
add the include and the same class binding code into bind_analysis.cpp so
bindings follow module-location convention; ensure any dependencies and export
registration used by the ProSEAlgorithm binding are also moved or adjusted in
bind_analysis.cpp to compile cleanly.

In `@src/topp/ProSE.cpp`:
- Line 159: Replace the use of std::endl in the logging statements with '\n' to
avoid unnecessary stream flushes: locate the OPENMS_LOG_INFO calls that print
"[ProSE] Percolator rescoring enabled: deferring protein FDR to post-rescoring."
and the other ProSE log messages (the OPENMS_LOG_INFO invocations around the
rescoring/status messages you touched) and change the trailing << endl to <<
'\n'; ensure no other stream-flushing manipulators remain in those statements so
logging uses '\n' instead of std::endl.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 51ec675a-59b6-4fa4-af8c-73efcf9a5202

📥 Commits

Reviewing files that changed from the base of the PR and between cac0b8a and e8252f2.

📒 Files selected for processing (21)
  • CHANGELOG
  • doc/doxygen/public/TOPP.doxygen
  • src/openms/include/OpenMS/ANALYSIS/ID/FragmentIndex.h
  • src/openms/include/OpenMS/ANALYSIS/ID/ProSEAlgorithm.h
  • src/openms/include/OpenMS/ANALYSIS/ID/sources.cmake
  • src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
  • src/openms/source/ANALYSIS/ID/sources.cmake
  • src/openms/source/APPLICATIONS/ToolHandler.cpp
  • src/pyOpenMS/bindings/bind_misc.cpp
  • src/tests/class_tests/openms/executables.cmake
  • src/tests/class_tests/openms/source/BrukerTimsFile_test.cpp
  • src/tests/class_tests/openms/source/ProSEAlgorithm_test.cpp
  • src/tests/topp/CMakeLists.txt
  • src/tests/topp/ProSE_1.ini
  • src/tests/topp/ProSE_1_out.idXML
  • src/tests/topp/ProSE_2.ini
  • src/tests/topp/ProSE_2_out.idXML
  • src/tests/topp/ProSE_4.ini
  • src/tests/topp/ProSE_4_out.idXML
  • src/topp/ProSE.cpp
  • src/topp/executables.cmake

…nMS test

Fixes CI pyopenms_feature_tests failure from the rename.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@timosachsenberg
timosachsenberg merged commit 6301612 into develop Apr 12, 2026
42 checks passed
@timosachsenberg
timosachsenberg deleted the feature/rename-pdbsfi-to-prose branch April 12, 2026 12:19
github-actions Bot pushed a commit that referenced this pull request Apr 13, 2026
Add missing entries for changes merged after last changelog sync (#9131):
- BREAKING: ProSE tool renamed from PeptideDataBaseSearchFI (#9137)
- Add #9132 reference to asymmetric precursor tolerance entry (#9108, #9132)
- Fix: BrukerTimsFile::loadDIAStreaming m/z sort for OpenSwath DIA streaming (#9135)

Co-authored-by: Copilot <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Apr 13, 2026
Add missing entries for changes merged after last changelog sync (#9131):
- BREAKING: ProSE tool renamed from PeptideDataBaseSearchFI (#9137)
- Add #9132 reference to asymmetric precursor tolerance entry (#9108, #9132)
- Fix: BrukerTimsFile::loadDIAStreaming m/z sort for OpenSwath DIA streaming (#9135)

Co-authored-by: GitHub Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant