Repository navigation
OpenSwath: add parameter to adjust non linear irt retention time extraction window - #8084
Conversation
WalkthroughA new command-line option, Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant OpenSwathWorkflow
User->>CLI: Provide --irt_nonlinear_rt_extraction_window option
CLI->>OpenSwathWorkflow: Pass extraction window parameter
OpenSwathWorkflow->>OpenSwathWorkflow: Use parameter for nonlinear iRT calibration
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/topp/OpenSwathWorkflow.cpp (1)
475-475: Add input validation for the new parameter.The parameter registration looks good and follows established patterns. However, since the description mentions that -1 has special meaning (extract over whole range), consider adding input validation to ensure the value is either -1 or positive.
Add validation after the parameter registration:
registerDoubleOption_("irt_nonlinear_rt_extraction_window", "<double>", 600.0, "Only extract RT around this value for non linear iRT calibration (-1 means extract over the whole range, a value of 600 means to extract around +/- 300 s of the expected elution).", false, true); +setMinFloat_("irt_nonlinear_rt_extraction_window", -1.0);
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/topp/OpenSwathWorkflow.cpp(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
- GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
- 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 (macos-13, xcode, 14.2)
🔇 Additional comments (1)
src/topp/OpenSwathWorkflow.cpp (1)
932-932: LGTM! Parameter usage correctly implements the configurable RT extraction window.The usage of the new parameter properly replaces the hardcoded value and achieves the PR objective of making the RT extraction window configurable for nonlinear iRT calibration.
|
Looks good to me |
Description
In OpenSwath previously, the RT extraction window for non linear calibration was hardcoded. I have run into instances where the hardcoded value is not wide enough. Add a parameter in order to allow users to set this manually.
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
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.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit