Skip to content

Check the return value of configure so that we stop on configure errors - #8515

Merged
poshul merged 6 commits into
developfrom
fix_package_halt_on_error
Dec 19, 2025
Merged

poshul merged 6 commits into
developfrom
fix_package_halt_on_error

Conversation

@poshul

@poshul poshul commented Dec 18, 2025 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores
    • Packaging now aborts immediately on configuration errors to prevent incomplete artifacts.
    • CI pipeline updates: ensure Windows installer tool is added to PATH so the installer is discoverable during runs; other CI dependency and staging adjustments remain.

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

@coderabbitai

coderabbitai Bot commented Dec 18, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds a fatal error check to the CMake packaging configure step to abort on configure failure, and appends the extracted NSIS install path to GITHUB_PATH in the GitHub Actions Windows workflow so makensis.exe is discoverable.

Changes

Cohort / File(s) Summary
CMake configure error handling
tools/ci/cipackage.cmake
Capture the CMake configure return value in _reconfig_package_ret_val and call message(FATAL_ERROR ...) when non-zero, aborting packaging configuration immediately.
CI workflow — Windows NSIS PATH
.github/workflows/openms_ci_matrix_full.yml
After extracting NSIS on Windows, append the NSIS install path to GITHUB_PATH so makensis.exe is on the system PATH for subsequent steps.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Small, focused changes across two files.
  • Review attention:
    • tools/ci/cipackage.cmake — confirm fatal error is appropriate and doesn't break any callers expecting non-fatal behavior.
    • .github/workflows/openms_ci_matrix_full.yml — ensure the appended path is correct and has the expected directory layout for the extracted NSIS.

Poem

🐰
I hopped through configure, ears alert and keen,
Now when it falters, the failure is seen.
On Windows I nudged NSIS into the trail,
So builds can find makensis without fail.
A tiny hop, a tidy trail — carrot prevail!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a check for the configure step's return value to halt on errors, which is the primary modification in tools/ci/cipackage.cmake.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix_package_halt_on_error

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 05a6be3 and 8068ad9.

📒 Files selected for processing (1)
  • .github/workflows/openms_ci_matrix_full.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/openms_ci_matrix_full.yml
⏰ 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). (2)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)

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

Caution

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

⚠️ Outside diff range comments (1)
tools/ci/cipackage.cmake (1)

49-49: Update the stale line reference in the GitHub Actions annotation.

The hardcoded line=40 in the warning annotation is now outdated. After adding the configuration error check (lines 40-43), ctest_submit moved to line 46. Update the annotation to reference the correct line.

🔎 Apply this diff to fix the stale line reference:
-  execute_process(COMMAND ${CMAKE_COMMAND} -E echo "::warning file=cipackage.cmake,line=40::CTest submission failed, CDASH server is not available. Continuing execution.")
+  execute_process(COMMAND ${CMAKE_COMMAND} -E echo "::warning file=cipackage.cmake,line=46::CTest submission failed, CDASH server is not available. Continuing execution.")
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1d731d1 and 8e051b5.

📒 Files selected for processing (1)
  • tools/ci/cipackage.cmake (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
📚 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:

  • tools/ci/cipackage.cmake
⏰ 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-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-win
  • GitHub Check: build-lnx
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-and-test (macos-14, xcode, 15.4)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: cppcheck-test
🔇 Additional comments (1)
tools/ci/cipackage.cmake (1)

40-43: LGTM! Error handling correctly prevents proceeding with failed configuration.

The defensive check properly captures configuration failures and halts execution immediately with a clear error message. This aligns with the fail-fast approach for CI workflows.

Based on learnings, failing immediately on errors is the preferred approach for OpenMS CI workflows.

@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

Caution

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

⚠️ Outside diff range comments (1)
.github/workflows/openms_ci_matrix_full.yml (1)

576-587: Critical: Remove corrupted duplicate notarization command.

Lines 582-587 contain a malformed copy-paste error with the fragment e.sh \ followed by duplicate parameters. This breaks YAML syntax and will cause the workflow to fail.

The correct invocation should pass six arguments to notarize.sh: the package file, bundle ID, Apple ID, password variable name, team ID, and output log directory:

         $GITHUB_WORKSPACE/OpenMS/cmake/MacOSX/notarize.sh \
           "$PKG_FILE" \
           "de.openms" \
           "[email protected]" \
           "APPLE_APP_SPECIFIC_NOTARIZATION_PASSWORD" \
           "$TEAM_ID" \
-e.sh \
-          "$PKG_FILE" \
-          "de.openms" \
-          "[email protected]" \
-          "APPLE_APP_SPECIFIC_NOTARIZATION_PASSWORD" \
           "$GITHUB_WORKSPACE/OpenMS/bld/"
🧹 Nitpick comments (1)
.github/workflows/openms_ci_matrix_full.yml (1)

366-368: Consider clarifying or removing the commented-out code.

The comment on line 366 contains what appears to be a partial/alternative command referencing $THIRDPARTY_DIR. If this is no longer relevant, consider removing it to reduce confusion. If it's a note for future reference, add context explaining why it's commented out.

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8e051b5 and 05a6be3.

📒 Files selected for processing (1)
  • .github/workflows/openms_ci_matrix_full.yml (4 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
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
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.

Applied to files:

  • .github/workflows/openms_ci_matrix_full.yml
🪛 actionlint (1.7.9)
.github/workflows/openms_ci_matrix_full.yml

582-582: could not parse as YAML: could not find expected ':'

(syntax-check)

🔇 Additional comments (2)
.github/workflows/openms_ci_matrix_full.yml (2)

277-279: LGTM!

Conditionally installing Debian-specific dependencies only when pkg_type is deb is a sensible optimization that avoids unnecessary package installations for non-Debian builds.


304-305: LGTM!

Adding the NSIS directory to GITHUB_PATH ensures makensis.exe is discoverable by CMake in subsequent steps. This is the correct approach for persisting PATH modifications across GitHub Actions steps.

Removed redundant notarization parameters from CI workflow.
Updated the workflow to use a structured THIRDPARTY directory.
Removed conditional dependency installation for deb packages in CI workflow.
@poshul
poshul merged commit 0dfb52f into develop Dec 19, 2025
@poshul
poshul deleted the fix_package_halt_on_error branch December 19, 2025 07:57
timosachsenberg added a commit that referenced this pull request Dec 29, 2025
* [FEATURE] Add FAIMS support to ProteomicsLFQ (#8478)

- Annotate peptide IDs with FAIMS_CV from spectrum data before feature
  detection, enabling proper per-CV filtering in FeatureFinderIdentificationAlgorithm
- Add documentation describing FAIMS support: automatic detection,
  per-CV processing, feature merging, and downstream alignment/linking

FAIMS data is now automatically handled:
1. FFI splits data by compensation voltage and processes each CV group
2. Features from different CVs representing the same analyte are merged
3. Merged features are aligned and linked based on RT and m/z

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

Co-authored-by: Claude Opus 4.5 <[email protected]>

* Add append() and extend() methods to pyOpenMS map classes with __len__ support (#8510)

Implements feature request #8124 by adding Pythonic methods to:
- ConsensusMap: __len__, append, extend
- FeatureMap: __len__, append, extend
- PeptideIdentificationList: append, extend (already had __len__)

These methods provide a more Pythonic interface:
- __len__() enables use of built-in len() function
- append() adds single items (equivalent to push_back())
- extend() adds multiple items from iterables or other map objects

Includes comprehensive unit tests for all new methods.

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

* Store PeptideIndexer settings as metavalues in SearchParameters (#8489)

* Initial plan

* Add PeptideIndexer settings as metavalues in ProteinIdentification

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

* Extract metavalue keys as constants to improve maintainability

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

* Remove trailing whitespace from PeptideIndexing.h

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

* Use !empty() instead of size() > 0 for better readability

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

* Store PeptideIndexer settings in SearchParameters instead of ProteinIdentification

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

* Remove unnecessary static constants for metavalue keys

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

* Fix PeptideIndexing test and update test output files

- Fix unit test to provide ProteinIdentification before running
  (the test was creating an empty prot_ids vector but expecting
  metavalues to be set - the code only updates existing
  ProteinIdentifications)
- Update all PeptideIndexer TOPP test expected output files to
  include the new metavalues in SearchParameters

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

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

* Add PeptideIndexer settings to TOPP test expected output files (#8509)

Update expected output files to include PeptideIndexer settings that are
now written to SearchParameters. This includes decoy_string, enzyme,
enzyme_specificity, and related parameters.

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

Co-authored-by: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jpfeuffer <[email protected]>
Co-authored-by: Timo Sachsenberg <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>

* Add PeptideIndexer params to SageAdapter test output (#8518)

Update the SageAdapter_1_out.idXML test file to include the
PeptideIndexer metavalues that were missing from the PR #8509
update which added these to other adapter test files.

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

* Check the return value of configure so that we stop on configure errors (#8515)

* Check the return value of configure so that we stop on configure errors

* make sure nsis is in path.

* Simplify notarization step in CI workflow

Removed redundant notarization parameters from CI workflow.

* fix cat-on-keyboard error

Updated the workflow to use a structured THIRDPARTY directory.

* Simplify CI workflow by removing deb dependency check

Removed conditional dependency installation for deb packages in CI workflow.

* Use external libraries from Debian repos to prevent deb package conflicts (#8496)

* Initial plan

* Use external SQLite3, SQLiteCpp, nlohmann-json, and SIMDe from Debian repos

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

* Fix debian package dependencies - SQLiteCpp is static library

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

* Add documentation for USE_EXTERNAL_* CMake options

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

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jpfeuffer <[email protected]>
Co-authored-by: Samuel Wein <[email protected]>

* Use unsigned channel identifiers in peptide quantification (#8516)

* Remove non-schema CMakeLists.txt from OPENSWATH directory (#8513)

* Initial plan

* Remove non-standard CMakeLists.txt from OPENSWATH directory

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

---------

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

* explicitly add timestamping to notarization process (#8527)

* Hide Eigen from OpenMS public API (Issue #8456) (#8511)

* Hide Eigen from OpenMS public API (Issue #8456)

This implements Option D from issue #8456: use Eigen::Map only without PIMPL.

Changes:
- Move Eigen3::Eigen from PUBLIC to PRIVATE linking in CMakeLists.txt
- Rewrite Matrix<T> to use std::vector<T> storage (column-major)
- Add internal MatrixEigen.h with eigenView() for zero-copy Eigen access
- Refactor TraceFitter/LevMarqFitter1D GenericFunctor to use raw double*
  instead of Eigen types in public interface
- Update all internal code to use eigenView() where Eigen operations needed
- Add missing includes (<cmath>, <Eigen/LU>, <Eigen/QR>) where needed
- Update tests to link against Eigen when using eigenView() directly

The Matrix class now provides:
- std::vector storage with data() pointer access
- getValue/setValue methods for element access
- eigenView() (internal) for full Eigen matrix operations

Downstream users no longer need Eigen headers when using OpenMS.

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

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

* Add pyOpenMS test for Matrix column-major ordering

Add testMatrixDoubleColumnMajorOrdering() to verify that the Matrix class
correctly preserves row/column ordering when passing data between numpy
and C++. This test catches potential column-major vs row-major issues that
could cause data transposition.

The test verifies:
- Shape preservation (3x4 matrix stays 3x4, not transposed to 4x3)
- Element-by-element verification via getValue matches numpy indexing
- Round-trip preservation (numpy -> C++ -> numpy)
- View indexing matches getValue for all elements
- Modifications through numpy view are reflected in C++ object
- Highly non-square matrices (2x5) work correctly

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

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

* Fix Doxygen for solveNNLS_ to document in-place matrix modification

Update the documentation for the non-const solveNNLS_ overload to correctly
indicate that correction_matrix is modified in-place by the NNLS solver.
Changed @param[in] to @param[in,out] and added a @note explaining that
this overload mutates the matrix for efficiency, with a reference to the
const-preserving overload for cases where the original must be preserved.

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

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

* Fix Doxygen for computeStats_ to correctly document parameters

- Change @param[out] x_naive to @param[in] (it's const reference input)
- Change @param[in] stats to @param[in,out] (it's modified by function)
- Clarify that x_naive is LU-decomposition solution, not "uncorrected"

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

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

* Fix Doxygen param annotations for NonNegativeLeastSquaresSolver

Add proper @param[in], @param[out], @param[in,out] annotations based on
actual implementation behavior:
- const Matrix& overload: A and b are [in] (copies made internally)
- raw pointer overload: A and b are [in,out] (modified by NNLS solver)
- Matrix& overload: A and b are [in,out] (passed to raw pointer version)

Also clarify in @brief that const overload preserves originals while
non-const overloads modify inputs in-place for efficiency.

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

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

* Fix misleading comments about Matrix template instantiations

Remove contradictory comment that said "No explicit template instantiations
needed" when explicit instantiations are present. Clarify that these are
explicit instantiations to compile template code into libOpenMS.so, not
"default instances for backwards compatibility".

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

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

* Remove Eigen dependency from NonNegativeLeastSquaresSolver_test

Remove include of internal MatrixEigen.h header and replace Eigen::Index
with Size. This aligns with the PR goal of hiding Eigen from the public API.

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

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

* Add unit tests for internal MatrixEigen utilities

Test coverage for the internal Eigen-based utilities in MatrixEigen.h:
- eigenView() for mutable and const Matrix
- eigenVectorView() for std::vector and raw pointers
- eigenMatrixView() for raw pointers
- Zero-copy verification (modifications through view affect original)
- Eigen operations work correctly on views
- Matrix/view consistency with column-major storage

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

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

* Add pointer-safety documentation for NNLS raw-pointer overload

Document memory requirements, ownership semantics, and lifetime constraints
for the double* A parameter:
- Must be non-null, pointing to A_rows * A_cols contiguous doubles
- Column-major storage order required
- Caller retains ownership and must ensure validity during call
- Contents modified in-place and undefined after call
- nullptr or undersized buffer is undefined behavior

Also add note recommending Matrix& overload for safety and mention
std::span as potential future improvement.

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

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

* Link MRMScoring_test to Eigen3::Eigen

MRMScoring_test.cpp includes MatrixEigen.h which requires Eigen headers.
Since Eigen is a PRIVATE dependency of OpenMS, tests that directly include
internal Eigen-dependent headers must explicitly link to Eigen3::Eigen.

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

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

* Remove Eigen dependency from ImageCreator

- Add maxValue() and minValue() methods to Matrix class using std::max_element/std::min_element
- Update ImageCreator.cpp to use Matrix::maxValue() instead of eigenView().maxCoeff()
- Remove MatrixEigen.h include from ImageCreator.cpp

This fixes the build error where ImageCreator failed to compile because
it included MatrixEigen.h but TOPP tools don't link against Eigen3::Eigen.

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

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

* Replace Eigen::Index with Size in test files

Part of hiding Eigen from the public API. Tests should not use
Eigen types directly since Eigen is an internal implementation detail.

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

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

* Add missing <atomic> include to MzMLHandler.cpp

Fix build failure caused by missing std::atomic include. This was
previously provided transitively through Eigen headers.

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

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

* Fix Doxygen documentation warnings in Matrix.h (#8529)

* Initial plan

* Fix Doxygen warnings in Matrix.h getValue/setValue documentation

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

---------

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

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Copilot <[email protected]>

* Wrap Math::getPPM template functions for Python bindings (#8525)

* Initial plan

* Add Math.pxd wrapper and unit tests for Math::getPPM functions

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

* Update Math.pxd to properly handle template functions with concrete double type

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

* Remove unnecessary wrap-as directives from Math.pxd

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

* Improve documentation for Math class wrapper with usage examples

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

* Add wrap-doc documentation at function level for all Math functions

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

* Update Math class documentation to be more general and extensible

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

---------

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

* Add precursor m/z range filter to PeakFileOptions (#8526)

* Initial plan

* Add precursor m/z range filter support to PeakFileOptions

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

* Implement precursor m/z range filtering in MzML, MzXML, and MzData handlers

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

* Fix MzXMLHandler to properly skip filtered spectra by removing from spectrum_data_

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

---------

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

* Initial plan

* Changes before error encountered

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

* Remove MS level check from precursor m/z range filter

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

* [DOC] Add AGENTS.md guidance (#8537)

* [DOC] Add AGENTS.md guidance

* [DOC] Update TOPP tool documentation paths

* Implement to_df directly in Cython files (#8520)

* Move get_df() methods directly into Cython .pyx addon files

Instead of using Python wrapper classes in _dataframes.py to add DataFrame
export functionality, implement get_df() directly in the Cython addon files
alongside get_data_dict(). This simplifies the architecture by:

- Removing the "duck typing hack" of wrapper classes that override Cython classes
- Putting all DataFrame logic in one place (the Cython addon files)
- Making the code flow more straightforward

Changes:
- MSSpectrum.pyx: Added get_df()
- MSChromatogram.pyx: Added get_df()
- Mobilogram.pyx: Added get_df()
- MSExperiment.pyx: Added get_df_columns(), get_df(), get_ion_df(), get_massql_df()
- ConsensusMap.pyx: Added get_df_columns(), get_intensity_df(), get_metadata_df(), get_df()
- FeatureMap.pyx: Added get_df_columns(), get_df(), get_assigned_peptide_identifications()
- MRMTransitionGroupCP.pyx: New addon with get_chromatogram_df(), get_feature_df() methods
- _dataframes.py: Simplified to only export standalone functions
- README.md: Updated documentation to reflect new pattern

* Add get_df() to PeptideIdentificationList and comprehensive tests

- Add get_df() and update_scores_from_df() methods to PeptideIdentificationList.pyx
  following the same pattern as other data structures
- Update _dataframes.py to use backwards-compatible wrapper functions that call the
  new methods (peptide_identifications_to_df → peps.get_df(), update_scores_from_df → peps.update_scores_from_df())
- Simplify _dataframes.py by removing duplicate implementation code
- Add comprehensive tests for:
  - PeptideIdentificationList.get_df() with various parameters
  - PeptideIdentificationList.update_scores_from_df()
  - Mobilogram.get_df() column selection
  - Backwards-compatible wrapper functions

* Fix Cython compilation errors in get_df() addon methods

- Use lazy pandas imports inside methods to avoid module-level import issues
- Replace bool() calls with len() > 0 to avoid Cython type conflicts
- Replace {bool: ...} dict keys with {type(True): ...} for same reason
- Rename 'long' parameter to 'long_format' to avoid Cython keyword conflict

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

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

* Add to_arrow() methods for Apache Arrow Table export

Add to_arrow() methods to pyOpenMS classes following the Polars naming convention:
- MSSpectrum.to_arrow() - reuses get_data_dict() for efficient numpy-to-Arrow conversion
- MSChromatogram.to_arrow() - reuses get_data_dict()
- Mobilogram.to_arrow() - reuses get_data_dict()
- MSExperiment.to_arrow() - supports long_format parameter like get_df()
- ConsensusMap.to_arrow() - wraps get_df() with pa.Table.from_pandas()
- FeatureMap.to_arrow() - wraps get_df() with pa.Table.from_pandas()
- MRMTransitionGroupCP.chromatograms_to_arrow(), features_to_arrow()
- PeptideIdentificationList.to_arrow()

All methods use lazy imports for pyarrow to keep it as an optional dependency.

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

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

* Fix UnboundLocalError in PeptideIdentificationList.get_df()

When a PeptideHit doesn't have a particular metavalue, the code would
reference an undefined 'val' variable. Fix by using the precomputed
dmv[idx] array which already contains the correct default missing value
for each metavalue's type.

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

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

* Fix bugs and add tests for DataFrame/Arrow export

Bug fixes:
- ConsensusMap.get_intensity_df(): Fix np.fromiter count truncation
  by computing actual row count (one row per file per feature)
- MSExperiment.get_massql_df(): Fix division by zero in intensity
  normalization for empty spectra or all-zero intensities
- _dataframes.py: Fix 'any' to 'Any' type hint import

Tests added:
- TestToArrowMethods: 7 tests for to_arrow() across all classes
- TestBugFixes: 3 tests for the bug fixes above

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

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

* Fix FeatureMap.get_df() missing spectrum_native_id check

Add existence check for 'spectrum_native_id' meta value before calling
getMetaValue() in extract_meta_data(). This follows the same pattern
used in get_assigned_peptide_identifications().

Without this check, calling get_df() on a FeatureMap where some features
lack the 'spectrum_native_id' meta value could fail unexpectedly.

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

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

* Fix test parameter name mismatch in MSExperiment.get_df() test (#8523)

* Initial plan

* Fix test parameter name: change long= to long_format= in MSExperiment test

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

---------

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

* Potential fix for pull request finding 'Unused import'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggestions from code review

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

* Make pandas and pyarrow optional dependencies with Sphinx docstrings (#8535)

* Initial plan

* Remove pandas from required dependencies and fix docstrings

- Removed pandas from install_requires in setup.py (now optional)
- Added ImportError with helpful message when pandas is not installed
- Fixed all docstrings to use Sphinx reStructuredText format (:param, :type, :return, :rtype, :raises)
- Updated docstrings in 8 addon files (ConsensusMap, FeatureMap, MRMTransitionGroupCP, MSChromatogram, MSExperiment, MSSpectrum, Mobilogram, PeptideIdentificationList)
- Also added ImportError handling for pyarrow imports (optional dependency)

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

* Fix remaining to_arrow() docstrings to use Sphinx format

- Updated all to_arrow() method docstrings to use Sphinx reStructuredText format
- Fixed docstrings in ConsensusMap, FeatureMap, MRMTransitionGroupCP, MSChromatogram, MSExperiment, MSSpectrum, Mobilogram, PeptideIdentificationList
- All DataFrame and Arrow export methods now have consistent Sphinx-style documentation

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

---------

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

* Install pandas and pyarrow for CI test job (#8539)

* Initial plan

* Install pandas and pyarrow in test job for optional dependency tests

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

---------

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

* some review comments (#8540)

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Justin Sing <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Add security patterns to .gitignore to prevent credential leaks (#8545)

* Add security patterns to .gitignore to prevent credential leaks

Add comprehensive gitignore rules for common credential and secret files:
- Environment files (.env, .env.*)
- Private keys and certificates (.pem, .key, .p12, .pfx, .crt)
- Credential files (credentials.json, secrets.yaml, etc.)
- Cloud provider credentials (AWS, SSH keys)
- API tokens and keys (.npmrc, .pypirc, .netrc, *.token)
- Docker and Kubernetes secrets
- Database files that may contain credentials
- OAuth tokens and client secrets
- GPG keys
- Terraform and Ansible vault files
- IDE credential storage
- Shell history files
- Local config files that may contain secrets
- Jupyter notebook checkpoints
- GitHub and AI service tokens

* Remove database extensions from gitignore

OpenMS uses SQLite databases (via SQLiteCpp library, MzMLSqliteHandler,
SqliteConnector, etc.) so *.sqlite, *.sqlite3, and *.db should not be ignored.

---------

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

* MetaboliteSpectralMatcher fixes from playing with Nucleosides (#8163)

* Update src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp

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

* Update src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp

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

* Apply suggestions from code review

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

* Update MetaboliteSpectralMatching.cpp

* fix

* add test with GNPS MGF

---------

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

* propagate extern libs settings to package (#8556)

* fix macos pkg logo (#8554)

* Inital steps for moving to LightTransition (WIP) (#8544)

* inital commit

* Fix pyOpenMS build for C++20 and modern dependencies

IDFilter.h:
- Add IsNotIdentificationVector concept to disambiguate template overloads
- Add removeEmptyIdentifications(PeptideIdentificationList&) overload
- Fixes autowrap-generated binding compilation with C++20 concepts

setup.py:
- Use numpy.get_include() for numpy 2.x compatibility
- Update C++ standard from C++17 to C++20 (required for OpenMS concepts)
- Change Qt5 to Qt6 on Linux (matches OpenMS build)
- Change libomp to gomp (GNU OpenMP runtime for GCC builds)
- Fix libraries.extend() bug: was iterating string characters instead of append

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

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

* Fix issues from CodeRabbit PR review

- MRMDecoy.cpp: Fix shuffle check to use decoy_temp_peptide instead of temp_peptide
- LightTargetedExperiment.pxd: Add missing isPrecursorImSet() and getPrecursorIM() methods
- OpenSwathAssayGenerator.cpp: Fix if/else-if chain for output file type handling
- OpenSwathDecoyGenerator.cpp: Add division by zero protection and fix if/else-if chain

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

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

* Add tests for light and heavy decoy generation paths

Add test 6 (light path) and test 7 (heavy path) for OpenSwathDecoyGenerator
to verify both code paths produce correct output:
- Test 6: TSV -> TSV using LightTargetedExperiment (memory-efficient path)
- Test 7: TSV -> TraML using TargetedExperiment (full feature path)

Both tests use the same input (OpenSwathDecoyGenerator_input_4.tsv) and
parameters to verify that the light and heavy paths generate equivalent
decoy sequences.

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

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

* Add debug logging for transition sequence parsing failures

Add OPENMS_LOG_DEBUG statement when transitions are skipped due to
unparseable sequences, improving debuggability.

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

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

* Implement pure light-path decoy generation methods

Address PR review feedback from singjc regarding memory efficiency:
- Add reversePeptideLight() for light peptide sequence reversal
- Add shufflePeptideLight() for light peptide shuffling with mods
- Add pseudoreversePeptideLight_() for pseudo-reverse (keep C-term)
- Add switchKRLight() for terminal K/R switching
- Add hasCNterminalModsLight_() for terminal mod detection
- Update generateDecoysLight() to use pure light methods

These methods operate directly on std::string and LightModification
vectors, avoiding temporary TargetedExperiment::Peptide allocations
for improved memory efficiency with large spectral libraries.

Also includes:
- Documentation for detecting/quantifying transition defaults
- PQP output tests for light path
- TODO comment for future IPF light path support
- Comprehensive unit tests comparing light vs heavy methods

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

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

* Refactor MRMDecoy heavy methods to delegate to light implementations

Reduces code duplication by having heavy methods call their light
counterparts with conversion helpers:

- Add detail::toLightMods() to convert heavy Peptide::Modification to
  LightModification format
- Add detail::applyLocationUpdates() to apply location changes back
- shufflePeptide() now delegates to shufflePeptideLight()
- reversePeptide() now delegates to reversePeptideLight()
- switchKR() now delegates to switchKRLight()
- hasCNterminalMods_() now delegates to hasCNterminalModsLight_()

Also fixes identity comparison in shufflePeptideLight to compare against
the working copy (peptide_seq) rather than original sequence, matching
the original heavy method behavior where the peptide object gets updated
during mutation phases.

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

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

* Add FuzzyDiff -sort flag for order-independent file comparison

- Add -sort flag to FuzzyDiff that sorts data lines before comparison
  (preserves header as first line)
- Update PQP roundtrip test to use -sort flag since PQP reader returns
  transitions ordered by ID, not by original insertion order
- Update light-path roundtrip test to use -sort flag
- Add expected output files for roundtrip tests with correct TSV format
  (UniprotId is empty in PQP roundtrip since PQP format doesn't store it)

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

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

* Implement light-path IPF support for uisTransitionsLight()

Add memory-efficient light version of uisTransitions() to enable IPF
(Identification Peptide Fragment) workflows for large-scale spectral
libraries without loading full TargetedExperiment objects.

Key implementations:
- generateTargetInSilicoMapLight_(): Generate theoretical peptidoforms
- generateDecoyInSilicoMapLight_(): Generate decoy peptidoforms
- generateTargetAssaysLight_(): Create UIS transitions with peptidoforms
- generateDecoyAssaysLight_(): Create decoy UIS transitions (filtered)
- uisTransitionsLight(): Main orchestrator following 4-step pipeline

Critical bug fixes applied during review:
- Use target peptide's SWATH index for decoy generation (not decoy's)
- Use target compound id as DecoyPeptideMap key (matching heavy version)
- Remove incorrect DECOY_ prefix stripping in decoy assay generation

Update OpenSwathAssayGenerator to use light path with -enable_ipf when
input/output formats support it (PQP, TSV, MRM).

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

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

* Add IPF light path tests and fix sequence reconstruction bug

- Fix getAASequenceFromLightCompound() to handle both PQP input (full
  modified sequence) and TraML input (unmodified + modifications vector)
- Fix generateDecoyAssaysLight_() to use target_precursor_swath for
  DecoyIonMap lookup (matching heavy path behavior)
- Add UIS SWATH window generation and post-IPF restriction to light path
- Add command-line parameters for IPF decoy seed and disable flag
- Add class tests for uisTransitionsLight() with light/heavy equivalence
- Add TOPP test for PQP input with IPF enabled (test_4)
- Remove duplicate include in MRMDecoy_test.cpp

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

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

* Fix light-path TSV output to match heavy-path format

- Default empty GeneName and PeptideGroupLabel fields to "NA"
- Change CollisionEnergy format from "-1" to "-1.0" for consistency
- Update expected test output files

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

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

* Fix test mode to disable decoy transitions for reproducibility

The refactoring that added command-line flags for IPF decoy parameters
accidentally removed the automatic disabling of decoy transitions in
test mode. This caused TOPP_OpenSwathAssayGenerator tests to fail by
generating extra UISDECOY transitions not present in expected outputs.

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

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

* Fix light-path IPF UIS window generation to respect enable_swath_specifity

The light-path IPF code only checked swathes.empty(), causing divergence
from the heavy path which respects the enable_swath_specifity flag. Changed
the condition to (!enable_swath_specifity || swathes.empty()) to match the
heavy path behavior. Also fixed the loop calculation to use Math::round()
instead of truncation for consistent window count computation.

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

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

* Optimize LightTransition memory layout with compact types

Memory optimizations for LightTransition struct:
- Add FragmentIonType enum (1 byte vs 32+ bytes for std::string)
- Add TransitionFlags bitfield for packed bools (1 byte vs 4+ bytes)
- Change fragment_charge from int to int8_t (4 bytes → 1 byte)
- Change fragment_nr from int to int16_t (4 bytes → 2 bytes)

Estimated savings: ~39+ bytes per transition (~19 MB for 500K transitions)

Updated all consumers to use new getter/setter API:
- TransitionPQPFile.cpp, TransitionTSVFile.cpp (I/O)
- MRMAssay.cpp, MRMDecoy.cpp (assay/decoy generation)
- DataAccessHelper.cpp, OpenSwathHelper.cpp (utilities)
- MRMFeatureFinderScoring.cpp (feature finding)
- pyOpenMS bindings (LightTargetedExperiment.pxd)

All 2383 relevant tests pass.

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

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

* Eliminate annotation string field from LightTransition

Replace stored annotation string with getAnnotation() method that
reconstructs annotations from existing fields (fragment_type, fragment_nr,
fragment_charge). This saves ~32 bytes per transition.

Key changes:
- Add getAnnotation() method to LightTransition that builds annotation
  strings like "b4^1", "y10^2", "prec" from fragment metadata
- Update MRMAssay.cpp to extract charge from annotation strings when
  parsing (format: type + ordinal + "^" + charge)
- Update MRMDecoy.cpp similarly for decoy transition generation
- Update TransitionTSVFile.cpp and TransitionPQPFile.cpp to use
  getAnnotation() instead of direct field access
- Update pyOpenMS bindings to expose getAnnotation() method

The annotation format matches MRMIonSeries.cpp which generates
annotations as: type + ordinal + "^" + charge (e.g., "b4^1")

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

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

* Fix decoy compound ID bug in light-path IPF generation

The light-path decoy generation was incorrectly setting decoy_compound.id
to "DECOY_" + compound.id, causing decoy transitions to reference
non-existent compound IDs. This differed from the heavy-path behavior
where decoy peptide IDs are kept identical to target peptide IDs.

Fixed by removing the "DECOY_" prefix, matching the heavy-path approach
where decoy transitions reference target compounds (which exist) and are
distinguished by their decoy flag instead of a different compound ID.

Also updated test reference file to reflect correct annotation
reconstruction from structured fields (FragmentType + FragmentSeriesNumber
+ FragmentCharge).

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

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

* Fix heavy-path UIS swath window generation when swathes is empty

The heavy-path IPF code only checked !enable_swath_specifity to decide
whether to generate default UIS swath windows, while the light-path
correctly checks (!enable_swath_specifity || swathes.empty()).

This caused the heavy-path to use empty swathes when enable_swath_specifity
was true but no swathes were provided, resulting in no swath windows being
generated for UIS transitions.

Fixed by adding || swathes.empty() to match the light-path logic.

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

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

* Fix duplicate conditions in stringToFragmentIonType

Remove redundant duplicate OR operands in z-prime and z-dot ion checks.
The conditions (s == "z'" || s == "z'") and (s == "z." || s == "z.")
were copy-paste mistakes with identical strings on both sides.

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

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

* Fix ambiguous operator+ between String and std::string

Explicitly wrap tr.getFragmentType() in String() to avoid ambiguous
overload resolution between String::operator+ and std::string::operator+
on some compilers/platforms.

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

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

* Light-path TSV output: use NA for empty fields and fix pyOpenMS bindings

- Add NA handling for empty fields in light-path TSV output:
  label_type, compound_name, sum_formula, smiles, adducts,
  peptide_sequence, full_peptide_name, protein_names, uniprot_ids
- Fix pyOpenMS LightTargetedExperiment.pxd: use int instead of
  signed char/short for fragment_charge and fragment_nr to avoid
  Cython treating int8_t as bytes type
- Update test reference files to reflect new NA values

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

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

* Add light/heavy path equivalence tests for TransitionTSVFile

Add comprehensive unit tests verifying equivalence between light and
heavy paths for transition library I/O:

- Light path TSV roundtrip test
- Light vs Heavy path equivalence via PQP roundtrip
- Light path preserves transition flags (detecting/quantifying/identifying)
- Light path preserves fragment annotation

Tests use field normalization to handle expected empty/"NA" differences
between paths while catching real bugs.

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

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

* Add streaming TSV parser for ~5x memory reduction

Implement streamTSVToLightTargetedExperiment_() which reads TSV files
directly into LightTargetedExperiment without creating an intermediate
vector<TSVTransition>. This eliminates the memory duplication where
data was stored twice during parsing.

Memory improvement for 1M transitions:
- Old: ~630MB peak (500MB TSVTransition vector + 130MB LightExperiment)
- New: ~130MB peak (only LightTargetedExperiment + small tracking maps)

Key implementation details:
- Single TSVTransition buffer reused for each line
- Inline mixed sequence group detection during streaming
- Immediate conversion to LightTransition/LightCompound/LightProtein
- Progress tracking with line count pre-scan

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

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

* Add streaming PQP reader for ~5x memory reduction

Implement streamPQPToLightTargetedExperiment_() which reads PQP files
directly into LightTargetedExperiment without creating an intermediate
vector<TSVTransition>. This eliminates memory duplication during parsing.

Memory improvement for 1M transitions:
- Old: ~630MB peak (500MB TSVTransition vector + 130MB LightExperiment)
- New: ~130MB peak (only LightTargetedExperiment + small tracking maps)

Key implementation details:
- Direct SQL row to LightTransition conversion
- Compound/protein deduplication inline during streaming
- Same SQL queries as original for compatibility

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

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

* Light-path TSV: use empty fields for LabelType, CompoundName, SumFormula, SMILES

Remove NA handling for these 4 fields to match heavy-path output format.
Only Adducts remains as NA when not set.

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

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

* Cleanup: remove dead code and refactor PQP SQL query building

- Remove unused TSVToTargetedExperiment_ overload for LightTargetedExperiment
  (now handled by streaming parser)
- Extract duplicated SQL query building into buildPQPSelectQuery_() helper
- Add PQPSqlQueryInfo struct to hold query and column availability flags
- Net reduction of ~240 lines of code

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

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

* Use std::map for MRMIonSeries::IonSeries for ARM64 portability

Change IonSeries typedef from std::unordered_map to std::map to ensure
deterministic iteration order across all platforms. This fixes potential
ARM64 portability issues where hash table iteration order differs from
x86_64, causing different ion annotation results when tie-breaking in
annotateIon().

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

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

* Fix switchKRLight() to use portable deterministic hash

Replace static RNG with FNV-1a hash of peptide sequence for selecting
replacement amino acids. This ensures:
- Same peptide always gets the same replacement AA (reproducible)
- Results are independent of processing order (portable across platforms)
- Fixes ARM64 portability issue where hash table iteration order differs

Updated test expected outputs to reflect the new deterministic behavior.

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

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

* Remove dead srand() calls in MRMDecoy

The srand(time(nullptr)) calls seeded C's rand() function, but
portable_random_shuffle() uses boost::mt19937_64 which is independent.
These calls had no effect on program behavior.

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

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

* Light-path TSV: use empty fields for Adducts and UniprotId

For consistency with heavy-path output, leave Adducts and UniprotId
columns empty instead of "NA" when not set.

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

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

* Fix OpenSwathAssayGenerator test_4 for cross-platform portability

PQP files (SQLite binary format) have platform-dependent internal
layout, causing byte-by-byte comparison to fail on macOS ARM64.
Changed test to use TSV roundtrip comparison with -sort flag for
portable testing.

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

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

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>

* [DOC] Improve AGENTS.md based on best practices research (#8560)

Restructure AGENTS.md following the AGENTS.md standard best practices:
- Add Critical Constraints section upfront (what NOT to do)
- Add Quick Commands section with copy-paste ready commands
- Add code examples for naming conventions and file structure
- Add testing pattern examples with actual code
- Add verification commands section
- Create concise change impact checklist table
- Consolidate external links to essential resources only
- Improve overall structure for agent consumption

Based on research from GitHub's analysis of 2,500+ repositories
and the official AGENTS.md specification.

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

* Remove outdated template files and update test creation documentation (#8548)

* Initial plan

* Remove outdated templates and update documentation references

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

---------

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

* [DOC] Improve AGENTS.md based on best practices research (#8563)

* [DOC] Improve AGENTS.md based on best practices research

Enhance AGENTS.md following the AGENTS.md standard best practices while
preserving all original content:

Added:
- Critical Constraints section upfront (explicit "NEVER do" list)
- Quick Commands section with copy-paste ready bash commands
- Visual directory tree for repo layout
- Code examples for naming conventions, file structure, and tests
- Commit message example
- Debugging command examples

Preserved:
- All original build/install instructions
- All testing guidelines and details
- All coding conventions
- All pyOpenMS wrapping details
- All external documentation links
- All CI/packaging information

Based on research from GitHub's analysis of 2,500+ repositories
and the official AGENTS.md specification.

* [DOC] Add Doxygen style guide and OS-specific build gotchas to AGENTS.md

Expand AGENTS.md with detailed information researched from the codebase:

Doxygen Documentation Style:
- File header format with $Maintainer$ and $Authors$ markers
- Class documentation with @brief, @ingroup, @htmlinclude
- Method documentation with @param[in/out], @return, @throws
- Constructor/destructor grouping with @name and //@{
- Inline documentation with /// comments
- Common Doxygen tags reference table

Platform-Specific Build Gotchas:
- Windows: MSVC requirements, MinGW not supported, Release/Debug mixing
- macOS: AppleClang linker flag, Qt PrintSupport, code signing
- Linux: PIC flags, STL debug mode, headless GUI testing
- Qt6: version requirements, component dependencies, WebEngine
- Boost: Homebrew static linking issues and workarounds
- CMake: CMAKE_SIZEOF_VOID_P bug, Eigen3 version detection

Also added:
- Required and optional dependency lists
- CMake minimum version (3.21) and C++20 standard requirement

---------

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

* Cleanup TOPP tests, clean gitignore (#8555)

* Fix some race conditions in topp tests

* remove files that shouldn''t be tracked

* start moving temporary topp files into separate directory

* second batch of topp tests fixed.

* third batch

* fourth pass

* ixed the hardcoded CSV output path to use the input file's directory instead of the test execution directory, and corrected all 8 instances of "ambigious" → "ambiguous" spelling

* re-add idripper idxmls

* re-organize .gitignore

* more .gitignore cleanup

* create proper temp files for tests

* gitignore cleanup

* remove dupes from merge

* address coderabbit comments

* Fix temp file location

* use QDir for constructing paths in OpenNuXL

* Remove overbroad test file exclusions from gitignore

* Address code comments.

* Document ProteomicsLFQ automatic median normalization behavior (#8438)

* Initial plan

* Document ProteomicsLFQ normalization behavior

- Add detailed normalization documentation to Doxygen header
- Clarify automatic median normalization for feature intensity quantification
- Document when normalization is disabled (MSstats/Triqler output)
- Explain relationship between consensus feature normalization and ProteinQuantification:consensus:normalize
- Add inline code comments for better code clarity
- Update PeptideAndProteinQuant parameter description
- Provide workaround for using alternative normalization methods

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

* Fix hyphenation in documentation

Use proper compound adjective form "feature-intensity-based" instead of "feature intensity-based"

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

* Apply suggestions from code review

---------

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

* Enhance DataValue conversion error messages with type and value context (#8572)

* Initial plan

* Improve DataValue error messages to include type and value information

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

* Add tests to verify improved DataValue error messages

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

---------

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

* Document wrapping classes with deleted/private constructors in pyOpenMS (#8561)

* Initial plan

* Document how to wrap classes with deleted/private constructors in pyOpenMS

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

* Fix spacing in wrap-ignore comment for consistency

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

* Add namespace context to XMLHandler example for accuracy

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

* Add clarifying notes about singleton getInstance() overloads

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

* Improve documentation for wrap-manual-memory and fix Pattern 4 example

- Add wrap-manual-memory directive to "Hints to autowrap" section
- Document autowrap naming convention for wrap-ignore'd functions
- Fix misleading wrap-manual-dealloc reference (not a real directive)
- Update Pattern 4 example to match actual ConsensusIDAlgorithm.pxd
- Use PeptideIdentificationList instead of outdated libcpp_vector type

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

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

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
Co-authored-by: Timo Sachsenberg <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>

* Add precursor m/z range filter option to PeakFileOptions

Adds setPrecursorMZRange(), hasPrecursorMZRange(), and getPrecursorMZRange()
methods to filter spectra based on their precursor m/z values. Updates
hasFilters() to include this new filter type.

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

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

---------

Co-authored-by: Timo Sachsenberg <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: jpfeuffer <[email protected]>
Co-authored-by: Samuel Wein <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Justin Sing <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
timosachsenberg added a commit that referenced this pull request Dec 29, 2025
* Add PeakFileOptions support to OnDiscMSExperiment

This enables users to set filtering options (m/z range, intensity range,
RT range, MS levels, etc.) for OnDiscMSExperiment, similar to how it works
for in-memory MSExperiment loading via FileHandler.

Changes:
- Added PeakFileOptions member and getOptions/setOptions methods
- Options are applied when loading metadata (RT range, MS levels filter)
- Options are applied when retrieving spectra (m/z, intensity filters)
- Options are applied when retrieving chromatograms (RT, intensity filters)
- Updated copy constructor to copy options
- Added pyOpenMS bindings for new methods
- Added comprehensive tests for the new functionality

* Optimize OnDiscMSExperiment to skip I/O for filtered spectra

When RT range or MS level filters are set, check metadata BEFORE loading
peak data. If a spectrum doesn't pass these filters, return it with
metadata but skip the expensive I/O operation to load peaks.

This allows efficient iteration over large files where only a subset
of spectra are needed based on RT or MS level criteria.

* Fix metadata loading to maintain index correspondence

Changed loadMetaData_() to always load ALL metadata without RT/MS level
filters. This ensures index correspondence between indexed_mzml_file_ and
meta_ms_experiment_ is maintained.

Filtering behavior for OnDiscMSExperiment:
- RT range and MS level filters are checked at retrieval time (skips I/O)
- Filtered spectra return with metadata but no peaks
- All indices are preserved (unlike in-memory loading where filtered
  spectra are removed from the container)

Also added comprehensive documentation explaining this behavior.

* feature: Add PeakFileOptions support to OnDiscMSExperiment (#8534)

* [FEATURE] Add FAIMS support to ProteomicsLFQ (#8478)

- Annotate peptide IDs with FAIMS_CV from spectrum data before feature
  detection, enabling proper per-CV filtering in FeatureFinderIdentificationAlgorithm
- Add documentation describing FAIMS support: automatic detection,
  per-CV processing, feature merging, and downstream alignment/linking

FAIMS data is now automatically handled:
1. FFI splits data by compensation voltage and processes each CV group
2. Features from different CVs representing the same analyte are merged
3. Merged features are aligned and linked based on RT and m/z

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

Co-authored-by: Claude Opus 4.5 <[email protected]>

* Add append() and extend() methods to pyOpenMS map classes with __len__ support (#8510)

Implements feature request #8124 by adding Pythonic methods to:
- ConsensusMap: __len__, append, extend
- FeatureMap: __len__, append, extend
- PeptideIdentificationList: append, extend (already had __len__)

These methods provide a more Pythonic interface:
- __len__() enables use of built-in len() function
- append() adds single items (equivalent to push_back())
- extend() adds multiple items from iterables or other map objects

Includes comprehensive unit tests for all new methods.

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

* Store PeptideIndexer settings as metavalues in SearchParameters (#8489)

* Initial plan

* Add PeptideIndexer settings as metavalues in ProteinIdentification

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

* Extract metavalue keys as constants to improve maintainability

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

* Remove trailing whitespace from PeptideIndexing.h

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

* Use !empty() instead of size() > 0 for better readability

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

* Store PeptideIndexer settings in SearchParameters instead of ProteinIdentification

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

* Remove unnecessary static constants for metavalue keys

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

* Fix PeptideIndexing test and update test output files

- Fix unit test to provide ProteinIdentification before running
  (the test was creating an empty prot_ids vector but expecting
  metavalues to be set - the code only updates existing
  ProteinIdentifications)
- Update all PeptideIndexer TOPP test expected output files to
  include the new metavalues in SearchParameters

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

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

* Add PeptideIndexer settings to TOPP test expected output files (#8509)

Update expected output files to include PeptideIndexer settings that are
now written to SearchParameters. This includes decoy_string, enzyme,
enzyme_specificity, and related parameters.

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

Co-authored-by: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jpfeuffer <[email protected]>
Co-authored-by: Timo Sachsenberg <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>

* Add PeptideIndexer params to SageAdapter test output (#8518)

Update the SageAdapter_1_out.idXML test file to include the
PeptideIndexer metavalues that were missing from the PR #8509
update which added these to other adapter test files.

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

* Check the return value of configure so that we stop on configure errors (#8515)

* Check the return value of configure so that we stop on configure errors

* make sure nsis is in path.

* Simplify notarization step in CI workflow

Removed redundant notarization parameters from CI workflow.

* fix cat-on-keyboard error

Updated the workflow to use a structured THIRDPARTY directory.

* Simplify CI workflow by removing deb dependency check

Removed conditional dependency installation for deb packages in CI workflow.

* Use external libraries from Debian repos to prevent deb package conflicts (#8496)

* Initial plan

* Use external SQLite3, SQLiteCpp, nlohmann-json, and SIMDe from Debian repos

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

* Fix debian package dependencies - SQLiteCpp is static library

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

* Add documentation for USE_EXTERNAL_* CMake options

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

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jpfeuffer <[email protected]>
Co-authored-by: Samuel Wein <[email protected]>

* Use unsigned channel identifiers in peptide quantification (#8516)

* Remove non-schema CMakeLists.txt from OPENSWATH directory (#8513)

* Initial plan

* Remove non-standard CMakeLists.txt from OPENSWATH directory

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

---------

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

* explicitly add timestamping to notarization process (#8527)

* Hide Eigen from OpenMS public API (Issue #8456) (#8511)

* Hide Eigen from OpenMS public API (Issue #8456)

This implements Option D from issue #8456: use Eigen::Map only without PIMPL.

Changes:
- Move Eigen3::Eigen from PUBLIC to PRIVATE linking in CMakeLists.txt
- Rewrite Matrix<T> to use std::vector<T> storage (column-major)
- Add internal MatrixEigen.h with eigenView() for zero-copy Eigen access
- Refactor TraceFitter/LevMarqFitter1D GenericFunctor to use raw double*
  instead of Eigen types in public interface
- Update all internal code to use eigenView() where Eigen operations needed
- Add missing includes (<cmath>, <Eigen/LU>, <Eigen/QR>) where needed
- Update tests to link against Eigen when using eigenView() directly

The Matrix class now provides:
- std::vector storage with data() pointer access
- getValue/setValue methods for element access
- eigenView() (internal) for full Eigen matrix operations

Downstream users no longer need Eigen headers when using OpenMS.

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

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

* Add pyOpenMS test for Matrix column-major ordering

Add testMatrixDoubleColumnMajorOrdering() to verify that the Matrix class
correctly preserves row/column ordering when passing data between numpy
and C++. This test catches potential column-major vs row-major issues that
could cause data transposition.

The test verifies:
- Shape preservation (3x4 matrix stays 3x4, not transposed to 4x3)
- Element-by-element verification via getValue matches numpy indexing
- Round-trip preservation (numpy -> C++ -> numpy)
- View indexing matches getValue for all elements
- Modifications through numpy view are reflected in C++ object
- Highly non-square matrices (2x5) work correctly

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

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

* Fix Doxygen for solveNNLS_ to document in-place matrix modification

Update the documentation for the non-const solveNNLS_ overload to correctly
indicate that correction_matrix is modified in-place by the NNLS solver.
Changed @param[in] to @param[in,out] and added a @note explaining that
this overload mutates the matrix for efficiency, with a reference to the
const-preserving overload for cases where the original must be preserved.

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

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

* Fix Doxygen for computeStats_ to correctly document parameters

- Change @param[out] x_naive to @param[in] (it's const reference input)
- Change @param[in] stats to @param[in,out] (it's modified by function)
- Clarify that x_naive is LU-decomposition solution, not "uncorrected"

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

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

* Fix Doxygen param annotations for NonNegativeLeastSquaresSolver

Add proper @param[in], @param[out], @param[in,out] annotations based on
actual implementation behavior:
- const Matrix& overload: A and b are [in] (copies made internally)
- raw pointer overload: A and b are [in,out] (modified by NNLS solver)
- Matrix& overload: A and b are [in,out] (passed to raw pointer version)

Also clarify in @brief that const overload preserves originals while
non-const overloads modify inputs in-place for efficiency.

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

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

* Fix misleading comments about Matrix template instantiations

Remove contradictory comment that said "No explicit template instantiations
needed" when explicit instantiations are present. Clarify that these are
explicit instantiations to compile template code into libOpenMS.so, not
"default instances for backwards compatibility".

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

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

* Remove Eigen dependency from NonNegativeLeastSquaresSolver_test

Remove include of internal MatrixEigen.h header and replace Eigen::Index
with Size. This aligns with the PR goal of hiding Eigen from the public API.

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

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

* Add unit tests for internal MatrixEigen utilities

Test coverage for the internal Eigen-based utilities in MatrixEigen.h:
- eigenView() for mutable and const Matrix
- eigenVectorView() for std::vector and raw pointers
- eigenMatrixView() for raw pointers
- Zero-copy verification (modifications through view affect original)
- Eigen operations work correctly on views
- Matrix/view consistency with column-major storage

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

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

* Add pointer-safety documentation for NNLS raw-pointer overload

Document memory requirements, ownership semantics, and lifetime constraints
for the double* A parameter:
- Must be non-null, pointing to A_rows * A_cols contiguous doubles
- Column-major storage order required
- Caller retains ownership and must ensure validity during call
- Contents modified in-place and undefined after call
- nullptr or undersized buffer is undefined behavior

Also add note recommending Matrix& overload for safety and mention
std::span as potential future improvement.

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

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

* Link MRMScoring_test to Eigen3::Eigen

MRMScoring_test.cpp includes MatrixEigen.h which requires Eigen headers.
Since Eigen is a PRIVATE dependency of OpenMS, tests that directly include
internal Eigen-dependent headers must explicitly link to Eigen3::Eigen.

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

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

* Remove Eigen dependency from ImageCreator

- Add maxValue() and minValue() methods to Matrix class using std::max_element/std::min_element
- Update ImageCreator.cpp to use Matrix::maxValue() instead of eigenView().maxCoeff()
- Remove MatrixEigen.h include from ImageCreator.cpp

This fixes the build error where ImageCreator failed to compile because
it included MatrixEigen.h but TOPP tools don't link against Eigen3::Eigen.

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

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

* Replace Eigen::Index with Size in test files

Part of hiding Eigen from the public API. Tests should not use
Eigen types directly since Eigen is an internal implementation detail.

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

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

* Add missing <atomic> include to MzMLHandler.cpp

Fix build failure caused by missing std::atomic include. This was
previously provided transitively through Eigen headers.

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

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

* Fix Doxygen documentation warnings in Matrix.h (#8529)

* Initial plan

* Fix Doxygen warnings in Matrix.h getValue/setValue documentation

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

---------

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

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Copilot <[email protected]>

* Wrap Math::getPPM template functions for Python bindings (#8525)

* Initial plan

* Add Math.pxd wrapper and unit tests for Math::getPPM functions

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

* Update Math.pxd to properly handle template functions with concrete double type

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

* Remove unnecessary wrap-as directives from Math.pxd

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

* Improve documentation for Math class wrapper with usage examples

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

* Add wrap-doc documentation at function level for all Math functions

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

* Update Math class documentation to be more general and extensible

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

---------

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

* Add precursor m/z range filter to PeakFileOptions (#8526)

* Initial plan

* Add precursor m/z range filter support to PeakFileOptions

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

* Implement precursor m/z range filtering in MzML, MzXML, and MzData handlers

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

* Fix MzXMLHandler to properly skip filtered spectra by removing from spectrum_data_

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

---------

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

* Initial plan

* Changes before error encountered

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

* Remove MS level check from precursor m/z range filter

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

* [DOC] Add AGENTS.md guidance (#8537)

* [DOC] Add AGENTS.md guidance

* [DOC] Update TOPP tool documentation paths

* Implement to_df directly in Cython files (#8520)

* Move get_df() methods directly into Cython .pyx addon files

Instead of using Python wrapper classes in _dataframes.py to add DataFrame
export functionality, implement get_df() directly in the Cython addon files
alongside get_data_dict(). This simplifies the architecture by:

- Removing the "duck typing hack" of wrapper classes that override Cython classes
- Putting all DataFrame logic in one place (the Cython addon files)
- Making the code flow more straightforward

Changes:
- MSSpectrum.pyx: Added get_df()
- MSChromatogram.pyx: Added get_df()
- Mobilogram.pyx: Added get_df()
- MSExperiment.pyx: Added get_df_columns(), get_df(), get_ion_df(), get_massql_df()
- ConsensusMap.pyx: Added get_df_columns(), get_intensity_df(), get_metadata_df(), get_df()
- FeatureMap.pyx: Added get_df_columns(), get_df(), get_assigned_peptide_identifications()
- MRMTransitionGroupCP.pyx: New addon with get_chromatogram_df(), get_feature_df() methods
- _dataframes.py: Simplified to only export standalone functions
- README.md: Updated documentation to reflect new pattern

* Add get_df() to PeptideIdentificationList and comprehensive tests

- Add get_df() and update_scores_from_df() methods to PeptideIdentificationList.pyx
  following the same pattern as other data structures
- Update _dataframes.py to use backwards-compatible wrapper functions that call the
  new methods (peptide_identifications_to_df → peps.get_df(), update_scores_from_df → peps.update_scores_from_df())
- Simplify _dataframes.py by removing duplicate implementation code
- Add comprehensive tests for:
  - PeptideIdentificationList.get_df() with various parameters
  - PeptideIdentificationList.update_scores_from_df()
  - Mobilogram.get_df() column selection
  - Backwards-compatible wrapper functions

* Fix Cython compilation errors in get_df() addon methods

- Use lazy pandas imports inside methods to avoid module-level import issues
- Replace bool() calls with len() > 0 to avoid Cython type conflicts
- Replace {bool: ...} dict keys with {type(True): ...} for same reason
- Rename 'long' parameter to 'long_format' to avoid Cython keyword conflict

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

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

* Add to_arrow() methods for Apache Arrow Table export

Add to_arrow() methods to pyOpenMS classes following the Polars naming convention:
- MSSpectrum.to_arrow() - reuses get_data_dict() for efficient numpy-to-Arrow conversion
- MSChromatogram.to_arrow() - reuses get_data_dict()
- Mobilogram.to_arrow() - reuses get_data_dict()
- MSExperiment.to_arrow() - supports long_format parameter like get_df()
- ConsensusMap.to_arrow() - wraps get_df() with pa.Table.from_pandas()
- FeatureMap.to_arrow() - wraps get_df() with pa.Table.from_pandas()
- MRMTransitionGroupCP.chromatograms_to_arrow(), features_to_arrow()
- PeptideIdentificationList.to_arrow()

All methods use lazy imports for pyarrow to keep it as an optional dependency.

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

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

* Fix UnboundLocalError in PeptideIdentificationList.get_df()

When a PeptideHit doesn't have a particular metavalue, the code would
reference an undefined 'val' variable. Fix by using the precomputed
dmv[idx] array which already contains the correct default missing value
for each metavalue's type.

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

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

* Fix bugs and add tests for DataFrame/Arrow export

Bug fixes:
- ConsensusMap.get_intensity_df(): Fix np.fromiter count truncation
  by computing actual row count (one row per file per feature)
- MSExperiment.get_massql_df(): Fix division by zero in intensity
  normalization for empty spectra or all-zero intensities
- _dataframes.py: Fix 'any' to 'Any' type hint import

Tests added:
- TestToArrowMethods: 7 tests for to_arrow() across all classes
- TestBugFixes: 3 tests for the bug fixes above

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

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

* Fix FeatureMap.get_df() missing spectrum_native_id check

Add existence check for 'spectrum_native_id' meta value before calling
getMetaValue() in extract_meta_data(). This follows the same pattern
used in get_assigned_peptide_identifications().

Without this check, calling get_df() on a FeatureMap where some features
lack the 'spectrum_native_id' meta value could fail unexpectedly.

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

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

* Fix test parameter name mismatch in MSExperiment.get_df() test (#8523)

* Initial plan

* Fix test parameter name: change long= to long_format= in MSExperiment test

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

---------

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

* Potential fix for pull request finding 'Unused import'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggestions from code review

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

* Make pandas and pyarrow optional dependencies with Sphinx docstrings (#8535)

* Initial plan

* Remove pandas from required dependencies and fix docstrings

- Removed pandas from install_requires in setup.py (now optional)
- Added ImportError with helpful message when pandas is not installed
- Fixed all docstrings to use Sphinx reStructuredText format (:param, :type, :return, :rtype, :raises)
- Updated docstrings in 8 addon files (ConsensusMap, FeatureMap, MRMTransitionGroupCP, MSChromatogram, MSExperiment, MSSpectrum, Mobilogram, PeptideIdentificationList)
- Also added ImportError handling for pyarrow imports (optional dependency)

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

* Fix remaining to_arrow() docstrings to use Sphinx format

- Updated all to_arrow() method docstrings to use Sphinx reStructuredText format
- Fixed docstrings in ConsensusMap, FeatureMap, MRMTransitionGroupCP, MSChromatogram, MSExperiment, MSSpectrum, Mobilogram, PeptideIdentificationList
- All DataFrame and Arrow export methods now have consistent Sphinx-style documentation

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

---------

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

* Install pandas and pyarrow for CI test job (#8539)

* Initial plan

* Install pandas and pyarrow in test job for optional dependency tests

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

---------

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

* some review comments (#8540)

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Justin Sing <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Add security patterns to .gitignore to prevent credential leaks (#8545)

* Add security patterns to .gitignore to prevent credential leaks

Add comprehensive gitignore rules for common credential and secret files:
- Environment files (.env, .env.*)
- Private keys and certificates (.pem, .key, .p12, .pfx, .crt)
- Credential files (credentials.json, secrets.yaml, etc.)
- Cloud provider credentials (AWS, SSH keys)
- API tokens and keys (.npmrc, .pypirc, .netrc, *.token)
- Docker and Kubernetes secrets
- Database files that may contain credentials
- OAuth tokens and client secrets
- GPG keys
- Terraform and Ansible vault files
- IDE credential storage
- Shell history files
- Local config files that may contain secrets
- Jupyter notebook checkpoints
- GitHub and AI service tokens

* Remove database extensions from gitignore

OpenMS uses SQLite databases (via SQLiteCpp library, MzMLSqliteHandler,
SqliteConnector, etc.) so *.sqlite, *.sqlite3, and *.db should not be ignored.

---------

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

* MetaboliteSpectralMatcher fixes from playing with Nucleosides (#8163)

* Update src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp

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

* Update src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp

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

* Apply suggestions from code review

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

* Update MetaboliteSpectralMatching.cpp

* fix

* add test with GNPS MGF

---------

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

* propagate extern libs settings to package (#8556)

* fix macos pkg logo (#8554)

* Inital steps for moving to LightTransition (WIP) (#8544)

* inital commit

* Fix pyOpenMS build for C++20 and modern dependencies

IDFilter.h:
- Add IsNotIdentificationVector concept to disambiguate template overloads
- Add removeEmptyIdentifications(PeptideIdentificationList&) overload
- Fixes autowrap-generated binding compilation with C++20 concepts

setup.py:
- Use numpy.get_include() for numpy 2.x compatibility
- Update C++ standard from C++17 to C++20 (required for OpenMS concepts)
- Change Qt5 to Qt6 on Linux (matches OpenMS build)
- Change libomp to gomp (GNU OpenMP runtime for GCC builds)
- Fix libraries.extend() bug: was iterating string characters instead of append

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

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

* Fix issues from CodeRabbit PR review

- MRMDecoy.cpp: Fix shuffle check to use decoy_temp_peptide instead of temp_peptide
- LightTargetedExperiment.pxd: Add missing isPrecursorImSet() and getPrecursorIM() methods
- OpenSwathAssayGenerator.cpp: Fix if/else-if chain for output file type handling
- OpenSwathDecoyGenerator.cpp: Add division by zero protection and fix if/else-if chain

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

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

* Add tests for light and heavy decoy generation paths

Add test 6 (light path) and test 7 (heavy path) for OpenSwathDecoyGenerator
to verify both code paths produce correct output:
- Test 6: TSV -> TSV using LightTargetedExperiment (memory-efficient path)
- Test 7: TSV -> TraML using TargetedExperiment (full feature path)

Both tests use the same input (OpenSwathDecoyGenerator_input_4.tsv) and
parameters to verify that the light and heavy paths generate equivalent
decoy sequences.

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

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

* Add debug logging for transition sequence parsing failures

Add OPENMS_LOG_DEBUG statement when transitions are skipped due to
unparseable sequences, improving debuggability.

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

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

* Implement pure light-path decoy generation methods

Address PR review feedback from singjc regarding memory efficiency:
- Add reversePeptideLight() for light peptide sequence reversal
- Add shufflePeptideLight() for light peptide shuffling with mods
- Add pseudoreversePeptideLight_() for pseudo-reverse (keep C-term)
- Add switchKRLight() for terminal K/R switching
- Add hasCNterminalModsLight_() for terminal mod detection
- Update generateDecoysLight() to use pure light methods

These methods operate directly on std::string and LightModification
vectors, avoiding temporary TargetedExperiment::Peptide allocations
for improved memory efficiency with large spectral libraries.

Also includes:
- Documentation for detecting/quantifying transition defaults
- PQP output tests for light path
- TODO comment for future IPF light path support
- Comprehensive unit tests comparing light vs heavy methods

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

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

* Refactor MRMDecoy heavy methods to delegate to light implementations

Reduces code duplication by having heavy methods call their light
counterparts with conversion helpers:

- Add detail::toLightMods() to convert heavy Peptide::Modification to
  LightModification format
- Add detail::applyLocationUpdates() to apply location changes back
- shufflePeptide() now delegates to shufflePeptideLight()
- reversePeptide() now delegates to reversePeptideLight()
- switchKR() now delegates to switchKRLight()
- hasCNterminalMods_() now delegates to hasCNterminalModsLight_()

Also fixes identity comparison in shufflePeptideLight to compare against
the working copy (peptide_seq) rather than original sequence, matching
the original heavy method behavior where the peptide object gets updated
during mutation phases.

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

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

* Add FuzzyDiff -sort flag for order-independent file comparison

- Add -sort flag to FuzzyDiff that sorts data lines before comparison
  (preserves header as first line)
- Update PQP roundtrip test to use -sort flag since PQP reader returns
  transitions ordered by ID, not by original insertion order
- Update light-path roundtrip test to use -sort flag
- Add expected output files for roundtrip tests with correct TSV format
  (UniprotId is empty in PQP roundtrip since PQP format doesn't store it)

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

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

* Implement light-path IPF support for uisTransitionsLight()

Add memory-efficient light version of uisTransitions() to enable IPF
(Identification Peptide Fragment) workflows for large-scale spectral
libraries without loading full TargetedExperiment objects.

Key implementations:
- generateTargetInSilicoMapLight_(): Generate theoretical peptidoforms
- generateDecoyInSilicoMapLight_(): Generate decoy peptidoforms
- generateTargetAssaysLight_(): Create UIS transitions with peptidoforms
- generateDecoyAssaysLight_(): Create decoy UIS transitions (filtered)
- uisTransitionsLight(): Main orchestrator following 4-step pipeline

Critical bug fixes applied during review:
- Use target peptide's SWATH index for decoy generation (not decoy's)
- Use target compound id as DecoyPeptideMap key (matching heavy version)
- Remove incorrect DECOY_ prefix stripping in decoy assay generation

Update OpenSwathAssayGenerator to use light path with -enable_ipf when
input/output formats support it (PQP, TSV, MRM).

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

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

* Add IPF light path tests and fix sequence reconstruction bug

- Fix getAASequenceFromLightCompound() to handle both PQP input (full
  modified sequence) and TraML input (unmodified + modifications vector)
- Fix generateDecoyAssaysLight_() to use target_precursor_swath for
  DecoyIonMap lookup (matching heavy path behavior)
- Add UIS SWATH window generation and post-IPF restriction to light path
- Add command-line parameters for IPF decoy seed and disable flag
- Add class tests for uisTransitionsLight() with light/heavy equivalence
- Add TOPP test for PQP input with IPF enabled (test_4)
- Remove duplicate include in MRMDecoy_test.cpp

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

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

* Fix light-path TSV output to match heavy-path format

- Default empty GeneName and PeptideGroupLabel fields to "NA"
- Change CollisionEnergy format from "-1" to "-1.0" for consistency
- Update expected test output files

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

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

* Fix test mode to disable decoy transitions for reproducibility

The refactoring that added command-line flags for IPF decoy parameters
accidentally removed the automatic disabling of decoy transitions in
test mode. This caused TOPP_OpenSwathAssayGenerator tests to fail by
generating extra UISDECOY transitions not present in expected outputs.

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

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

* Fix light-path IPF UIS window generation to respect enable_swath_specifity

The light-path IPF code only checked swathes.empty(), causing divergence
from the heavy path which respects the enable_swath_specifity flag. Changed
the condition to (!enable_swath_specifity || swathes.empty()) to match the
heavy path behavior. Also fixed the loop calculation to use Math::round()
instead of truncation for consistent window count computation.

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

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

* Optimize LightTransition memory layout with compact types

Memory optimizations for LightTransition struct:
- Add FragmentIonType enum (1 byte vs 32+ bytes for std::string)
- Add TransitionFlags bitfield for packed bools (1 byte vs 4+ bytes)
- Change fragment_charge from int to int8_t (4 bytes → 1 byte)
- Change fragment_nr from int to int16_t (4 bytes → 2 bytes)

Estimated savings: ~39+ bytes per transition (~19 MB for 500K transitions)

Updated all consumers to use new getter/setter API:
- TransitionPQPFile.cpp, TransitionTSVFile.cpp (I/O)
- MRMAssay.cpp, MRMDecoy.cpp (assay/decoy generation)
- DataAccessHelper.cpp, OpenSwathHelper.cpp (utilities)
- MRMFeatureFinderScoring.cpp (feature finding)
- pyOpenMS bindings (LightTargetedExperiment.pxd)

All 2383 relevant tests pass.

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

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

* Eliminate annotation string field from LightTransition

Replace stored annotation string with getAnnotation() method that
reconstructs annotations from existing fields (fragment_type, fragment_nr,
fragment_charge). This saves ~32 bytes per transition.

Key changes:
- Add getAnnotation() method to LightTransition that builds annotation
  strings like "b4^1", "y10^2", "prec" from fragment metadata
- Update MRMAssay.cpp to extract charge from annotation strings when
  parsing (format: type + ordinal + "^" + charge)
- Update MRMDecoy.cpp similarly for decoy transition generation
- Update TransitionTSVFile.cpp and TransitionPQPFile.cpp to use
  getAnnotation() instead of direct field access
- Update pyOpenMS bindings to expose getAnnotation() method

The annotation format matches MRMIonSeries.cpp which generates
annotations as: type + ordinal + "^" + charge (e.g., "b4^1")

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

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

* Fix decoy compound ID bug in light-path IPF generation

The light-path decoy generation was incorrectly setting decoy_compound.id
to "DECOY_" + compound.id, causing decoy transitions to reference
non-existent compound IDs. This differed from the heavy-path behavior
where decoy peptide IDs are kept identical to target peptide IDs.

Fixed by removing the "DECOY_" prefix, matching the heavy-path approach
where decoy transitions reference target compounds (which exist) and are
distinguished by their decoy flag instead of a different compound ID.

Also updated test reference file to reflect correct annotation
reconstruction from structured fields (FragmentType + FragmentSeriesNumber
+ FragmentCharge).

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

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

* Fix heavy-path UIS swath window generation when swathes is empty

The heavy-path IPF code only checked !enable_swath_specifity to decide
whether to generate default UIS swath windows, while the light-path
correctly checks (!enable_swath_specifity || swathes.empty()).

This caused the heavy-path to use empty swathes when enable_swath_specifity
was true but no swathes were provided, resulting in no swath windows being
generated for UIS transitions.

Fixed by adding || swathes.empty() to match the light-path logic.

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

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

* Fix duplicate conditions in stringToFragmentIonType

Remove redundant duplicate OR operands in z-prime and z-dot ion checks.
The conditions (s == "z'" || s == "z'") and (s == "z." || s == "z.")
were copy-paste mistakes with identical strings on both sides.

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

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

* Fix ambiguous operator+ between String and std::string

Explicitly wrap tr.getFragmentType() in String() to avoid ambiguous
overload resolution between String::operator+ and std::string::operator+
on some compilers/platforms.

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

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

* Light-path TSV output: use NA for empty fields and fix pyOpenMS bindings

- Add NA handling for empty fields in light-path TSV output:
  label_type, compound_name, sum_formula, smiles, adducts,
  peptide_sequence, full_peptide_name, protein_names, uniprot_ids
- Fix pyOpenMS LightTargetedExperiment.pxd: use int instead of
  signed char/short for fragment_charge and fragment_nr to avoid
  Cython treating int8_t as bytes type
- Update test reference files to reflect new NA values

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

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

* Add light/heavy path equivalence tests for TransitionTSVFile

Add comprehensive unit tests verifying equivalence between light and
heavy paths for transition library I/O:

- Light path TSV roundtrip test
- Light vs Heavy path equivalence via PQP roundtrip
- Light path preserves transition flags (detecting/quantifying/identifying)
- Light path preserves fragment annotation

Tests use field normalization to handle expected empty/"NA" differences
between paths while catching real bugs.

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

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

* Add streaming TSV parser for ~5x memory reduction

Implement streamTSVToLightTargetedExperiment_() which reads TSV files
directly into LightTargetedExperiment without creating an intermediate
vector<TSVTransition>. This eliminates the memory duplication where
data was stored twice during parsing.

Memory improvement for 1M transitions:
- Old: ~630MB peak (500MB TSVTransition vector + 130MB LightExperiment)
- New: ~130MB peak (only LightTargetedExperiment + small tracking maps)

Key implementation details:
- Single TSVTransition buffer reused for each line
- Inline mixed sequence group detection during streaming
- Immediate conversion to LightTransition/LightCompound/LightProtein
- Progress tracking with line count pre-scan

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

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

* Add streaming PQP reader for ~5x memory reduction

Implement streamPQPToLightTargetedExperiment_() which reads PQP files
directly into LightTargetedExperiment without creating an intermediate
vector<TSVTransition>. This eliminates memory duplication during parsing.

Memory improvement for 1M transitions:
- Old: ~630MB peak (500MB TSVTransition vector + 130MB LightExperiment)
- New: ~130MB peak (only LightTargetedExperiment + small tracking maps)

Key implementation details:
- Direct SQL row to LightTransition conversion
- Compound/protein deduplication inline during streaming
- Same SQL queries as original for compatibility

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

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

* Light-path TSV: use empty fields for LabelType, CompoundName, SumFormula, SMILES

Remove NA handling for these 4 fields to match heavy-path output format.
Only Adducts remains as NA when not set.

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

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

* Cleanup: remove dead code and refactor PQP SQL query building

- Remove unused TSVToTargetedExperiment_ overload for LightTargetedExperiment
  (now handled by streaming parser)
- Extract duplicated SQL query building into buildPQPSelectQuery_() helper
- Add PQPSqlQueryInfo struct to hold query and column availability flags
- Net reduction of ~240 lines of code

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

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

* Use std::map for MRMIonSeries::IonSeries for ARM64 portability

Change IonSeries typedef from std::unordered_map to std::map to ensure
deterministic iteration order across all platforms. This fixes potential
ARM64 portability issues where hash table iteration order differs from
x86_64, causing different ion annotation results when tie-breaking in
annotateIon().

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

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

* Fix switchKRLight() to use portable deterministic hash

Replace static RNG with FNV-1a hash of peptide sequence for selecting
replacement amino acids. This ensures:
- Same peptide always gets the same replacement AA (reproducible)
- Results are independent of processing order (portable across platforms)
- Fixes ARM64 portability issue where hash table iteration order differs

Updated test expected outputs to reflect the new deterministic behavior.

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

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

* Remove dead srand() calls in MRMDecoy

The srand(time(nullptr)) calls seeded C's rand() function, but
portable_random_shuffle() uses boost::mt19937_64 which is independent.
These calls had no effect on program behavior.

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

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

* Light-path TSV: use empty fields for Adducts and UniprotId

For consistency with heavy-path output, leave Adducts and UniprotId
columns empty instead of "NA" when not set.

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

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

* Fix OpenSwathAssayGenerator test_4 for cross-platform portability

PQP files (SQLite binary format) have platform-dependent internal
layout, causing byte-by-byte comparison to fail on macOS ARM64.
Changed test to use TSV roundtrip comparison with -sort flag for
portable testing.

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

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

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>

* [DOC] Improve AGENTS.md based on best practices research (#8560)

Restructure AGENTS.md following the AGENTS.md standard best practices:
- Add Critical Constraints section upfront (what NOT to do)
- Add Quick Commands section with copy-paste ready commands
- Add code examples for naming conventions and file structure
- Add testing pattern examples with actual code
- Add verification commands section
- Create concise change impact checklist table
- Consolidate external links to essential resources only
- Improve overall structure for agent consumption

Based on research from GitHub's analysis of 2,500+ repositories
and the official AGENTS.md specification.

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

* Remove outdated template files and update test creation documentation (#8548)

* Initial plan

* Remove outdated templates and update documentation references

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

---------

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

* [DOC] Improve AGENTS.md based on best practices research (#8563)

* [DOC] Improve AGENTS.md based on best practices research

Enhance AGENTS.md following the AGENTS.md standard best practices while
preserving all original content:

Added:
- Critical Constraints section upfront (explicit "NEVER do" list)
- Quick Commands section with copy-paste ready bash commands
- Visual directory tree for repo layout
- Code examples for naming conventions, file structure, and tests
- Commit message example
- Debugging command examples

Preserved:
- All original build/install instructions
- All testing guidelines and details
- All coding conventions
- All pyOpenMS wrapping details
- All external documentation links
- All CI/packaging information

Based on research from GitHub's analysis of 2,500+ repositories
and the official AGENTS.md specification.

* [DOC] Add Doxygen style guide and OS-specific build gotchas to AGENTS.md

Expand AGENTS.md with detailed information researched from the codebase:

Doxygen Documentation Style:
- File header format with $Maintainer$ and $Authors$ markers
- Class documentation with @brief, @ingroup, @htmlinclude
- Method documentation with @param[in/out], @return, @throws
- Constructor/destructor grouping with @name and //@{
- Inline documentation with /// comments
- Common Doxygen tags reference table

Platform-Specific Build Gotchas:
- Windows: MSVC requirements, MinGW not supported, Release/Debug mixing
- macOS: AppleClang linker flag, Qt PrintSupport, code signing
- Linux: PIC flags, STL debug mode, headless GUI testing
- Qt6: version requirements, component dependencies, WebEngine
- Boost: Homebrew static linking issues and workarounds
- CMake: CMAKE_SIZEOF_VOID_P bug, Eigen3 version detection

Also added:
- Required and optional dependency lists
- CMake minimum version (3.21) and C++20 standard requirement

---------

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

* Cleanup TOPP tests, clean gitignore (#8555)

* Fix some race conditions in topp tests

* remove files that shouldn''t be tracked

* start moving temporary topp files into separate directory

* second batch of topp tests fixed.

* third batch

* fourth pass

* ixed the hardcoded CSV output path to use the input file's directory instead of the test execution directory, and corrected all 8 instances of "ambigious" → "ambiguous" spelling

* re-add idripper idxmls

* re-organize .gitignore

* more .gitignore cleanup

* create proper temp files for tests

* gitignore cleanup

* remove dupes from merge

* address coderabbit comments

* Fix temp file location

* use QDir for constructing paths in OpenNuXL

* Remove overbroad test file exclusions from gitignore

* Address code comments.

* Document ProteomicsLFQ automatic median normalization behavior (#8438)

* Initial plan

* Document ProteomicsLFQ normalization behavior

- Add detailed normalization documentation to Doxygen header
- Clarify automatic median normalization for feature intensity quantification
- Document when normalization is disabled (MSstats/Triqler output)
- Explain relationship between consensus feature normalization and ProteinQuantification:consensus:normalize
- Add inline code comments for better code clarity
- Update PeptideAndProteinQuant parameter description
- Provide workaround for using alternative normalization methods

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

* Fix hyphenation in documentation

Use proper compound adjective form "feature-intensity-based" instead of "feature intensity-based"

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

* Apply suggestions from code review

---------

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

* Enhance DataValue conversion error messages with type and value context (#8572)

* Initial plan

* Improve DataValue error messages to include type and value information

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

* Add tests to verify improved DataValue error messages

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

---------

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

* Document wrapping classes with deleted/private constructors in pyOpenMS (#8561)

* Initial plan

* Document how to wrap classes with deleted/private constructors in pyOpenMS

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

* Fix spacing in wrap-ignore comment for consistency

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

* Add namespace context to XMLHandler example for accuracy

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

* Add clarifying notes about singleton getInstance() overloads

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

* Improve documentation for wrap-manual-memory and fix Pattern 4 example

- Add wrap-manual-memory directive to "Hints to autowrap" section
- Document autowrap naming convention for wrap-ignore'd functions
- Fix misleading wrap-manual-dealloc reference (not a real directive)
- Update Pattern 4 example to match actual ConsensusIDAlgorithm.pxd
- Use PeptideIdentificationList instead of outdated libcpp_vector type

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

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

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
Co-authored-by: Timo Sachsenberg <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>

* Add precursor m/z range filter option to PeakFileOptions

Adds setPrecursorMZRange(), hasPrecursorMZRange(), and getPrecursorMZRange()
methods to filter spectra based on their precursor m/z values. Updates
hasFilters() to include this new filter type.

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

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

---------

Co-authored-by: Timo Sachsenberg <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: jpfeuffer <[email protected]>
Co-authored-by: Samuel Wein <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Justin Sing <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Fix corrupted byte offsets in MzMLFile_4_indexed.mzML test file

The indexed mzML test file had incorrect byte offsets in the index section,
causing parse failures on ARM Linux and Mac platforms. Regenerated the file
with FileConverter to fix the spectrum offsets.

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

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

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: jpfeuffer <[email protected]>
Co-authored-by: Samuel Wein <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Justin Sing <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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