Skip to content

Refine QPX conversion and update dependencies for workflows - #726

Merged
ypriverol merged 64 commits into
masterfrom
dev
Aug 9, 2026
Merged

ypriverol merged 64 commits into
masterfrom
dev

Conversation

@ypriverol

@ypriverol ypriverol commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

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).

Summary by CodeRabbit

  • New Features
    • Added QPX quantification outputs with optional MuData files for LFQ and TMT workflows.
    • Added improved resource scaling for larger experiments and an option to retain the best spectrum per peptide.
    • Added safeguards preventing pipeline output directories and large or conflicted files from being committed.
  • Bug Fixes
    • Corrected lint checks for primary branches and improved pull-request feedback handling.
  • Documentation
    • Updated output documentation and release metadata for version 1.9.0, including the transition from published mzTab files to QPX datasets.

daichengxin and others added 30 commits June 24, 2026 18:39
Update tmt.config, msstats_converter and isobaric_workflow meta
update openms and rescoring
… experiment size

Both are SINGLE processes that aggregate the whole experiment, so per-file defaults do
not fit large runs - the same reason PROTEOMICSLFQ already scales here. Measured on
MSV000085836 (552 TMT fractions, pride_codon_slurm):

  ISOBARIC_WORKFLOW  72GB default -> OOM (exit 137) after 2h36m, succeeded only via the
                     retry escalation, peak RSS 118.7GB. Hours wasted on a first attempt
                     that could never fit.
  MSSTATS_CONVERTER  12GB default -> OOM-killed 9 times in a row. The retry ladder never
                     reaches a workable size, so the run dies after exhausting attempts.

ISOBARIC_WORKFLOW takes the same path(mzmls) input as PROTEOMICSLFQ, so it reuses the
identical file-count rule. MSSTATS_CONVERTER receives the single merged consensusXML
instead of a file list, so it scales on that file's size.

.size() means BYTES for a single Path but COUNT for a List, so the consensusXML closure
guards the List case explicitly - a future change to a collected channel would otherwise
silently take the small branch and reintroduce the OOM.
…urces

fix(pride config): scale ISOBARIC_WORKFLOW and MSSTATS_CONVERTER with experiment size
pmultiqc 0.0.45 -> 0.0.46
  #714 bumped to 0.0.45, which fails every test_dda_id_* profile:

    ValueError: No pmultiqc plugin selected; skipping.
    AttributeError: module 'rich' has no attribute 'panel'

  Those profiles do not export an mzTab, so `--quantms-plugin` is never added
  and 0.0.45 raises instead of degrading. pmultiqc 0.0.46 is exactly the fix:
  "Allow successful execution without mzTab file" (bigbio/pmultiqc#688),
  "gracefully handle plugin execution errors" (#689) and "Support pmultiqc
  without mzTab" (#690).

quantms-rescoring 0.0.21 -> 0.0.22 (8 references: 4 docker, 4 singularity)
  0.0.21 is broken for multi-engine runs. On a comet+msgf merge it collapsed
  the Percolator feature table to four raw scores with a single global
  imputation constant; ~80% of PSMs in such a run are single-engine and those
  are ~45% decoy, so protein-level FDR never cleared 1% and EPIFANY returned
  "No proteins left after FDR filtering" (exit 8).

  0.0.22 feeds Percolator the union of every engine's features with
  orientation-aware per-feature imputation and engine-source indicators.
  Validated on MSV000085836 (552 TMT fractions): ISOBARIC_WORKFLOW merged
  41,391 proteins where 0.0.21 produced zero, and the full run yields +4.4%
  peptides / +0.6% protein groups at 1% FDR vs the comet-only reference. It
  also generalises to SAGE (comet+sage, msgf+sage, comet+msgf+sage), with the
  Sage feature set verified against a real SageAdapter idparquet.

  Single-engine runs are unchanged: the consensus path only activates for
  multi-engine merges, and the default remains search_engines=comet.

CAVEAT: multi-engine consensus feeds Percolator explicit engine-source
indicators, and engine source correlates strongly with decoy status. There is
no stratified or entrapment calibration evidence yet that protein-level FDR
stays calibrated under that mixture, so multi-engine should stay opt-in and be
validated per dataset. This bump does not change any default.
…0.22

chore: pmultiqc 0.0.46 and quantms-rescoring 0.0.22 (incorporates #714)
0.0.22 raised ValueError on every comet,msgf / *+sage merge (numpy-array
truth-test on sp_metavalues). 0.0.23 fixes it; the multi-engine test
(test_psm_clean_multi_engine) is green in the 0.0.23 release CI.
…0.22

chore: pin quantms-rescoring 0.0.23 (0.0.22 was broken for multi-engine)
0.0.24 adds the get_default_scores None-guard (#93) that fixes
test_dda_id_fine_tuning (float(None) crash on a Comet PSM lacking MS:1002252,
seen with ms2rescore phospho/ETD data) plus the _worst_observed_score
object-dtype hardening (#95). 0.0.23 fixed the multi-engine numpy-truthiness
crash; 0.0.24 clears the last CI failure.
ypriverol and others added 14 commits August 5, 2026 17:23
E2E surfaced that OpenMS IsobaricWorkflow REQUIRES -out_mzTab (and ProteomicsLFQ
-out) — dropping the flag fails the tool with 'required parameter out_mzTab not
given'. Restore -out_mzTab (IsobaricWorkflow) and -out (ProteomicsLFQ) so the tools
run, but keep the out_mztab emit removed: the mzTab is written to the work dir yet
never declared as an output, so the pipeline neither publishes nor consumes it.
QPX (-out_qpx) remains the sole published quantification artifact. Guard comments
added so the required flags are not removed again.
qpx 1.1.0 is now published to BioConda/BioContainers, so QPX_CONVERT
uses the standard nf-core dual container (Galaxy depot singularity +
biocontainers docker) like the other quantms modules, replacing the
ghcr.io/bigbio/qpx image. Also corrects the module header comment to
qpxc convert openms-consensus.
The BioContainers image (biocontainers/qpx) exists on quay.io, but the
Galaxy depot singularity mirror has not synced qpx yet, so singularity
runs (the EBI cluster) would fail to pull. Revert to ghcr.io/bigbio/qpx,
which serves both Docker and Singularity (via docker://). Switch back to
BioContainers once the depot mirror catches up.
quant_tables was publishing ProteomicsLFQ/IsobaricWorkflow's raw
-out_qpx folder (which mis-assigns every PSM's run, OpenMS#9872, and has
no psm_id) plus the consensusXML, while QPX_CONVERT's refined QPX (the
qpxc convert openms-consensus output, with correct per-PSM run,
psm_id, and localization scores) was not published at all.

Publish QPX_CONVERT's output to quant_tables; restrict ProteomicsLFQ/
IsobaricWorkflow publishing to the MSstats input only (the raw -out_qpx
and consensusXML are intermediates consumed by QPX_CONVERT).
…accession

quant_tables/ keeps msstats + quant tables; the refined QPX dataset now
publishes flat under qpx/ (psm/feature/pg + metadata parquets), matching
quantmsdiann's QPX_EXPORT layout. Emit dataset files individually
(${prefix}_qpx/*) so publishDir saveAs strips the wrapping dir. Also fix
the doubled/dangling --project-accession flag in the QPX_CONVERT command
(accession already carries the flag).
Replace the local QPX_CONVERT module with the shared
bigbio/qpx/openmsconsensus nf-module (GHCR qpx:1.1.1). Brings the MuData
(.h5mu) build step, --compression zstd, and the qpx_output/* layout that
quantms was missing, and keeps quantms/quantmsdiann on one shared
converter.

- vendor modules/bigbio/qpx/openmsconsensus + modules.json entry
- lfq.nf/tmt.nf: call QPX_OPENMSCONSENSUS(consensusxml, sdrf, accession);
  final_result = .out.qpx_dataset
- shared.config: publishDir targets QPX_OPENMSCONSENSUS (flat qpx/, incl .h5mu)
- remove modules/local/qpx/qpx_convert

Validated via 'nextflow inspect -profile test_lfq,docker'.
mzTab is no longer a published quantms artifact (QPX + MuData replaced
it). Remove mzTab from the output-format list and the DDA output file
lists, update paths to the flat top-level qpx/ dir, and drop the
lingering 'replaces the mzTab' comments. The internal OpenMS -out_mzTab
flag stays (OpenMS requires it; produced but not published).
feat(dda): refine OpenMS -out_qpx into clean QPX, replace mzTab as published artifact
@qodo-code-review

Copy link
Copy Markdown
Contributor

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 →

@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@daichengxin, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 26 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3a349cd1-5cc6-41cb-a51c-c3ac1a35a756

📥 Commits

Reviewing files that changed from the base of the PR and between 521fe06 and a0ef1a1.

📒 Files selected for processing (2)
  • docs/output.md
  • nextflow_schema.json
📝 Walkthrough

Walkthrough

The pipeline now publishes QPX and MuData quantification outputs for LFQ and TMT workflows. It removes published mzTab outputs, updates process configuration and resources, refreshes containers and actions, and adds artifact-based PR comments and repository safeguards.

Changes

Pipeline modernization

Layer / File(s) Summary
CI comment flow and repository safeguards
.github/workflows/*, .github/actions/*, .hooks/*, .pre-commit-config.yaml, nf-test.config, .nf-core.yml
CI workflows now create PR-comment artifacts for a privileged posting workflow. Action pins, lint conditions, nf-test triggers, and repository checks are updated.
QPX module and parameter contract
modules.json, modules/bigbio/qpx/openmsconsensus/*, nextflow.config, nextflow_schema.json
Adds the QPX_OPENMSCONSENSUS process and metadata. Adds QPX accession support and best-per-spectrum configuration.
QPX workflow integration and publication
workflows/lfq.nf, workflows/tmt.nf, conf/modules/shared.config, docs/output.md, modules/local/pmultiqc/*
LFQ and TMT now emit QPX datasets. Publishing rules and output documentation describe QPX and MSstats artifacts.
Process outputs, parameters, and resources
modules/local/openms/*, conf/modules/verbose_modules.config, conf/pride_codon_slurm.config, nextflow.config, nextflow_schema.json
Removes mzTab output declarations and obsolete settings. Adds Percolator filtering, PMultiQC option changes, and dynamic SLURM resources.
Execution environment and release metadata
conf/dev.config, modules/local/*, CHANGELOG.md, README.md, ro-crate-metadata.json
Updates container versions, MSGFPlus resolution, release metadata, and recorded pipeline version to 1.9.0.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Workflow
  participant QPX_OPENMSCONSENSUS
  participant PublishedOutputs
  Workflow->>QPX_OPENMSCONSENSUS: Submit consensusXML, SDRF, and accession
  QPX_OPENMSCONSENSUS->>PublishedOutputs: Produce QPX dataset and MuData
  PublishedOutputs-->>Workflow: Expose QPX as final_result
Loading

Possibly related PRs

  • bigbio/quantms#549: Updates the shared PMULTIQC module and overlapping pipeline configuration.
  • bigbio/quantms#574: Updates overlapping GitHub Actions and linting configuration.
  • bigbio/quantms#721: Contains the same workflow, dependency, configuration, and module changes.

Suggested labels: Review effort 4/5

Suggested reviewers: jpfeuffer, daichengxin

🚥 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 summarizes the main changes: QPX conversion refinements and workflow dependency updates.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

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.

@github-actions

github-actions Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

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

Posted for pipeline commit a0ef1a1

+| ✅ 119 tests passed       |+
#| ❔  18 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   7 tests had warnings |!
Details

❗ Test warnings:

❔ Tests ignored:

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 4.1.0
  • Run at 2026-08-08 10:48:28

Prepare the 1.9.0 release (PR #726, dev -> master): bump manifest +
.nf-core.yml + ro-crate version 1.9.0dev -> 1.9.0, and fill the CHANGELOG
1.9.0 section (QPX replaces mzTab as the DDA artifact via the shared
bigbio/qpx/openmsconsensus module; pmultiqc 0.0.46 / quantms-rescoring
0.0.24; PRIDE isobaric resource scaling; template + dependency updates).
@ypriverol ypriverol self-assigned this Aug 7, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 12

🧹 Nitpick comments (3)
modules/bigbio/qpx/openmsconsensus/main.nf (1)

1-2: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Rename the QPX process to lowercase with underscores.

The new process name does not follow the required Nextflow naming convention. Rename it consistently to qpx_openmsconsensus.

  • modules/bigbio/qpx/openmsconsensus/main.nf#L1-L2: rename QPX_OPENMSCONSENSUS.
  • workflows/lfq.nf#L11-L11: update the module import.
  • workflows/lfq.nf#L57-L66: update the module invocation and output references.
  • workflows/tmt.nf#L12-L12: update the module import.
  • workflows/tmt.nf#L65-L74: update the module invocation and output references.
  • conf/modules/shared.config#L63-L70: update the withName selector.

As per coding guidelines, name processes and modules in lowercase with underscores.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@modules/bigbio/qpx/openmsconsensus/main.nf` around lines 1 - 2, Rename the
process QPX_OPENMSCONSENSUS to qpx_openmsconsensus, then update all references
consistently: the module imports, invocations, and output references in
workflows/lfq.nf lines 11 and 57-66 and workflows/tmt.nf lines 12 and 65-74,
plus the withName selector in conf/modules/shared.config lines 63-70.

Source: Coding guidelines

modules/local/openms/isobaric_workflow/main.nf (1)

16-20: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Remove ISOBARIC_WORKFLOW.out_qpx and its raw OpenMS flag.

Check that no caller consumes ISOBARIC_WORKFLOW.out.out_qpx, then remove the emitted raw QPX output, -out_qpx, and update the module comment to state that QPX_OPENMSCONSENSUS produces the published artefact.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@modules/local/openms/isobaric_workflow/main.nf` around lines 16 - 20, Remove
the out_qpx output emission from the ISOBARIC_WORKFLOW output declaration and
remove the corresponding raw OpenMS -out_qpx argument; first verify no callers
consume ISOBARIC_WORKFLOW.out.out_qpx. Update the module comment to state that
QPX_OPENMSCONSENSUS produces the published artefact.
modules/local/openms/msgf/main.nf (1)

21-24: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use single-quoted Groovy literals in the new MSGF branch.

The literals at Line 21 through Line 24 do not use interpolation. Replace them with single-quoted literals. Keep double quotes only where interpolation is required.

As per coding guidelines, use single quotes unless interpolation is needed.

Proposed style fix
-    if ((workflow.containerEngine || (task.executor == "awsbatch")) && task.container.indexOf("bigbio") > -1) {
-        msgf_jar = "-executable /opt/OpenMS/thirdparty/MSGFPlus/MSGFPlus.jar"
+    if ((workflow.containerEngine || (task.executor == 'awsbatch')) && task.container.indexOf('bigbio') > -1) {
+        msgf_jar = '-executable /opt/OpenMS/thirdparty/MSGFPlus/MSGFPlus.jar'

-    else if ((workflow.containerEngine || (task.executor == "awsbatch")) && (task.container.indexOf("biocontainers") > -1 || task.container.indexOf("depot.galaxyproject.org") > -1)) {
+    else if ((workflow.containerEngine || (task.executor == 'awsbatch')) && (task.container.indexOf('biocontainers') > -1 || task.container.indexOf('depot.galaxyproject.org') > -1)) {
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@modules/local/openms/msgf/main.nf` around lines 21 - 24, Update the new MSGF
branch condition and assignment around msgf_jar to use single-quoted Groovy
literals for all non-interpolated strings, including the container-name checks
and MSGFPlus path; retain double quotes only for literals requiring
interpolation.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/branch.yml:
- Around line 24-62: Update the comment text generated by the “Build PR comment”
step to replace the malformed phrase “is has been made” with “has been made”,
leaving the surrounding message unchanged.
- Around line 16-22: Update the Check PRs condition in the workflow so HEAD_REPO
must equal bigbio/quantms for both allowed branch cases. Continue allowing the
exact dev branch and change the patch check to match the intended patch-branch
naming convention, including patch-prefixed branches as required.

In @.github/workflows/fix_linting.yml:
- Line 16: Update the workflow’s checkout and job structure so PR-controlled
content is processed without persisting or exposing nf_core_bot_auth_token:
disable checkout credential persistence and run prek in an untrusted formatting
job. Add a separate trusted follow-up job that runs only after the untrusted job
succeeds, applies the restricted patch, and pushes changes using the bot
credential.

In @.github/workflows/pr-comment.yml:
- Around line 58-71: Update the metadata validation step around pr_number and
header to derive the authorized PR number from
github.event.workflow_run.pull_requests, reject artifacts whose numeric
pr_number does not match it, and only accept headers mapped or whitelisted for
the triggering producer workflow. Keep writing the validated values to
GITHUB_OUTPUT.

In @.hooks/block_pipeline_outdir.sh:
- Line 37: Update the echo guidance in the block_pipeline_outdir script to show
git restore with the option delimiter `--` after `--staged`, and render the
top_dir value using Bash-safe quoting so paths containing spaces or leading
hyphens work correctly.

In `@docs/output.md`:
- Around line 241-248: Remove the legacy mzTab-specific PRT, PEP, PSM, and opt_*
column descriptions from the QPX section, or replace them with the corresponding
QPX Parquet schemas. Keep the QPX overview and retain a link to the QPX
specification for schema and file-layout details.
- Around line 157-165: Synchronize output documentation and metadata with
publication paths: in docs/output.md lines 157-165, describe qpx/ and
quant_tables/ as separate directories and add qpx/ to both LFQ and ISO output
trees; in modules/local/pmultiqc/meta.yml lines 20-22, rename out_msstats.csv to
*_msstats_in.csv and remove the QPX reference unless that input receives the
published qpx/ directory.

In `@modules/bigbio/qpx/openmsconsensus/main.nf`:
- Around line 28-29: Validate project_accession against the supported
^PXD[0-9]+$ format before constructing acc_arg, reject invalid values, and
safely quote the validated value when passing it to qpxc in
modules/bigbio/qpx/openmsconsensus/main.nf:28-29. Add the same validation
pattern to the project_accession schema definition in
nextflow_schema.json:975-978.

In `@modules/local/openms/msstats_converter/main.nf`:
- Around line 6-8: Update the container selectors in
modules/local/openms/msstats_converter/main.nf (lines 6-8),
modules/local/openms/mzml_indexing/main.nf (lines 6-8),
modules/local/openms/openms_peak_picker/main.nf (lines 6-8),
modules/local/openms/proteomicslfq/main.nf (lines 6-8),
modules/local/openms/sage/main.nf (lines 6-8),
modules/local/utils/msrescore_features/main.nf (lines 5-7),
modules/local/utils/msrescore_fine_tuning/main.nf (lines 5-7), and
modules/local/utils/psm_clean/main.nf (lines 5-7) to use the same
container-engine selector as dev.config, including Apptainer, so Apptainer
profiles select the SIF reference correctly; alternatively, explicitly remove
Apptainer support for these containers.

In `@modules/local/pmultiqc/main.nf`:
- Around line 20-23: Update modules/local/pmultiqc/main.nf lines 20-23 so the
non-interpolated flag literals and empty fallbacks in disable_pmultiqc,
disable_table_plots, and disable_idxml_index use single quotes; retain double
quotes for the interpolated contaminant_affix branch. Also update
modules/local/openms/percolator/main.nf line 21 so -best_per_spectrum_only and
its empty fallback use single quotes.

In `@nextflow_schema.json`:
- Around line 756-761: The best_per_spectrum_only schema definition must match
the pipeline’s true default. Update its description to state that the default
retains only the best-scoring PSM per spectrum and declare the property’s
default as true, preserving its existing type and metadata.

In `@ro-crate-metadata.json`:
- Line 26: Regenerate the serialized description in the RO-Crate metadata from
the current README.md, replacing the stale template 4.0.2, Conda support text,
Zenodo placeholder, and template TODO content with the current README content.
Update only the description value and ensure it matches the README before
release.

---

Nitpick comments:
In `@modules/bigbio/qpx/openmsconsensus/main.nf`:
- Around line 1-2: Rename the process QPX_OPENMSCONSENSUS to
qpx_openmsconsensus, then update all references consistently: the module
imports, invocations, and output references in workflows/lfq.nf lines 11 and
57-66 and workflows/tmt.nf lines 12 and 65-74, plus the withName selector in
conf/modules/shared.config lines 63-70.

In `@modules/local/openms/isobaric_workflow/main.nf`:
- Around line 16-20: Remove the out_qpx output emission from the
ISOBARIC_WORKFLOW output declaration and remove the corresponding raw OpenMS
-out_qpx argument; first verify no callers consume
ISOBARIC_WORKFLOW.out.out_qpx. Update the module comment to state that
QPX_OPENMSCONSENSUS produces the published artefact.

In `@modules/local/openms/msgf/main.nf`:
- Around line 21-24: Update the new MSGF branch condition and assignment around
msgf_jar to use single-quoted Groovy literals for all non-interpolated strings,
including the container-name checks and MSGFPlus path; retain double quotes only
for literals requiring interpolation.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ec6c30e4-fe09-414b-9a20-3d47b25123e8

📥 Commits

Reviewing files that changed from the base of the PR and between 149493c and 521fe06.

📒 Files selected for processing (51)
  • .github/actions/nf-test/action.yml
  • .github/workflows/branch.yml
  • .github/workflows/clean-up.yml
  • .github/workflows/download_pipeline.yml
  • .github/workflows/fix_linting.yml
  • .github/workflows/linting.yml
  • .github/workflows/nf-test.yml
  • .github/workflows/pr-comment.yml
  • .github/workflows/template-version-comment.yml
  • .hooks/block_pipeline_outdir.sh
  • .nf-core.yml
  • .pre-commit-config.yaml
  • CHANGELOG.md
  • README.md
  • conf/dev.config
  • conf/modules/shared.config
  • conf/modules/verbose_modules.config
  • conf/pride_codon_slurm.config
  • docs/output.md
  • modules.json
  • modules/bigbio/qpx/openmsconsensus/environment.yml
  • modules/bigbio/qpx/openmsconsensus/main.nf
  • modules/bigbio/qpx/openmsconsensus/meta.yml
  • modules/local/openms/comet/main.nf
  • modules/local/openms/file_merge/main.nf
  • modules/local/openms/file_merge/meta.yml
  • modules/local/openms/generate_decoy_database/main.nf
  • modules/local/openms/id_merger/main.nf
  • modules/local/openms/id_merger/meta.yml
  • modules/local/openms/isobaric_workflow/main.nf
  • modules/local/openms/isobaric_workflow/meta.yml
  • modules/local/openms/msgf/main.nf
  • modules/local/openms/msstats_converter/main.nf
  • modules/local/openms/mzml_indexing/main.nf
  • modules/local/openms/openms_peak_picker/main.nf
  • modules/local/openms/percolator/main.nf
  • modules/local/openms/proteomicslfq/main.nf
  • modules/local/openms/proteomicslfq/meta.yml
  • modules/local/openms/sage/main.nf
  • modules/local/pmultiqc/main.nf
  • modules/local/pmultiqc/meta.yml
  • modules/local/utils/msrescore_features/main.nf
  • modules/local/utils/msrescore_fine_tuning/main.nf
  • modules/local/utils/psm_clean/main.nf
  • modules/local/utils/spectrum_features/main.nf
  • nextflow.config
  • nextflow_schema.json
  • nf-test.config
  • ro-crate-metadata.json
  • workflows/lfq.nf
  • workflows/tmt.nf
💤 Files with no reviewable changes (7)
  • modules/local/openms/id_merger/meta.yml
  • modules/local/openms/proteomicslfq/meta.yml
  • conf/modules/verbose_modules.config
  • modules/local/openms/file_merge/meta.yml
  • modules/local/openms/id_merger/main.nf
  • modules/local/openms/file_merge/main.nf
  • modules/local/openms/isobaric_workflow/meta.yml

Comment thread .github/workflows/branch.yml Resolved
Comment thread .github/workflows/branch.yml Resolved
Comment thread .github/workflows/fix_linting.yml Resolved
Comment thread .github/workflows/pr-comment.yml Resolved
Comment thread .hooks/block_pipeline_outdir.sh Resolved
Comment on lines +28 to +29
def prefix = project_accession ?: 'openms'
def acc_arg = project_accession ? "--project-accession ${project_accession}" : ''

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Validate and safely handle accession.

project_accession is inserted into a shell command without quoting or an allowlist. A value containing shell syntax can alter the task command when an external submission system exposes this parameter. Restrict the value to the supported accession format and reject invalid values before command construction.

  • modules/bigbio/qpx/openmsconsensus/main.nf#L28-L29: validate project_accession before constructing acc_arg, then quote the validated value when passing it to qpxc.
  • nextflow_schema.json#L975-L978: add a validation pattern for the supported PRIDE accession format, such as ^PXD[0-9]+$.

As per coding guidelines, add validation constraints when introducing parameters for a new step.

📍 Affects 2 files
  • modules/bigbio/qpx/openmsconsensus/main.nf#L28-L29 (this comment)
  • nextflow_schema.json#L975-L978
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@modules/bigbio/qpx/openmsconsensus/main.nf` around lines 28 - 29, Validate
project_accession against the supported ^PXD[0-9]+$ format before constructing
acc_arg, reject invalid values, and safely quote the validated value when
passing it to qpxc in modules/bigbio/qpx/openmsconsensus/main.nf:28-29. Add the
same validation pattern to the project_accession schema definition in
nextflow_schema.json:975-978.

Source: Coding guidelines

Comment on lines 6 to +8
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2026.06.06' :
'ghcr.io/bigbio/openms-tools-thirdparty:2026.06.06' }"
'oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2026.07.02' :
'ghcr.io/bigbio/openms-tools-thirdparty:2026.07.02' }"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

rg -n \
  "workflow\\.containerEngine|apptainer|singularity|openms-tools-thirdparty|quantms-rescoring" \
  conf modules nextflow.config .nf-core.yml

Repository: bigbio/quantms

Length of output: 13769


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

cat -n conf/dev.config | sed -n '1,45p'
echo '--- nextflow.config relevant sections ---'
cat -n nextflow.config | sed -n '240,340p'
echo '--- targeted module selectors ---'
for f in modules/local/openms/msstats_converter/main.nf \
         modules/local/openms/mzml_indexing/main.nf \
         modules/local/openms/openms_peak_picker/main.nf \
         modules/local/openms/proteomicslfq/main.nf \
         modules/local/openms/sage/main.nf \
         modules/local/utils/msrescore_features/main.nf \
         modules/local/utils/msrescore_fine_tuning/main.nf \
         modules/local/utils/psm_clean/main.nf; do
  echo "FILE: $f"
  cat -n "$f" | sed -n '1,12p'
done

python3 - <<'PY'
from pathlib import Path
import re
files = [
 'modules/local/openms/msstats_converter/main.nf',
 'modules/local/openms/mzml_indexing/main.nf',
 'modules/local/openms/openms_peak_picker/main.nf',
 'modules/local/openms/proteomicslfq/main.nf',
 'modules/local/openms/sage/main.nf',
 'modules/local/utils/msrescore_features/main.nf',
 'modules/local/utils/msrescore_fine_tuning/main.nf',
 'modules/local/utils/psm_clean/main.nf',
]
pat = re.compile(r"workflow\.containerEngine\s*==\s*['\"]([^'\"]+)['\"]")
for f in files:
    text = Path(f).read_text()
    print(f, "engine_predicates=", sorted(set(pat.findall(text))))
PY

Repository: bigbio/quantms

Length of output: 11172


🌐 Web query:

Nextflow SIF container references execute with apptainer profile workflow.containerEngine container option

💡 Result:

To execute a Nextflow workflow using SIF (Singularity Image Format) containers with the Apptainer container engine, you can point to the local file path of your SIF image in your configuration or command-line execution [1][2][3]. When apptainer.enabled = true is set in your configuration, Nextflow will automatically use the apptainer exec command to run your processes [1][2]. If the path provided in your process container definition corresponds to an existing SIF file on the filesystem, Nextflow will use that file directly for execution [2]. You can implement this in your nextflow.config file using a profile as follows [4][5]: profiles { apptainer { apptainer.enabled = true process.container = '/path/to/your/image.sif' } } To run the workflow with this configuration, use the -profile flag [4][5]: nextflow run -profile apptainer Key technical points: - SIF File Usage: If you specify a container name, Nextflow first checks if an image file (like a SIF file) exists at that path [2]. If it exists, it is used; otherwise, Nextflow attempts to pull it from a registry [2]. - Engine Selection: You do not need a specific workflow.containerEngine option to select Apptainer; simply enabling it via apptainer.enabled = true in your configuration or using the -with-apptainer command-line flag is the standard approach [1][2]. - Cache Management: By default, Nextflow may cache images in the pipeline work directory [1][2]. To manage SIF files more effectively on shared filesystems, use apptainer.cacheDir or the NXF_APPTAINER_CACHEDIR environment variable to define a centralized location [1][2]. - OCI Compatibility: If you are pulling remote images instead of using a local SIF, you can use the apptainer.ociAutoPull = true setting (available in modern Nextflow versions) to allow Apptainer to handle the OCI-to-SIF conversion, which avoids manual conversion and extra caching in the work directory [3][6].

Citations:


Align module container selectors with the Apptainer profiles.

dev.config uses SIF references for both singularity and apptainer, but these modules only check workflow.containerEngine == 'singularity'. When the apptainer profile is used, the SIF path is assigned as the Docker/OCI container and Nextflow attempts to pull/run it as a container reference. Use the same selector as dev.config, or remove Apptainer support for these containers.

📍 Affects 8 files
  • modules/local/openms/msstats_converter/main.nf#L6-L8 (this comment)
  • modules/local/openms/mzml_indexing/main.nf#L6-L8
  • modules/local/openms/openms_peak_picker/main.nf#L6-L8
  • modules/local/openms/proteomicslfq/main.nf#L6-L8
  • modules/local/openms/sage/main.nf#L6-L8
  • modules/local/utils/msrescore_features/main.nf#L5-L7
  • modules/local/utils/msrescore_fine_tuning/main.nf#L5-L7
  • modules/local/utils/psm_clean/main.nf#L5-L7
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@modules/local/openms/msstats_converter/main.nf` around lines 6 - 8, Update
the container selectors in modules/local/openms/msstats_converter/main.nf (lines
6-8), modules/local/openms/mzml_indexing/main.nf (lines 6-8),
modules/local/openms/openms_peak_picker/main.nf (lines 6-8),
modules/local/openms/proteomicslfq/main.nf (lines 6-8),
modules/local/openms/sage/main.nf (lines 6-8),
modules/local/utils/msrescore_features/main.nf (lines 5-7),
modules/local/utils/msrescore_fine_tuning/main.nf (lines 5-7), and
modules/local/utils/psm_clean/main.nf (lines 5-7) to use the same
container-engine selector as dev.config, including Apptainer, so Apptainer
profiles select the SIF reference correctly; alternatively, explicitly remove
Apptainer support for these containers.

Comment thread modules/local/pmultiqc/main.nf Resolved
Comment thread nextflow_schema.json Resolved
Comment thread ro-crate-metadata.json Resolved
- add qpx/ to output directory trees
- drop verbose opt_ column explanations from docs
- set best_per_spectrum_only default to true

Co-Authored-By: Claude <[email protected]>
@ypriverol
ypriverol merged commit eb89480 into master Aug 9, 2026
154 of 161 checks passed
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.

3 participants