Skip to content

Resolve quantms issue 650 - remove unnecesary params, present in SDRF - #651

Merged
ypriverol merged 3 commits into
devfrom
claude/fix-quantms-650-5bGoC
Jan 21, 2026
Merged

ypriverol merged 3 commits into
devfrom
claude/fix-quantms-650-5bGoC

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

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

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the bigbio/quantms branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

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
@coderabbitai

coderabbitai Bot commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jan 19, 2026 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit b6df479

+| ✅ 110 tests passed       |+
#| ❔  19 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   3 tests had warnings |!
Details

❗ Test warnings:

  • pipeline_todos - TODO string in nextflow.config: Specify any additional parameters here
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/dda_id/main.nf: _ ch_software_versions = ch_software_versions.mix(PHOSPHO_SCORING.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/id/main.nf: _ ch_software_versions = ch_software_versions.mix(PHOSPHO_SCORING.out.versions.ifEmpty(null))
    _

❔ Tests ignored:

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 3.5.1
  • Run at 2026-01-20 13:22:41

@daichengxin

Copy link
Copy Markdown
Collaborator

@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
@jpfeuffer

Copy link
Copy Markdown
Collaborator

I am starting to question my own idea a little bit. 😄 sorry.
Maybe we can actually leave tolerances and modifications but prefix them with "overwrite"?
For those parameters I have the feeling that many people actually would like to overwrite them because you would like the relax search engine criteria or look for new modifications in a re-analysis. And sometimes you directly point to an SDRF in a remote location like an FTP server that you don't want to download and change etc.
Not sure. We would need to make clear which parameter was used in the end. Maybe we write an "intermediate overwrite SDRF" and attach it to the QC report or something like that.

@ypriverol

Copy link
Copy Markdown
Contributor Author

@jpfeuffer the good thing is that we can close this PR.

@jpfeuffer

jpfeuffer commented Jan 20, 2026 •

Copy link
Copy Markdown
Collaborator

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.
And others we should make clearer that they overwrite or add to the SDRF

@ypriverol

ypriverol commented Jan 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Yes, the parameters that can be removed are:

  • acquisition_method
  • labelling_type
  • enzyme
  • fixed_mods I don't think people would need to add more or remove the fixed modifications.

Opinions @jpfeuffer @daichengxin

@ypriverol ypriverol linked an issue Jan 20, 2026 that may be closed by this pull request
@daichengxin

Copy link
Copy Markdown
Collaborator

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
@ypriverol

Copy link
Copy Markdown
Contributor Author

Ping @jpfeuffer

@timosachsenberg

Copy link
Copy Markdown

I am starting to question my own idea a little bit. 😄 sorry. Maybe we can actually leave tolerances and modifications but prefix them with "overwrite"? For those parameters I have the feeling that many people actually would like to overwrite them because you would like the relax search engine criteria or look for new modifications in a re-analysis. And sometimes you directly point to an SDRF in a remote location like an FTP server that you don't want to download and change etc. Not sure. We would need to make clear which parameter was used in the end. Maybe we write an "intermediate overwrite SDRF" and attach it to the QC report or something like that.

I like the idea of overwriting those options though I might not be a super common use case.

@timosachsenberg

timosachsenberg commented Jan 21, 2026 •

Copy link
Copy Markdown

Yes, the parameters that can be removed are:

  • acquisition_method
  • labelling_type
  • enzyme
  • fixed_mods I don't think people would need to add more or remove the fixed modifications.

Opinions @jpfeuffer @daichengxin

enzyme: switch between Trypsin and Trypsin/P ? But again pretty niche

@ypriverol

Copy link
Copy Markdown
Contributor Author

I think normally people don't do that, if they want they can write a different SDRF. @timosachsenberg

@jpfeuffer

Copy link
Copy Markdown
Collaborator

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.

@ypriverol

Copy link
Copy Markdown
Contributor Author

Where do you want these values to be shown? In the multiqc reports; or re-write the pipelines outputs?

@jpfeuffer

Copy link
Copy Markdown
Collaborator

Definitely in the multiqc report, maybe it should also be replaced in the SDRF and the modified SDRF should be outputted.

@ypriverol

ypriverol commented Jan 21, 2026 •

Copy link
Copy Markdown
Contributor Author

@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

@enryH

enryH commented Feb 18, 2026

Copy link
Copy Markdown
Collaborator

Great. I missed that PR discussion, but that is great to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Remove parameters not needed

6 participants