Skip to content

New feature finder for proteomics DDA-LFQ based on biosaur2 implementation - #8385

Merged
timosachsenberg merged 44 commits into
developfrom
biosaur2
Nov 28, 2025
Merged

timosachsenberg merged 44 commits into
developfrom
biosaur2

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Nov 22, 2025 •

Copy link
Copy Markdown
Contributor

This pull request introduces the Biosaur2 peptide feature detection algorithm to OpenMS featuring support for FAIMS and timstof PASEF data.

Biosaur2 algorithm integration:

  • Added Biosaur2Algorithm to OpenMS, including header/source files, Python bindings (Biosaur2Algorithm.pxd), and a comprehensive unit test (Biosaur2Algorithm_test.cpp). This enables peptide feature detection in centroided LC-MS1 data using the Biosaur2 algorithm. [1] [2] [3] [4] [5]

FAIMS compensation voltage splitting refactor:

  • Refactored IMDataConverter::splitByFAIMSCV to return a vector of (CV, MSExperiment) pairs instead of separate PeakMap objects, improving clarity and handling of non-FAIMS datasets (now returning a single-element group with a NaN key instead of throwing an exception). [1] [2] [3]

  • Updated related unit tests (IMDataConverter_test.cpp) to reflect the new return type and behavior, including checks for correct assignment of MS2 spectra and handling of non-FAIMS data. [1] [2] [3] [4]

Tool registration:

  • Registered FeatureFinderLFQ in the OpenMS tool handler, making it available as a quantification tool.

Minor improvements:

  • Added missing include for <utility> in IMDataConverter.h to support new return type.

Meta and documentation:

  • Improved comments and documentation for FAIMS splitting logic, clarifying behavior for edge cases and recommended usage.## Description

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI

Click to expand If your PR is failing you can check out

Advanced commands (admins / reviewer only)

Click to expand
  • /reformat (experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

Summary by CodeRabbit

  • New Features

    • FeatureFinderLFQ tool for LC‑MS1 peptide feature detection with isotope, ion‑mobility and FAIMS support; optional TSV/hills export and automatic hills filename derivation.
    • Python bindings to construct and run the new detector from scripts.
  • Changes

    • FAIMS splitting now returns CV‑tagged experiment groups (ordered CV/experiment pairs) and returns a single group for non‑FAIMS data instead of failing.
  • Documentation

    • Added TOPP_FeatureFinderLFQ page under Quantitation.
  • Tests

    • New TOPP and unit tests plus reference output for FeatureFinderLFQ and the detector.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Nov 22, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Adds a new Biosaur2 feature-finder (implementation, tests, pyOpenMS bindings) and a TOPP tool FeatureFinderLFQ; refactors FAIMS/IM splitting to return (CV, MSExperiment) pairs with caller updates; updates build, tests, and docs. No public APIs removed.

Changes

Cohort / File(s) Summary
Biosaur2Algorithm Core Implementation
src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h, src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
New Biosaur2Algorithm class with public structs (Hill, IsotopeCandidate, PeptideFeature), MS data accessors (copy/move), run overloads producing FeatureMap/hills/peptide features, many helpers (centroiding, TOF, FAIMS grouping, hill/isotope detection, calibration), and TSV/hills writers.
FEATUREFINDER Build Integration
src/openms/include/OpenMS/FEATUREFINDER/sources.cmake, src/openms/source/FEATUREFINDER/sources.cmake
Add Biosaur2Algorithm.h/.cpp to FEATUREFINDER header/source lists for build/export.
TOPP Tool & Executable
src/topp/FeatureFinderLFQ.cpp, src/topp/executables.cmake, src/openms/source/APPLICATIONS/ToolHandler.cpp
New TOPP tool FeatureFinderLFQ wrapping Biosaur2Algorithm; tool registration added to executables and ToolHandler mapping.
TOPP Tests & Artifact
src/tests/topp/CMakeLists.txt, src/tests/topp/FeatureFinderLFQ_1_output.featureXML
Add FeatureFinderLFQ TOPP tests and expected featureXML output (20 features).
Python Bindings (pyOpenMS)
src/pyOpenMS/pxds/Biosaur2Algorithm.pxd
Add Cython pxd exposing Biosaur2Algorithm (constructors, set/get MSData, run) with nogil annotations.
IMDataConverter Refactor
src/openms/include/OpenMS/IONMOBILITY/IMDataConverter.h, src/openms/source/IONMOBILITY/IMDataConverter.cpp, src/tests/class_tests/openms/source/IMDataConverter_test.cpp
Change splitByFAIMSCV signature to return std::vector<std::pair<double, MSExperiment>>; accumulate per-CV MSExperiment in a map, return single (NaN, exp) for non-FAIMS data instead of throwing, add warnings, and update tests to use .first/.second.
IonMobilityBinning Update
src/topp/IonMobilityBinning.cpp
Consume returned (CV, MSExperiment) pairs to build mzML bins and im_ranges directly from pairs (use CV as bin bounds).
Tests & Test Harness Integration
src/tests/class_tests/openms/executables.cmake, src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
Add Biosaur2Algorithm_test to executables list and new unit tests covering constructor, MSData accessors (copy/move), run overloads, isotope handling, and expected outputs.
TOPP test CMake changes
src/tests/topp/CMakeLists.txt
Register new FeatureFinderLFQ tests in existing FeatureFinderCentroided_1 sections.
IM/Constants/docs minor edits
src/openms/include/OpenMS/CONCEPT/Constants.h, doc/doxygen/public/TOPP.doxygen
Minor comment update for TimsTOF ion mobility key; add TOPP_FeatureFinderLFQ doc entry.
Platform CMake tweak
cmake/multithreading.cmake
MSVC-specific OpenMP flag handling added (/openmp:experimental) and applied to OpenMP target interface options.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant TOPP as FeatureFinderLFQ (TOPP)
    participant MS as MSExperiment
    participant B2 as Biosaur2Algorithm
    participant FM as FeatureMap

    U->>TOPP: run with mzML + params
    TOPP->>MS: load mzML
    TOPP->>B2: setMSData(MSExperiment)
    TOPP->>B2: run(FeatureMap&, Hills&, PeptideFeatures&)
    B2->>B2: preprocess (centroid / TOF / filtering)
    B2->>B2: splitByFAIMSCV -> (CV, MSExperiment) pairs
    loop per CV group
      B2->>B2: detect hills
      B2->>B2: split/process hills
      B2->>B2: detect isotope patterns
    end
    B2->>FM: convertToFeatureMap_
    TOPP->>TOPP: write featureXML (± hills TSV ± features TSV)
    TOPP->>U: return outputs
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

  • Areas needing extra attention:
    • Biosaur2Algorithm: algorithm correctness (mass calibration, hill/isotope detection, FAIMS/IM handling), parameter handling, performance and memory use.
    • IMDataConverter::splitByFAIMSCV signature change: caller updates, ordering guarantees, NaN fallback behavior, and test expectations.
    • TOPP FeatureFinderLFQ: I/O metadata, optional TSV/hills export path derivation, and integration with DataProcessing entries.
    • pyOpenMS pxd: consistency with C++ headers and nogil safety.

Possibly related PRs

Suggested reviewers

  • cbielow

Poem

🐇 I hopped through spectra at dawn's first light,

counted CVs and hills with nimble might.
Isotopes marched in tidy queue,
Biosaur2 sang — features found true. ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 11.32% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly summarizes the main addition: a new Biosaur2-based peptide feature detection algorithm for proteomics LFQ.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch biosaur2

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6ae89e6 and b1ba5ec.

📒 Files selected for processing (1)
  • cmake/multithreading.cmake (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: build-lnx
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-win
  • GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
  • GitHub Check: build-and-test (ubuntu-22.04-arm, g++, 11)
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
  • GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
  • GitHub Check: cppcheck-test
🔇 Additional comments (1)
cmake/multithreading.cmake (1)

26-35: MSVC version requirement confirmed: VS 2019 16.9 is correct for SIMD support. Implementation is sound and well-guarded.

The review comment's verification requests have been validated. The /openmp:experimental flag with SIMD support (#pragma omp simd) was indeed introduced in Visual Studio 2019 version 16.9 (released March 2, 2021). The code correctly:

  1. Targets MSVC platform with the experimental flag needed for SIMD pragmas
  2. Guards all operations: wrapped in if (OPENMP_FOUND), if (MSVC), and if (TARGET OpenMP::OpenMP_CXX) checks
  3. Documents intent clearly: comments explain the flag replacement rationale
  4. Addresses the root cause: enables the SIMD directives that caused the Windows build error

Minor consideration on property replacement: The set_property call (line 33) replaces all INTERFACE_COMPILE_OPTIONS rather than appending. This is intentional per the comments and low-risk because CMake's FindOpenMP module typically sets only OpenMP flags on this target. No actual breaking issues detected in the codebase.

No minimum MSVC version check in code: While the code lacks an explicit version guard, this is acceptable here since builds on incompatible MSVC versions will fail with a clear compiler error rather than silently succeeding. The project's other components (AddressSanitizer checks) already reference MSVC 2019 (version 1920) as a baseline.


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: 6

🧹 Nitpick comments (7)
src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h (1)

16-78: Add Doxygen for the new public API (class, structs, and methods).

For headers under include/OpenMS, new public classes and methods should have Doxygen. Here, Biosaur2Algorithm and its public nested structs (Hill, IsotopeCandidate, PeptideFeature), plus the public run, writeTSV, and writeHills methods, are essentially undocumented (apart from a single brief run comment). This makes the API hard to discover and under-documented in the generated TOPP/OpenMS docs.

Consider adding at least brief @brief class/struct descriptions and parameter/return docs for the public methods, including what spectra are expected (MS1, centroid/profile), what “hills” and “peptide features” represent, and what is written by the TSV/hills exporters. Based on learnings

src/openms/include/OpenMS/FEATUREFINDER/sources.cmake (1)

5-27: Consider keeping the header list alphabetically ordered.

Biosaur2Algorithm.h is currently placed among the FeatureFinder* headers, which breaks the otherwise roughly alphabetical ordering of this list. Consider moving it up to the other B* entries to keep the list sorted and easier to maintain.

src/openms/source/FEATUREFINDER/sources.cmake (1)

20-20: Consider maintaining alphabetical order in the source list.

The entry Biosaur2Algorithm.cpp appears out of alphabetical order. For consistency and easier maintenance, it should be placed after BiGaussModel.cpp (line 8) and before EGHTraceFitter.cpp (line 9).

Apply this diff to maintain alphabetical ordering:

 BiGaussFitter1D.cpp
 BiGaussModel.cpp
+Biosaur2Algorithm.cpp
 EGHTraceFitter.cpp
 ElutionModelFitter.cpp
 ElutionPeakDetection.cpp
 EmgFitter1D.cpp
 EmgModel.cpp
 EmgScoring.cpp
 ExtendedIsotopeFitter1D.cpp
 ExtendedIsotopeModel.cpp
 FeatureFinderAlgorithmPicked.cpp
 FeatureFinderAlgorithmPickedHelperStructs.cpp
 FeatureFinderIdentificationAlgorithm.cpp
-Biosaur2Algorithm.cpp
 FeatureFinderAlgorithmMetaboIdent.cpp
src/topp/Biosaur2.cpp (1)

105-158: Main tool flow is sound; consider minor polish on parameter reuse and logging

The sequence “load mzML → configure Biosaur2Algorithm from getParam_().copySubset(...) → run → set primary MS run path → add QUANTITATION processing → store featureXML/TSV/hills” is correct and aligned with other TOPP tools.

Two optional polish points:

  • You can avoid constructing an extra temporary Biosaur2Algorithm() in copySubset(...) by reusing the algorithm instance’s defaults.
  • The log line peptide_features.size() should always match feature_map.size(), but logging feature_map.size() might be slightly clearer to users consuming featureXML directly.

Both are non-blocking.

As per coding guidelines

src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (3)

456-597: detectHills: behaviour is reasonable but algorithm is O(#peaks × #hills)

The hill-building logic (extending only hills with scan_indices.back() == scan_idx - 1 and ppm-filtering against hill.mz_median) is coherent and matches the Biosaur-style design. However, for each peak you iterate over all existing hills until a match is found, which in dense data sets can grow to O(N²) in the number of peaks.

If this becomes a bottleneck in practice, consider:

  • Bucketing hills by last scan index and/or m/z bins to narrow the candidate set.
  • Or maintaining an index of “active hills in previous scan” keyed by m/z.

Not urgent for a first port, but worth keeping in mind.

As per coding guidelines


729-995: detectIsotopePatterns is correct but very complex; hill reuse semantics depend on hill_idx fix

Functionally the isotope pattern detection:

  • Sorts hills by mz_median.
  • Optionally calibrates isotope mass errors per isotope number and charge.
  • Searches for isotope series for each mono-hill and charge.
  • Filters by cosine correlation and optional isotope calibration.
  • Applies valley-splitting (checkIsotopeValleySplit) and intensity re-aggregation (iuse).

This is a faithful, but quite dense, translation of the Biosaur2 logic. Two notes:

  • Correctness of used_hills and calibration maps depends on hill_idx being unique per hill; otherwise multiple segments can be marked “used” or looked up inconsistently.
  • From a maintainability standpoint, this would benefit from being split into smaller helpers (e.g., “collectIsotopeErrorsForCalibration”, “findIsotopeCandidatesForMonoHill”, “applyIsotopeCalibrationAndValleySplit”), which would also address the static analysis “Complex Method” warning.

No immediate blocker once the hill_idx/splitHills issues are fixed, but refactoring later would make future changes safer.

As per coding guidelines


1039-1125: Cosine correlation and TSV/hill writers are straightforward and safe

  • cosineCorrelation aligns intensities via maps keyed by scan index and handles zero norms gracefully by returning 0.
  • writeTSV/writeHills use tab-separated output with sensible headers and log the number of records written.

You might optionally check ofstream open-state for robustness, but given existing patterns in OpenMS this is acceptable as-is.

As per coding guidelines

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d5a2968 and 57a6b85.

📒 Files selected for processing (11)
  • doc/doxygen/public/TOPP.doxygen (1 hunks)
  • src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h (1 hunks)
  • src/openms/include/OpenMS/FEATUREFINDER/sources.cmake (1 hunks)
  • src/openms/source/APPLICATIONS/ToolHandler.cpp (1 hunks)
  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (1 hunks)
  • src/openms/source/FEATUREFINDER/sources.cmake (1 hunks)
  • src/pyOpenMS/pxds/Biosaur2Algorithm.pxd (1 hunks)
  • src/tests/topp/Biosaur2_1_output.featureXML (1 hunks)
  • src/tests/topp/CMakeLists.txt (1 hunks)
  • src/topp/Biosaur2.cpp (1 hunks)
  • src/topp/executables.cmake (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
src/openms/**/*.{cpp,h,hpp,cc,cxx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/openms/**/*.{cpp,h,hpp,cc,cxx}: Follow the existing C++ coding conventions in the codebase
Use the established naming patterns for classes, methods, and variables
Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Follow the established error handling patterns
Utilize OpenMS logging mechanisms
Be mindful of memory usage when processing large datasets
Consider algorithmic complexity for data processing operations
Use appropriate OpenMS containers and algorithms

Files:

  • src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h
  • src/openms/source/APPLICATIONS/ToolHandler.cpp
  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
src/openms/include/OpenMS/**/*.h

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Add Doxygen comments for new public methods and classes

Files:

  • src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h
🧠 Learnings (11)
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.

Applied to files:

  • src/topp/executables.cmake
  • src/tests/topp/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)

Applied to files:

  • src/openms/source/FEATUREFINDER/sources.cmake
  • src/openms/include/OpenMS/FEATUREFINDER/sources.cmake
  • src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h
  • src/topp/Biosaur2.cpp
  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
  • src/pyOpenMS/pxds/Biosaur2Algorithm.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes

Applied to files:

  • src/openms/include/OpenMS/FEATUREFINDER/sources.cmake
  • src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h
  • src/topp/Biosaur2.cpp
  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Consider algorithmic complexity for data processing operations

Applied to files:

  • src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h
  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use appropriate OpenMS containers and algorithms

Applied to files:

  • src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h
  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality

Applied to files:

  • src/tests/topp/CMakeLists.txt
  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/*Test.cpp : Follow naming convention: `ClassNameTest.cpp` for `ClassName`

Applied to files:

  • src/tests/topp/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
  • src/pyOpenMS/pxds/Biosaur2Algorithm.pxd
📚 Learning: 2025-11-18T20:08:08.900Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8374
File: src/pyOpenMS/pxds/SimpleSVM.pxd:0-0
Timestamp: 2025-11-18T20:08:08.900Z
Learning: In pyOpenMS .pxd files, copy constructors should be declared for wrapped C++ classes (e.g., `ClassName(ClassName&) except + nogil`) even when the C++ class has a deleted copy constructor. This is a standard pyOpenMS/Cython convention required for proper wrapper generation and Python object semantics.

Applied to files:

  • src/pyOpenMS/pxds/Biosaur2Algorithm.pxd
📚 Learning: 2025-06-16T15:48:09.667Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like `cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":`. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.

Applied to files:

  • src/pyOpenMS/pxds/Biosaur2Algorithm.pxd
📚 Learning: 2025-06-16T15:49:26.504Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.

Applied to files:

  • src/pyOpenMS/pxds/Biosaur2Algorithm.pxd
🧬 Code graph analysis (4)
src/openms/include/OpenMS/FEATUREFINDER/Biosaur2Algorithm.h (1)
src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (33)
  • Biosaur2Algorithm (27-83)
  • run (106-111)
  • run (106-106)
  • run (113-214)
  • run (113-116)
  • updateMembers_ (85-104)
  • updateMembers_ (85-85)
  • calculatePPM (216-223)
  • calculatePPM (216-216)
  • calculateMedian (225-241)
  • calculateMedian (225-225)
  • meanFilter (243-262)
  • meanFilter (243-243)
  • calibrateMass (264-329)
  • calibrateMass (264-264)
  • processTOF (331-411)
  • processTOF (331-331)
  • centroidProfileSpectra (413-454)
  • centroidProfileSpectra (413-413)
  • detectHills (456-597)
  • detectHills (456-461)
  • processHills (599-613)
  • processHills (599-599)
  • splitHills (615-692)
  • splitHills (615-615)
  • checkIsotopeValleySplit (694-727)
  • checkIsotopeValleySplit (694-696)
  • detectIsotopePatterns (729-994)
  • detectIsotopePatterns (729-736)
  • convertToFeatureMap (996-1037)
  • convertToFeatureMap (996-996)
  • cosineCorrelation (1039-1080)
  • cosineCorrelation (1039-1042)
src/openms/source/APPLICATIONS/ToolHandler.cpp (1)
src/openms/include/OpenMS/DATASTRUCTURES/ToolDescription.h (1)
  • ToolDescription (110-131)
src/topp/Biosaur2.cpp (1)
src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (1)
  • Biosaur2Algorithm (27-83)
src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (1)
src/openms/source/CONCEPT/Exception.cpp (2)
  • InvalidValue (224-228)
  • MissingInformation (257-260)
🪛 GitHub Check: CodeFactor
src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp

[notice] 456-598: src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp#L456-L598
Complex Method


[notice] 729-995: src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp#L729-L995
Complex Method

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
  • GitHub Check: build-and-test (ubuntu-22.04-arm, g++, 11)
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
  • GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
  • GitHub Check: build-and-test (macos-15-intel, xcode, 16.0.0)
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-macos-arm
  • GitHub Check: build-lnx
  • GitHub Check: build-macos
  • GitHub Check: build-win
🔇 Additional comments (7)
doc/doxygen/public/TOPP.doxygen (1)

82-90: TOPP entry looks consistent; ensure matching subpage exists.

The new Quantitation entry for TOPP_Biosaur2 is in the right section and naming matches the tool. Just make sure there is a corresponding @page TOPP_Biosaur2 (e.g. a TOPP_Biosaur2.doxygen file) so Doxygen doesn’t emit a missing-subpage warning.

src/openms/source/APPLICATIONS/ToolHandler.cpp (1)

47-62: Tool registration is correct and in the right category.

Biosaur2 is added in alphabetical order and mapped to cat_quant, matching the Quantitation section in TOPP.doxygen. This aligns with the ToolHandler comments about ordering and doc mirroring.

src/topp/executables.cmake (1)

5-20: Executable list integration looks good.

Biosaur2 is correctly added to TOPP_executables in alphabetical order and matches the registered tool/documentation. No issues from the CMake side here.

src/tests/topp/Biosaur2_1_output.featureXML (1)

1-934: Test output file is well-structured and appropriate.

This featureXML test fixture contains 54 well-formed feature entries with realistic LC-MS data (RT, m/z, charge, intensities) and proper metadata. The placeholder timestamps and test-mode parameter values are standard practice for expected-output files used in regression testing.

src/tests/topp/CMakeLists.txt (1)

261-266: All verification checks pass; code is correct.

  • Reference files present: Biosaur2_1_output.featureXML, Biosaur2_2_output.featureXML ✅
  • No duplicate test names across CMakeLists.txt ✅
  • CLI flags all valid: -mini (line 30), -minlh (line 51), -cmax (line 57) are registered parameters in Biosaur2Algorithm.cpp ✅
  • Dependencies correctly set via set_tests_properties ✅
src/topp/Biosaur2.cpp (1)

82-103: Parameter registration and algorithm defaults look consistent

Options in, out, out_tsv, out_hills, and write_hills are registered in the usual TOPP style and registerFullParam_(defaults) correctly exposes the Biosaur2Algorithm parameters. You might consider adding brief parameter descriptions for any non-obvious algorithm parameters in the header/INI docs to aid users, but the wiring itself is fine.

As per coding guidelines

src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (1)

996-1037: FeatureMap conversion looks consistent with OpenMS conventions

convertToFeatureMap correctly:

  • Sets MZ/RT/intensity/charge from PeptideFeature.
  • Builds a simple convex hull in (RT, m/z) space.
  • Propagates calibrated mass, isotope count, scan count, and summed intensity as meta values.
  • Stores FAIMS and ion mobility meta values only when non-negative.
  • Ensures unique IDs on all features and the map and creates one empty ProteinIdentification.

This matches other feature finder outputs; no changes needed.

As per coding guidelines

Comment thread src/pyOpenMS/pxds/Biosaur2Algorithm.pxd Resolved

@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

🧹 Nitpick comments (4)
src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (4)

119-119: Expensive deep copy of MSExperiment for large datasets.

MSExperiment exp = input; creates a full copy of the entire experiment, which can be costly for large LC-MS datasets (hundreds of MB to GB). While modification requires a copy, consider documenting this overhead or exploring in-place modification strategies if memory becomes a bottleneck in production use.


963-971: Use OpenMS constant instead of hardcoded proton mass.

Line 963 hardcodes proton_mass = 1.007276. OpenMS provides Constants::PROTON_MASS_U for this value. Using the framework constant ensures consistency across the codebase and simplifies maintenance.

Apply this diff:

-          double proton_mass = 1.007276;
+          double proton_mass = Constants::PROTON_MASS_U;
           if (negative_mode)
           {
             feature.mass_calib = mono_mz * charge + proton_mass * charge;

Based on learnings


1003-1008: Convex hull contains only two points at the same m/z.

The convex hull is constructed with only two points (rt_start, mz) and (rt_end, mz), creating a degenerate 1D line segment rather than a true 2D hull. If downstream analysis expects proper 2D hulls capturing the feature's extent in both RT and m/z dimensions, consider including additional points representing the m/z range (e.g., isotopic peak positions or m/z tolerance boundaries).

If this simplified representation is intentional for performance or compatibility reasons, the current implementation is acceptable.


1078-1078: Add error handling for file output operations.

Both writeTSV and writeHills open output files without checking whether the operation succeeded. If the file cannot be opened (due to permissions, invalid path, disk full, etc.), the functions will silently fail to write data.

Consider adding checks:

 void Biosaur2Algorithm::writeTSV(const vector<PeptideFeature>& features, const String& filename) const
 {
   ofstream out(filename);
+  if (!out.is_open())
+  {
+    throw Exception::FileNotWritable(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, filename);
+  }
   out << "massCalib\trtApex\t...

As per coding guidelines

Also applies to: 1103-1103

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 57a6b85 and e3860dc.

📒 Files selected for processing (1)
  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/openms/**/*.{cpp,h,hpp,cc,cxx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/openms/**/*.{cpp,h,hpp,cc,cxx}: Follow the existing C++ coding conventions in the codebase
Use the established naming patterns for classes, methods, and variables
Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Follow the established error handling patterns
Utilize OpenMS logging mechanisms
Be mindful of memory usage when processing large datasets
Consider algorithmic complexity for data processing operations
Use appropriate OpenMS containers and algorithms

Files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
🧠 Learnings (12)
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Consider algorithmic complexity for data processing operations

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use appropriate OpenMS containers and algorithms

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Be mindful of memory usage when processing large datasets

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the established error handling patterns

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the existing C++ coding conventions in the codebase

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-06-16T15:48:09.667Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like `cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":`. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-08-14T10:19:54.371Z
Learnt from: jpfeuffer
Repo: OpenMS/OpenMS PR: 8167
File: src/topp/Digestor.cpp:200-226
Timestamp: 2025-08-14T10:19:54.371Z
Learning: In OpenMS (C++ bioinformatics framework), use boost random libraries instead of std library random distributions for cross-platform reproducible random number generation, as std library distributions are not reproducible across platforms.

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.

Applied to files:

  • src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp
🧬 Code graph analysis (1)
src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp (1)
src/openms/source/CONCEPT/Exception.cpp (2)
  • InvalidValue (224-228)
  • MissingInformation (257-260)
🪛 GitHub Check: CodeFactor
src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp

[notice] 456-598: src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp#L456-L598
Complex Method


[notice] 729-995: src/openms/source/FEATUREFINDER/Biosaur2Algorithm.cpp#L729-L995
Complex Method

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: build-lnx
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-macos
  • GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
  • GitHub Check: build-win
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
  • GitHub Check: build-and-test (ubuntu-22.04-arm, g++, 11)
  • GitHub Check: build-and-test (macos-15-intel, xcode, 16.0.0)
  • GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
  • GitHub Check: cppcheck-test

Copilot AI commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

@timosachsenberg I've opened a new pull request, #8387, to work on those changes. Once the pull request is ready, I'll request review from you.

@OpenMS OpenMS deleted a comment from Copilot AI Nov 23, 2025
* Initial plan

* Fix FAIMS validation to only throw for true ion mobility

Co-authored-by: timosachsenberg <[email protected]>

* Refactor: extract shouldThrowForMissingIM helper method

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
Comment thread src/pyOpenMS/pxds/Biosaur2Algorithm.pxd Resolved

Copilot AI commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

@timosachsenberg I've opened a new pull request, #8388, to work on those changes. Once the pull request is ready, I'll request review from you.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@copilot MSExperiment exp = input; creates a full copy of the entire experiment, which can be costly for large LC-MS datasets (hundreds of MB to GB).

Copilot AI commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

@timosachsenberg I've opened a new pull request, #8389, to work on those changes. Once the pull request is ready, I'll request review from you.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@copilot Add error handling for file output operations.

Both writeTSV and writeHills open output files without checking whether the operation succeeded. If the file cannot be opened (due to permissions, invalid path, disk full, etc.), the functions will silently fail to write data.

Consider adding checks

Copilot AI commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

@timosachsenberg I've opened a new pull request, #8390, to work on those changes. Once the pull request is ready, I'll request review from you.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@copilot Use OpenMS constant instead of hardcoded proton mass.

Line 963 hardcodes proton_mass = 1.007276. OpenMS provides Constants::PROTON_MASS_U

Copilot AI commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

@timosachsenberg I've opened a new pull request, #8391, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits November 23, 2025 19:37
* Initial plan

* Replace hardcoded proton mass with Constants::PROTON_MASS_U

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
…8390)

* Initial plan

* Add error handling for file output operations in writeTSV and writeHills

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

@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: 0

🧹 Nitpick comments (3)
src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp (3)

44-116: Isotope calibration test is good; consider asserting the intended behavior more directly

The synthetic setup with a correct isotope and a nearby lower‑intensity “noise” peak is a solid way to stress the isotope selection and tolerance handling. The current assertions (single feature at m/z ~1000, charge 1, n_isotopes == 2) verify a plausible outcome but don’t fully guarantee that the higher‑intensity isotope candidate was chosen over the nearby noise peak.

If the Biosaur2Algorithm exposes which peak was selected for the isotope (e.g., via hull content, additional meta values, or through the Hill representation), consider adding an assertion that would fail if the low‑intensity peak at 1000.993355 were used instead of 1001.003355. This would make the test guard the calibration bias behavior it documents rather than just the aggregate feature count.


119-144: setMSData tests cover both const and move overloads; confirm move‑from semantics are intentional

The tests nicely exercise both setMSData(const MSExperiment&) and setMSData(MSExperiment&&) and verify that data are available via getMSData() afterward. The additional check TEST_EQUAL(exp.size(), 0); in the rvalue test effectively constrains the move overload to leave the source MSExperiment empty.

That’s reasonable for this API, but it also turns this into a contractual behavior (rather than relying on generic “valid but unspecified” moved‑from state). If that’s the intended guarantee, the test is perfect; if not, you might relax this assertion (e.g., just checking that algo.getMSData().size() == 1).


168-203: Full‑pipeline run(hills, peptide_features) test could assert a bit more, if behavior is known

The test validates that at least one hill is produced for a simple, clean signal, which is a useful smoke check. However, feature_map and peptide_features remain unchecked, and even for hills you only assert size() >= 1.

If the intended behavior for this simple case is better understood (e.g., exactly one hill, or at least one feature with specific RT/m/z span), consider tightening the expectations slightly to catch regressions in the full pipeline (hill building → feature extraction). If behavior is deliberately left flexible, adding a short comment to that effect next to the minimal assertion would clarify the intent.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9c77bea and 1bb8a54.

📒 Files selected for processing (2)
  • src/tests/class_tests/openms/executables.cmake (1 hunks)
  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/tests/class_tests/openms/**/*.cpp

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Write unit tests for new functionality

Files:

  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
🧠 Learnings (9)
📓 Common learnings
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.

Applied to files:

  • src/tests/class_tests/openms/executables.cmake
  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality

Applied to files:

  • src/tests/class_tests/openms/executables.cmake
  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/*Test.cpp : Follow naming convention: `ClassNameTest.cpp` for `ClassName`

Applied to files:

  • src/tests/class_tests/openms/executables.cmake
  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)

Applied to files:

  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes

Applied to files:

  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Consider algorithmic complexity for data processing operations

Applied to files:

  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use appropriate OpenMS containers and algorithms

Applied to files:

  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings

Applied to files:

  • src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp
🔇 Additional comments (3)
src/tests/class_tests/openms/source/Biosaur2Algorithm_test.cpp (2)

29-42: Lifecycle tests for constructor/destructor are fine

Basic allocation/deallocation checks match existing ClassTest patterns and are sufficient here.


146-166: getMSData const and non‑const accessors are adequately exercised

The non‑const accessor test correctly verifies that modifying the returned reference affects the internal MSExperiment, and the const accessor test ensures a const object can be queried without side effects. This gives good coverage for the basic data‑access API.

src/tests/class_tests/openms/executables.cmake (1)

310-354: Including Biosaur2Algorithm_test in the filtering test suite looks correct

Adding Biosaur2Algorithm_test to filtering_executables_list is consistent with existing naming and ensures the new class test is built and executed with the rest of the filtering/feature‑finding tests.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@copilot in topp.doxygen there is still the old tool name

Copilot AI commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

@timosachsenberg I've opened a new pull request, #8397, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits November 26, 2025 21:38
#8397)

* Initial plan

* Fix tool name in TOPP.doxygen from TOPP_Biosaur2 to TOPP_FeatureFinderLFQ

Co-authored-by: timosachsenberg <[email protected]>

* Fix TOPP_Biosaur2 reference in Biosaur2Algorithm.h to TOPP_FeatureFinderLFQ

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@copilot D:\a\OpenMS\OpenMS\OpenMS\src\openms\source\FEATUREFINDER\Biosaur2Algorithm.cpp(314): error C7660: 'simd': requires '-openmp:experimental' command line option(s) can you add this to the compiler flags on windows? if openmp is enabled

Copilot AI mentioned this pull request Nov 28, 2025
5 tasks

Copilot AI commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

@timosachsenberg I've opened a new pull request, #8402, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Add /openmp:experimental flag for MSVC to support #pragma omp simd

Co-authored-by: timosachsenberg <[email protected]>

* Improve comments explaining /openmp:experimental as superset of /openmp

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
@timosachsenberg

Copy link
Copy Markdown
Contributor Author

I think this can be merged. I tested it on larger datasets and it is marked as experimental anyway. If you have time a reviewer or further optimizations could be useful.

@timosachsenberg
timosachsenberg merged commit b97febc into develop Nov 28, 2025
@timosachsenberg
timosachsenberg deleted the biosaur2 branch November 28, 2025 21:22
@coderabbitai coderabbitai Bot mentioned this pull request Apr 25, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Jun 8, 2026
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.

3 participants