Repository navigation
Resolve quantms issue 650 - remove unnecesary params, present in SDRF - #651
Conversation
Remove 9 parameters that are now exclusively read from SDRF files: - acquisition_method - labelling_type - enzyme - precursor_mass_tolerance - precursor_mass_tolerance_unit - fragment_mass_tolerance - fragment_mass_tolerance_unit - fixed_mods - variable_mods These parameters were redundant as SDRF already contains all this metadata. The pipeline now requires proper SDRF annotation for these values, making the configuration simpler and reducing confusion. Updated files: - nextflow.config: Removed default parameter definitions - nextflow_schema.json: Removed schema entries and updated help text - conf/tests/test_lfq.config: Removed deprecated test params - conf/tests/test_lfq_sage.config: Removed deprecated test params Fixes #650
|
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 You can disable this status message by setting the 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 |
|
|
@claude Please raise corresponding error in create_input_channel subworkflow script when these values are missing |
Since parameters like enzyme, tolerances, and modifications are now exclusively read from SDRF files (removed from config in previous commit), add explicit validation to ensure these required columns are present and valid: - Check all required columns are present and non-empty: Label, Enzyme, PrecursorMassTolerance, PrecursorMassToleranceUnit, FragmentMassTolerance, FragmentMassToleranceUnit, FixedModifications, VariableModifications - Validate tolerance values are valid numbers - Validate tolerance units are 'ppm' or 'Da' Provides clear error messages indicating which columns are missing or invalid, helping users fix their SDRF annotation. Part of #650
|
I am starting to question my own idea a little bit. 😄 sorry. |
|
@jpfeuffer the good thing is that we can close this PR. |
|
We can. But we should still change things about parameter handling. Because some of those parameters are definitely not needed anymore without support for the OpenMS design. |
|
Yes, the parameters that can be removed are:
Opinions @jpfeuffer @daichengxin |
|
LGTM |
Per review feedback, only these 4 parameters should be exclusively read from SDRF (no command-line override): - acquisition_method - labelling_type - enzyme - fixed_mods The following parameters are restored and can be overridden via command line (with SDRF as default if present): - precursor_mass_tolerance - precursor_mass_tolerance_unit - fragment_mass_tolerance - fragment_mass_tolerance_unit - variable_mods Updated create_input_channel validation to: - Only require Label, Enzyme, FixedModifications columns - Use SDRF values for tolerances/variable_mods if present - Fall back to params values if SDRF columns are empty Part of #650
|
Ping @jpfeuffer |
I like the idea of overwriting those options though I might not be a super common use case. |
enzyme: switch between Trypsin and Trypsin/P ? But again pretty niche |
|
I think normally people don't do that, if they want they can write a different SDRF. @timosachsenberg |
|
I am fine with leaving as overwrite, if we clearly show which value was used in the end in the reports and if the parameter documentation is unmistakably clear. |
|
Where do you want these values to be shown? In the multiqc reports; or re-write the pipelines outputs? |
|
Definitely in the multiqc report, maybe it should also be replaced in the SDRF and the modified SDRF should be outputted. |
|
@jpfeuffer I guess we need to make sure that in pmultiqc, not only the parameters, but also other parameters from SDRF. I have been checking now other pumltiqc, and none of the SDRF's are passed to pmultiqc, nor for DIANN or LFQ/TMT workflows. I think this demands a new PR that refactors this. I have created an issue #654 |
|
Great. I missed that PR discussion, but that is great to know. |
Remove 9 parameters that are now exclusively read from SDRF files:
These parameters were redundant as SDRF already contains all this metadata. The pipeline now requires proper SDRF annotation for these values, making the configuration simpler and reducing confusion.
Updated files:
Fixes #650
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).