Skip to content

create_input_channel: allow empty FixedModifications (variable-only / no-alkylation SDRFs) - #98

Merged
ypriverol merged 3 commits into
devfrom
feat/allow-empty-fixed-modifications
Jun 2, 2026
Merged

ypriverol merged 3 commits into
devfrom
feat/allow-empty-fixed-modifications

Conversation

@ypriverol

@ypriverol ypriverol commented May 31, 2026 •

Copy link
Copy Markdown
Contributor

Problem

SDRFs that declare no fixed modification fail in SDRF_PARSING with:

ERROR: Missing or empty required SDRF columns for file '<raw>': FixedModifications
These parameters must be specified in the SDRF file.

even though the SDRF is valid (parse_sdrf validate-sdrf passes) and sdrf-pipelines convert-diann happily emits an empty FixedModifications. This blocks legitimate label-free / low-input experiments — e.g. Deep Visual Proteomics / single-cell prep with no reduction+alkylation, so no Carbamidomethyl (variable Oxidation only). The authors' own DIA-NN runs on such data use no fixed mod.

Fix (subworkflows/local/create_input_channel/main.nf)

  • Remove FixedModifications from requiredColumns — it is optional; DIA-NN runs without a fixed mod, and quantms-utils dianncfg already guards with if fix_mod:.
  • Default meta.fixedmodifications to '' instead of null, so the downstream --fix_mod flag gets an empty string rather than the literal "null" (Groovy stringifies null).

Label and Enzyme remain required. No quantms-utils change needed (verified convert_mod skips empty fix_mod).

Validation

  • Reproduced on PXD064049 (Coscia FISH-guided DVP, neuroblastoma; Oxidation-only SDRF) — failed before, parses after.
  • convert-diann on the same SDRF emits FixedModifications="", VariableModifications=Oxidation (M) (exit 0).

Notes

  • Branch is based on main; retarget to dev if that's the preferred integration branch.

Summary by CodeRabbit

Bug Fixes

  • Fixed modifications are now optional for workflow execution; previously required during input validation.
  • Updated validation rules to require only Label and Enzyme columns from input files, removing the fixed modifications requirement.

ypriverol added 2 commits May 8, 2026 16:47
Release 2.1.0 - Integration with wiff converter
Datasets without a fixed modification (e.g. low-input Deep Visual Proteomics /
single-cell prep with no reduction+alkylation -> no Carbamidomethyl) failed with
'Missing or empty required SDRF columns: FixedModifications' even though the SDRF
is valid and the authors' own DIA-NN run used no fixed mod.

- Drop FixedModifications from requiredColumns (it is optional; DIA-NN runs
  without a fixed mod, and quantms-utils dianncfg guards on 'if fix_mod:').
- Default meta.fixedmodifications to '' instead of null, so the downstream
  --fix_mod flag receives an empty string rather than the literal 'null'.

Variable-only modification SDRFs (e.g. Oxidation (M) only) now run end to end.
Surfaced while benchmarking PXD064049 (Coscia FISH-guided DVP, neuroblastoma).
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@github-actions

Copy link
Copy Markdown

This PR is against the main branch ❌

  • Do not close this PR
  • Click Edit and change the base to dev
  • This CI test will remain failed until you push a new commit

Hi @ypriverol,

It looks like this pull-request has been made against the bigbio/quantmsdiann main branch.
The main branch on nf-core repositories should always contain code from the latest release.
Because of this, PRs to main are only allowed if they come from the bigbio/quantmsdiann dev branch.

You do not need to close this PR, you can change the target branch to dev by clicking the "Edit" button at the top of this page.
Note that even after this, the test will continue to show as failing until you push a new commit.

Thanks again for your contribution!

@coderabbitai

coderabbitai Bot commented May 31, 2026 •

Copy link
Copy Markdown

Review Change Stack

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.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 01b9befe-be43-480d-97ef-bdb581c43d5e

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

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR updates the input channel creation workflow in Nextflow. The meta.fixedmodifications field now defaults to an empty string instead of null, with added documentation of the downstream effect. The SDRF validation schema was simplified to require only Label and Enzyme columns, removing FixedModifications from the mandatory column checks.

Changes

Fixed-modifications default and validation

Layer / File(s) Summary
Fixed-modifications default value and validation rules
subworkflows/local/create_input_channel/main.nf
meta.fixedmodifications defaults to '' instead of null with comments explaining the downstream behavior. SDRF required-column validation now checks only Label and Enzyme, removing FixedModifications from required columns.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

A rabbit hops through defaults with glee,
Empty strings where null used to be,
Validation grows lean, just essentials remain,
Label and Enzyme, the simplified chain,
One tiny change, so clean and so bright! 🐰✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: allowing empty FixedModifications in SDRF inputs by removing the requirement, which directly addresses the changeset modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/allow-empty-fixed-modifications

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 May 31, 2026 •

Copy link
Copy Markdown

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

Posted for pipeline commit 23fe75e

+| ✅ 108 tests passed       |+
#| ❔  18 tests were ignored |#
!| ❗   4 tests had warnings |!
Details

❗ Test warnings:

  • files_exist - File not found: conf/igenomes.config
  • files_exist - File not found: conf/igenomes_ignored.config
  • files_exist - File not found: .github/workflows/awstest.yml
  • files_exist - File not found: .github/workflows/awsfulltest.yml

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 4.0.2
  • Run at 2026-06-02 06:45:34

@ypriverol
ypriverol changed the base branch from main to dev June 2, 2026 06:44
The test_dia_dotd database URL pointed at
databases/PXD065380.fasta (404); the FASTA actually lives at
databases/PXD065380/PXD065380.fasta in quantms-test-datasets.
Fixes the SDRF_PARSING/download failure that was breaking the
test_dia_dotd CI jobs (and fail-fast-canceling test_dia).
@ypriverol
ypriverol requested a review from yueqixuan June 2, 2026 10:15
@ypriverol
ypriverol merged commit 245c2ba into dev Jun 2, 2026
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant