Repository navigation
Move input type validation before SDRF parsing - #65
Conversation
- Move the --local_input_type validation to the top of CREATE_INPUT_CHANNEL so it fails fast before any channel processing. - Bump pipeline version to 2.1.0dev for the next development cycle.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
Extend the allowed values for --local_input_type to include the Bruker .d compressed archive variants that the pipeline already decompresses (.d.tar, .d.tar.gz, .d.zip). The DECOMPRESS process handles all three and emits a .d directory, so users can point --root_folder at folders of .d.zip archives and set --local_input_type=d.zip without tripping the validator.
Revert the Math.min wrappers on memory and cpus; resourceLimits already caps allocations at 1900.GB / 48 cpus, so the manual clamping was redundant and cluttered the expression.
Description
This PR reorganizes the parameter validation logic in the
CREATE_INPUT_CHANNELworkflow to validate--local_input_typeearlier in the execution flow, before the SDRF parsing step.Changes
--local_input_typevalidation against supported formats (mzML,raw,d,dia) is now performed at the start of the workflow's main block, immediately after channel initialization2.0.0to2.1.0devinnextflow.configWhy This Matters
The validation logic is redundant with schema enum validation but serves as a safety net when schema validation is disabled. By moving it earlier, we fail fast with a clear error message rather than proceeding through SDRF parsing only to encounter issues later.
PR checklist
https://claude.ai/code/session_019zEjdAyMSrEGPtZfmwNy1p