Repository navigation
[TEST] Add OpenSwathMatrixExporter_test (precursor-level quant matrix build/write) - #9564
Conversation
… build/write) OpenSwathMatrixExporter (new in the 3.6 OpenSWATH parquet/matrix output) builds and writes PyProphet-style quantification matrices, but had no test. Adds a class test covering: - buildMatrix at Precursor level: the best peak group per (run, precursor) is selected by lowest m_score (not highest intensity), intensities are pivoted across runs ordered by run_id, identifier rows are the precursor key ordered lexicographically, and a precursor absent from a run yields an empty cell; - buildMatrix preconditions: empty input throws Precondition, and a peptide/protein/gene level with top_n == 0 throws; - writeMatrix: the TSV output has the identifier columns followed by the sample columns in the header and the precursor key plus per-run intensities in the data row, and an empty matrix is rejected. Registered in executables.cmake (swath_executables_list, under NOT DISABLE_OPENSWATH). Part of the OpenMS 3.6.0 pre-release testing plan (OpenMS#9460). Tests only; no production code changes. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA new C++ unit test file for ChangesOpenSwathMatrixExporter Test Suite
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-16 00:55:24.846036680 +0000
+++ AUTHORS.new 2026-06-16 00:55:30.100337392 +0000
@@ -23,8 +23,8 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
Adversarial review result: I did not find a blocking issue in this pass. This is a test-only addition for |
Context
Part of the OpenMS 3.6.0 pre-release testing plan (#9460), §4 (OpenSwathWorkflow / quantification).
OpenSwathMatrixExporter— new with the 3.6 OpenSWATH parquet/matrix output — builds and writes PyProphet-style quantification matrices, but had no test file.Change
Adds a class test covering both public methods:
buildMatrixat Precursor level: the best peak group per (run, precursor) is selected by lowest m_score (not highest intensity), intensities are pivoted across runs ordered byrun_id, identifier rows are the precursor key ordered lexicographically, and a precursor absent from a run yields an empty cell.buildMatrixpreconditions: empty input throwsPrecondition, and a peptide/protein/gene level withtop_n == 0throws.writeMatrix: the TSV output has the identifier columns followed by the sample columns in the header, and the precursor key plus per-run intensities in the data row; an empty matrix is rejected.Notes
executables.cmake(swath_executables_list, underNOT DISABLE_OPENSWATH).selectBestPeakGroups_by m_score).🤖 Generated with Claude Code
Summary by CodeRabbit