Repository navigation
[FIX] AssayGeneratorMetabo: apply the registered SiriusExportAlgorithm parameters (fixes #10120) - #10123
Conversation
…meters The tool registered the SiriusExportAlgorithm defaults on its command line but never called setParameters() on the algorithm instance, so -feature_only, -filter_by_num_masstraces, -precursor_mz_tolerance, -precursor_mz_tolerance_unit and -precursor_rt_tolerance were silently ignored (#10120). Register and apply the same parameter subset through one helper, and add a TOPP test asserting that a parameter change changes the output. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_019UEHgs71nDGJrkfYTs8uRa
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAssayGeneratorMetabo now applies its registered SiriusExportAlgorithm options. A TOPP test verifies that feature filtering changes the output. The changelog documents the corrected behavior. ChangesAssayGeneratorMetabo parameter wiring
Priority: ➖ Normal Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The corrected options are wired into the export algorithm and covered by a targeted output regression test; no actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files. (1 skipped: 1 unsupported.)
✨ 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. A rabbit found parameters asleep in a row Comment |
|
Reviewed at
I would approve the implementation, with the stronger test as a nonblocking improvement. I did not run the TOPP tests locally; both reported CI workflows were still running when checked during this review. |
…main Replace the "output differs" check with explicit content assertions via check_file_contains.cmake: the compounds of the single-mass-trace features must be gone, those of multi-trace features must still be present. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_019UEHgs71nDGJrkfYTs8uRa
|
Thanks. Test strengthened in 631ff02: the Generated by Claude Code |
Description
Fixes #10120.
AssayGeneratorMetaboregistered theSiriusExportAlgorithmdefaults on its command line (registerFullParam_) but never calledsetParameters()on itssirius_export_algorithmmember.-feature_only,-filter_by_num_masstraces,-precursor_mz_tolerance,-precursor_mz_tolerance_unitand-precursor_rt_tolerancewere therefore silently ignored; the tool even logged "Parameters passed to SiriusExportAlgorithm" with the untouched defaults.Changes:
siriusExportParamSubset_()builds the exposed subset (the two isotope-pattern options stay excluded, as before) and is used both for registration and forsetParameters(getParam_().copySubset(...))right before the algorithm is used, mirroring whatSiriusExport.cppdoes.TOPP_AssayGeneratorMetabo_7: runs with-feature_only true -filter_by_num_masstraces 2.-feature_only trueenables the mass-trace filter (otherwise the algorithm resetsfilter_by_num_masstracesto 1), and the filter drops the 15 of 24 input features that have a single mass trace.check_file_contains.cmakethen asserts on the output that the compounds at RT 437.423 and 438.351 (produced only by single-trace features in the default output) are gone and that the compounds of the 2-, 4- and 7-trace features at RT 446.172, 448.028 and 461.815 are still present. Retained features can only gain MS2 assignments when neighbours are removed (closest-m/z assignment inFeatureMapping), so their rows cannot vanish. This needs no new fixture and catches both "parameters not wired through" and a header-only output. The existing tests do not pass any of the affected options, so their fixtures are unchanged.Note: this session has no build environment, so the change was written against the code but not executed locally. CI is the first run.
Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_019UEHgs71nDGJrkfYTs8uRa
Summary by CodeRabbit
Bug Fixes
AssayGeneratorMetaboso Sirius export settings now take effect when configured.Tests
Documentation