Skip to content

MetaboliteSpectralMatcher fixes from playing with Nucleosides - #8163

Merged
poshul merged 13 commits into
developfrom
nucleosides
Dec 23, 2025
Merged

poshul merged 13 commits into
developfrom
nucleosides

Conversation

@poshul

@poshul poshul commented Aug 11, 2025 •

Copy link
Copy Markdown
Collaborator

Description

MetaboliteSpectralMatching has some issues parsing non-massbank libraries. Add some debugging code and update our MGF parser so that we can read data from GNPS. Also fix Deb requirements

Checklist

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

How can I get additional information on failed tests during CI

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

Advanced commands (admins / reviewer only)

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

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

Summary by CodeRabbit

  • New Features

    • Support reading COMPOUND_NAME from MGF and mapping it to the metabolite name.
    • Improved identifier selection and display: prioritize GNPS Spectrum ID, then MassBank Accession, then metabolite name, with sensible fallbacks.
    • More informative debug output showing candidate metadata and derived metabolite names during matching.
  • Refactor

    • Replaced console prints with structured debug logging and updated result reporting to use derived names/IDs.
  • Tests

    • Added tests validating COMPOUND_NAME-to-metabolite-name mapping from MGF.

@coderabbitai

coderabbitai Bot commented Aug 11, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Adds parsing of COMPOUND_NAME in MascotGenericFile to set MSM_METABOLITE_NAME; updates MetaboliteSpectralMatching to adjust identifier preference and logging/metadata handling; extends unit tests to verify COMPOUND_NAME→MSM_METABOLITE_NAME mapping, including duplicate START_SECTION entries.

Changes

Cohort / File(s) Summary
MGF parser metadata update
src/openms/include/OpenMS/FORMAT/MascotGenericFile.h
Parse COMPOUND_NAME=... lines in getNextSpectrum_ and set MSM_METABOLITE_NAME meta value; no other parsing logic altered.
Spectral matching metadata and logging adjustments
src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp
Replace cout with OPENMS_LOG_DEBUG; prefer identifiers in order: GNPS_Spectrum_ID, Massbank_Accession_ID, MSM_METABOLITE_NAME, nativeID; derive CommonName from computed metabolite_name; add detailed per-candidate logging; core matching unchanged.
Unit tests for COMPOUND_NAME mapping
src/tests/class_tests/openms/source/MascotGenericFile_test.cpp
Add test to confirm COMPOUND_NAME maps to MSM_METABOLITE_NAME; verify spectrum/precursor/peaks; includes duplicate START_SECTION for the same scenario.

Sequence Diagram(s)

sequenceDiagram
  participant Reader as MascotGenericFile
  participant MGF as MGF Line
  participant Spec as MSSpectrum

  loop Parse peak list block
    MGF->>Reader: Line
    alt Line starts with "COMPOUND_NAME="
      Reader->>Spec: setMetaValue(MSM_METABOLITE_NAME, value)
    else other keys
      Reader->>Spec: existing handling
    end
  end
Loading
sequenceDiagram
  participant MSM as MetaboliteSpectralMatching.run
  participant Cand as Candidate Spectrum
  participant Log as OPENMS_LOG_DEBUG

  loop For each candidate
    MSM->>Cand: Read metadata
    MSM->>MSM: Derive metabolite_name (MSM_METABOLITE_NAME | GNPS_Spectrum_ID)
    MSM->>MSM: Choose primary ID (GNPS | Massbank | MSM_NAME | nativeID)
    MSM->>Log: Debug precursor m/z, IDs, keys
    MSM->>MSM: Score/match (unchanged)
    alt Match found
      MSM->>Log: Report massbank_id and metabolite_name with score
    end
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15–20 minutes

Possibly related PRs

Suggested reviewers

  • timosachsenberg
  • cbielow

Poem

In the meadow of m/z and name,
I twitch my ears at COMPOUND fame.
A Caffeine whisper, neatly caught—
Logs hop by with IDs sought.
GNPS or MassBank, trails align,
Little rabbit signs: “Metadata’s fine.”
Hippity-hop, commit divine.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch nucleosides

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 6

🧹 Nitpick comments (3)
src/openms/include/OpenMS/FORMAT/MascotGenericFile.h (2)

292-296: COMPOUND_NAME parsing: good addition; trim the value for robustness

To avoid leading/trailing whitespace in the stored meta value, please trim the extracted substring.

-            {
-              String tmp = line.substr(14);
-              spectrum.setMetaValue(Constants::UserParam::MSM_METABOLITE_NAME, tmp);
-            }
+            {
+              String tmp = line.substr(14);
+              tmp.trim();
+              spectrum.setMetaValue(Constants::UserParam::MSM_METABOLITE_NAME, tmp);
+            }

292-296: Consider guarding for '=' to prevent accidental matches

MGF headers can vary. Checking for "COMPOUND_NAME=" (or finding the first '=') avoids accidentally matching other keys like "COMPOUND_NAME_SOURCE". Optional, but safer and consistent.

Example:

-            else if (line.hasPrefix("COMPOUND_NAME"))
+            else if (line.hasPrefix("COMPOUND_NAME="))
             {
-              String tmp = line.substr(14);
+              String tmp = line.substr(14);
               tmp.trim();
               spectrum.setMetaValue(Constants::UserParam::MSM_METABOLITE_NAME, tmp);
             }

Or parse robustly:

// if you prefer to keep hasPrefix("COMPOUND_NAME"):
Size eq = line.find('=', 13);
String tmp = (eq != std::string::npos) ? line.substr(eq + 1) : line.substr(14);
tmp.trim();
spectrum.setMetaValue(Constants::UserParam::MSM_METABOLITE_NAME, tmp);
src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp (1)

499-507: Verbose key-dump may be expensive with large libraries

Dumping all metadata keys for every candidate is fine for debugging, but can be very chatty. Consider guarding behind an additional boolean parameter or remove once stabilized.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 77cab1b and 506ca48.

📒 Files selected for processing (3)
  • cmake/package_deb.cmake (1 hunks)
  • src/openms/include/OpenMS/FORMAT/MascotGenericFile.h (1 hunks)
  • src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp (5 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
src/openms/**/*.{cpp,h,hpp,cc,cxx}

📄 CodeRabbit Inference Engine (.github/copilot-instructions.md)

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

Files:

  • src/openms/include/OpenMS/FORMAT/MascotGenericFile.h
  • src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp
src/openms/include/OpenMS/**/*.h

📄 CodeRabbit Inference Engine (.github/copilot-instructions.md)

Add Doxygen comments for new public methods and classes

Files:

  • src/openms/include/OpenMS/FORMAT/MascotGenericFile.h
🧠 Learnings (1)
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
PR: OpenMS/OpenMS#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} : Utilize OpenMS logging mechanisms

Applied to files:

  • src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp
🧬 Code Graph Analysis (2)
src/openms/include/OpenMS/FORMAT/MascotGenericFile.h (1)
src/openms/include/OpenMS/CONCEPT/Constants.h (2)
  • Constants (42-624)
  • UserParam (235-621)
src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp (1)
src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (1)
  • precursor_mz (25-25)
⏰ 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). (5)
  • GitHub Check: build-and-test (macos-14, xcode, 15.0.1)
  • GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
  • GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
  • GitHub Check: build-and-test (macos-13, xcode, 14.2)
  • GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
🔇 Additional comments (2)
cmake/package_deb.cmake (1)

77-77: Fix to libqt6widgets6 package name looks correct

The dependency alternation now correctly references libqt6widgets6. LGTM.

src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp (1)

459-459: Good: migrated verbose output to OPENMS_LOG_DEBUG

Replacing std::cout with OPENMS_LOG_DEBUG aligns with OpenMS logging. This reduces default noise and integrates with log level control.

Also applies to: 467-467, 483-485, 526-526, 588-588

poshul and others added 4 commits August 11, 2025 13:42
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (3)
src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp (3)

492-497: LGTM!

This properly addresses the previous review comment about safely accessing GNPS_Spectrum_ID with existence check and fallback to native ID.


565-582: Excellent fallback logic for primary identifiers.

This properly addresses the past review comment about providing fallbacks for non-GNPS libraries. The cascading approach (GNPS_Spectrum_ID → Massbank_Accession_ID → MSM_METABOLITE_NAME → native ID) ensures compatibility across different library formats.


539-551: Remove duplicated metabolite name resolution logic.

This code duplicates the metabolite name resolution that was already performed in lines 514-523. Additionally, it uses the string literal "Metabolite_Name" instead of the constant Constants::UserParam::MSM_METABOLITE_NAME.

Apply this diff to remove the duplication and reuse the already-resolved metabolite_name:

-            String massbank_id = "";
-            String metabolite_name = "";
-            
-            if (spec_db[search_idx].metaValueExists("GNPS_Spectrum_ID")) {
-              massbank_id = spec_db[search_idx].getMetaValue("GNPS_Spectrum_ID").toString();
-            }
-            if (spec_db[search_idx].metaValueExists("Metabolite_Name")) {
-              metabolite_name = spec_db[search_idx].getMetaValue("Metabolite_Name").toString();
-            } else if (spec_db[search_idx].metaValueExists("GNPS_Spectrum_ID")) {
-              metabolite_name = massbank_id; // Use GNPS_Spectrum_ID as name if no Metabolite_Name
-            }
-            
-            OPENMS_LOG_DEBUG << "  ** detected " << massbank_id << " " << metabolite_name << " scored with " << hyperscore << endl;
+            String library_id = "";
+            if (spec_db[search_idx].metaValueExists("GNPS_Spectrum_ID"))
+            {
+              library_id = spec_db[search_idx].getMetaValue("GNPS_Spectrum_ID").toString();
+            }
+            // metabolite_name has already been resolved above (with fallback)
+            OPENMS_LOG_DEBUG << "  ** detected " << library_id << " " << metabolite_name << " scored with " << hyperscore << endl;
🧹 Nitpick comments (1)
src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp (1)

504-512: Useful debugging addition for non-MassBank library support.

This debug logging helps understand available metadata keys for different library formats. Consider if this level of verbosity should be conditional or removed before production use.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 506ca48 and 9f3706e.

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

📄 CodeRabbit Inference Engine (.github/copilot-instructions.md)

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

Files:

  • src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp
🧠 Learnings (1)
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
PR: OpenMS/OpenMS#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} : Utilize OpenMS logging mechanisms

Applied to files:

  • src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp
⏰ 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). (1)
  • GitHub Check: cppcheck-test
🔇 Additional comments (6)
src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp (6)

459-459: LGTM!

Good conversion from cout to OpenMS logging mechanism as specified in the coding guidelines.


467-467: LGTM!

Consistent use of OpenMS logging mechanisms for precursor mass and bounds logging.

Also applies to: 483-484


514-523: Good use of constants and fallback logic.

Correctly uses Constants::UserParam::MSM_METABOLITE_NAME instead of string literals and implements proper fallback to GNPS_Spectrum_ID.


525-527: LGTM!

Good addition of precursor m/z and metabolite name logging for debugging.


536-536: LGTM!

Consistent conversion to OpenMS logging for hyperscore output.


606-606: LGTM!

Consistent conversion to OpenMS logging for top3 results reporting.

@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

🔭 Outside diff range comments (1)
src/tests/class_tests/openms/source/MascotGenericFile_test.cpp (1)

14-15: Add missing header for std::ofstream to avoid platform-dependent build failures

std::ofstream is used later (Line 202) but is not included. Depending on transitive includes and compiler, this can fail to compile.

Apply this diff to include the correct header:

 #include <OpenMS/FORMAT/MascotGenericFile.h>
 #include <sstream>
+#include <fstream>
🧹 Nitpick comments (2)
src/tests/class_tests/openms/source/MascotGenericFile_test.cpp (2)

192-193: Remove unused variable mgf_stream

stringstream mgf_stream is never used; keeping it may trigger warnings in stricter builds.

Apply this diff to remove it:

-  stringstream mgf_stream(mgf_content);
-  

216-220: Assert precursor presence before indexing for clearer failures

Indexing getPrecursors()[0] will crash or fail obscurely if no precursor is parsed. An explicit size check improves test diagnostics.

Apply this diff:

   // Test that other expected properties are also parsed correctly
   TEST_EQUAL(exp[0].size(), 2) // Two peaks
+  TEST_EQUAL(exp[0].getPrecursors().size(), 1)
   TEST_REAL_SIMILAR(exp[0].getPrecursors()[0].getMZ(), 500.0)
   TEST_EQUAL(exp[0].getPrecursors()[0].getCharge(), 1)
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 9f3706e and 18e0f7a.

📒 Files selected for processing (2)
  • src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp (5 hunks)
  • src/tests/class_tests/openms/source/MascotGenericFile_test.cpp (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/openms/source/ANALYSIS/ID/MetaboliteSpectralMatching.cpp
🧰 Additional context used
📓 Path-based instructions (1)
src/tests/class_tests/openms/**/*.cpp

📄 CodeRabbit Inference Engine (.github/copilot-instructions.md)

Write unit tests for new functionality

Files:

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

Applied to files:

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

Applied to files:

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

Applied to files:

  • src/tests/class_tests/openms/source/MascotGenericFile_test.cpp
⏰ 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). (6)
  • GitHub Check: build-and-test (macos-14, xcode, 15.0.1)
  • GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
  • GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
  • GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
  • GitHub Check: build-and-test (macos-13, xcode, 14.2)
  • GitHub Check: cppcheck-test
🔇 Additional comments (3)
src/tests/class_tests/openms/source/MascotGenericFile_test.cpp (3)

19-19: Good addition: includes Constants to access UserParam constants

Including OpenMS/CONCEPT/Constants.h is required for using Constants::UserParam::MSM_METABOLITE_NAME in the test.


180-222: Solid unit test for COMPOUND_NAME → MSM_METABOLITE_NAME mapping

The test exercises the new mapping and validates key attributes (spectrum count, peaks, precursor m/z/charge). This aligns with the PR objective to support GNPS-style MGF metadata.


186-186: Confirm CHARGE format compatibility ("1" vs "1+")

MGF commonly uses “CHARGE=1+”; this test uses “CHARGE=1”. If the parser now accepts both (as GNPS often uses “1”), consider adding a second assertion or a companion test with “CHARGE=1+” to prevent regressions.

Do you want me to add a follow-up test case covering “CHARGE=1+” as well?

}
else if (spec_db[search_idx].metaValueExists("Massbank_Accession_ID"))
{
primary_id_value = spec_db[search_idx].getMetaValue("Massbank_Accession_ID").toString();

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.

is there some reason for this order?. I guess they don't need to be exclusive?

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.

e.g. it was different before

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No deeper reasoning for the order. I suppose it is possible to have multiple metavalues, but since they are database specific they should never co-occur.

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.

do we need to guard against that?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so. It's enough of an edge case that I don't think it's worthwhile.

@timosachsenberg

Copy link
Copy Markdown
Contributor

needs a GNPS MGF file as test. otherwise looks good to me

@poshul
poshul merged commit b1b7975 into develop Dec 23, 2025
@poshul
poshul deleted the nucleosides branch December 23, 2025 15:03
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.

2 participants