Skip to content

[WIP] Fix doxygen error in documentation build - #8428

Merged
timosachsenberg merged 2 commits into
claude/fix-doxygen-error-01SYHwZTaS8uJTXVoRSYS3gRfrom
copilot/sub-pr-8427
Dec 4, 2025
Merged

timosachsenberg merged 2 commits into
claude/fix-doxygen-error-01SYHwZTaS8uJTXVoRSYS3gRfrom
copilot/sub-pr-8427

Conversation

Copilot AI commented Dec 4, 2025 •

Copy link
Copy Markdown
Contributor
  • Implement PeakPickerIM tool for ion mobility peak picking
  • Add streaming mode for low-memory processing of large datasets
  • Add explicit checks for IMFormat::MULTIPLE_SPECTRA and IMFormat::MIXED with clear error messages
  • Remove unused param variable in PeakPickerIM_test.cpp

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@coderabbitai

coderabbitai Bot commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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

@timosachsenberg
timosachsenberg marked this pull request as ready for review December 4, 2025 20:51
@timosachsenberg
timosachsenberg merged commit b01a375 into claude/fix-doxygen-error-01SYHwZTaS8uJTXVoRSYS3gR Dec 4, 2025
@timosachsenberg
timosachsenberg deleted the copilot/sub-pr-8427 branch December 4, 2025 20:51
Copilot AI requested a review from timosachsenberg December 4, 2025 20:52
timosachsenberg added a commit that referenced this pull request Dec 5, 2025
* migrate relevant files from im_types branch to this new branch

* remove IDMassAccuracy, SpecLibCreator and SpecLibSearcher from old Cmake file

* clean up parameters registration

* eliminate padding points parameter

* adjust default mz sum tolerance

* added hard-coded im peak picking params. consistent variable naming

* include another common str for storing ion mobility array

* int fix

* keep parameter name consistent fix

* make tests smaller

* clean commits

* update test

* add set_test_properties

* added coderabbitai suggestions

* added IMData check before accessing the float array

* remove ppIM_test_2.cpp class test. Add missing libraries to avoid compile issues

* check im array spectrum index

* remove outdated code from SpectrumSettings.h

* Update src/openms/include/OpenMS/PROCESSING/CENTROIDING/PeakPickerIM.h

Co-authored-by: Timo Sachsenberg <[email protected]>

* remove redundant param handling

* reverse deletion of im handling lines in EPD

* add single peak trace handling back

* remove id lines from SpectrumSettings.cpp

* remove param comments from PeakPickerIM

* add OpenNuXL back

* add AnnotatedMSRun_test line in executable.cmake

* review comments

* determine IM type

* small fixes to ensure IMType

* some more fixes

* fixed synthetic peakpickerIM test

* make sure IMCluster and IMElutionProfiles update the ion mobility array name to Ion Mobility

* update test files

* change loop variable from Size to SignedSize for windows compiler

* rewrite test mzml files in linux

* fix doxygen error and add description for PickIMTraces

* Address CodeRabbit review comments for PeakPickerIM PR #8177

- Fix MetaInfoInterface::addMetaValues to copy both String and UInt keys
- Fix ElutionPeakDetection empty trace crash and extend smoothing for 2-point traces
- Standardize IM array output name to "Ion Mobility Centroid" using constant
- Use Constants::UserParam::ION_MOBILITY and ION_MOBILITY_CENTROID throughout
- Add error when PeakPickerIM receives already centroided IM data
- Add early validation in PeakPickerIM TOPP tool for centroided/missing IM data
- Remove unused ION_MOBILITY_DESCRIPTION from OpenSwathScoring.h
- Update test files to use IM constants instead of hardcoded strings
- Add CHANGELOG entries for PeakPickerIM

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Update src/openms/include/OpenMS/PROCESSING/CENTROIDING/PeakPickerIM.h

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* minor fixes

* Fix incorrect Doxygen example in PeakPickerIM

Replace bogus IMFrame::toSpectrum reference with correct
PeakPickerIM::pickIMCluster usage example.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Refactor PeakPickerIM for consistent API and validation

- Make pickIMCluster and pickIMElutionProfiles non-static instance methods
  that use configured parameters (consistent with pickIMTraces)
- Remove unused tolerance parameters from method signatures
- Add DataProcessing metadata to in-memory path (was missing)
- Add IMFormat validation to low-memory path for consistent error handling
- Simplify TOPP tool code by removing redundant parameter extraction
- Update pyOpenMS bindings to expose pickIMCluster and pickIMElutionProfiles

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Improve low-memory IMFormat validation to read only first spectrum

Use a FormatDetector consumer that aborts after reading the first
spectrum (via exception) instead of loading the entire file. This
maintains the low-memory property while providing proper validation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Fix build errors and update test baselines

- Fix IMSDataConsumer inheritance (use non-template version)
- Fix addDataProcessing_ call (use TOPPBase method)
- Update test baselines to reflect DataProcessing metadata and
  Ion Mobility Centroid array name changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Fix Doxygen error and disable flaky test on Linux/macOS ARM64

- Add missing documentation for output_spectrum parameter in
  PeakPickerIM::sumFrame_ method
- Disable TOPP_PeakPickerIM_3_out1 test on Linux and macOS ARM64
  due to numeric differences

* [WIP] Fix doxygen error in documentation build (#8428)

* Initial plan

* Add explicit checks for MULTIPLE_SPECTRA and MIXED IMFormat, remove unused variable

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

---------

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

* Restrict PeakPickerIM output tests to Linux amd64 (#8430)

* Fix copyright headers in PeakPickerIM files

- Change "The OpenMS Team" to "OpenMS Inc." in copyright line
- Fix overly long separator line to match standard format

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Address code review comments for PeakPickerIM

- Replace std::cerr/cout with OPENMS_LOG_* macros throughout file
- Remove misleading TODOs and add clarifying comments:
  - Empty mobilogram traces: explain they occur when no peaks found in FWHM window
  - getIntensity() vs computeIntensitySum(): explain FWHM indices requirement
  - sortByPosition()/updateRanges(): confirm both are needed, remove "maybe" TODOs
- Optimize sorting: remove redundant isSorted() check before sortByPosition()
  (sortByPosition already checks internally, saves O(n) in common unsorted case)
- Add explanatory comments for IM data flow and sorting requirements

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Mohammed AlHigaylan <[email protected]>
Co-authored-by: alhigaylan <[email protected]>
Co-authored-by: Mohammed AlHigaylan <[email protected]>
Co-authored-by: Mohammed AlHigaylan <[email protected]>
Co-authored-by: alhigaylan <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Samuel Wein <[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.

2 participants