Repository navigation
Conversation
Update tmt.config, msstats_converter and isobaric_workflow meta
update openms and rescoring
update template
… 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.
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 reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Warning Review limit reached
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 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe 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. ChangesPipeline modernization
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
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
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).
Co-Authored-By: Claude <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 12
🧹 Nitpick comments (3)
modules/bigbio/qpx/openmsconsensus/main.nf (1)
1-2: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRename 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: renameQPX_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 thewithNameselector.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 winRemove
ISOBARIC_WORKFLOW.out_qpxand 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 thatQPX_OPENMSCONSENSUSproduces 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 winUse 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
📒 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.yamlCHANGELOG.mdREADME.mdconf/dev.configconf/modules/shared.configconf/modules/verbose_modules.configconf/pride_codon_slurm.configdocs/output.mdmodules.jsonmodules/bigbio/qpx/openmsconsensus/environment.ymlmodules/bigbio/qpx/openmsconsensus/main.nfmodules/bigbio/qpx/openmsconsensus/meta.ymlmodules/local/openms/comet/main.nfmodules/local/openms/file_merge/main.nfmodules/local/openms/file_merge/meta.ymlmodules/local/openms/generate_decoy_database/main.nfmodules/local/openms/id_merger/main.nfmodules/local/openms/id_merger/meta.ymlmodules/local/openms/isobaric_workflow/main.nfmodules/local/openms/isobaric_workflow/meta.ymlmodules/local/openms/msgf/main.nfmodules/local/openms/msstats_converter/main.nfmodules/local/openms/mzml_indexing/main.nfmodules/local/openms/openms_peak_picker/main.nfmodules/local/openms/percolator/main.nfmodules/local/openms/proteomicslfq/main.nfmodules/local/openms/proteomicslfq/meta.ymlmodules/local/openms/sage/main.nfmodules/local/pmultiqc/main.nfmodules/local/pmultiqc/meta.ymlmodules/local/utils/msrescore_features/main.nfmodules/local/utils/msrescore_fine_tuning/main.nfmodules/local/utils/psm_clean/main.nfmodules/local/utils/spectrum_features/main.nfnextflow.confignextflow_schema.jsonnf-test.configro-crate-metadata.jsonworkflows/lfq.nfworkflows/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
| def prefix = project_accession ?: 'openms' | ||
| def acc_arg = project_accession ? "--project-accession ${project_accession}" : '' |
There was a problem hiding this comment.
🔒 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: validateproject_accessionbefore constructingacc_arg, then quote the validated value when passing it toqpxc.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
| 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' }" |
There was a problem hiding this comment.
🩺 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.ymlRepository: 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))))
PYRepository: 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:
- 1: https://dokk.org/documentation/nextflow/v23.10.0/container/
- 2: https://docs.seqera.io/nextflow/container/apptainer
- 3: https://seqera.io/blog/singularity-reloaded-article/
- 4: https://dokk.org/documentation/nextflow/v23.10.0/config/
- 5: https://www.nextflow.io/docs/latest/config.html?highlight=docker
- 6: Support OCI images in apptainer nextflow-io/nextflow#4543
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-L8modules/local/openms/openms_peak_picker/main.nf#L6-L8modules/local/openms/proteomicslfq/main.nf#L6-L8modules/local/openms/sage/main.nf#L6-L8modules/local/utils/msrescore_features/main.nf#L5-L7modules/local/utils/msrescore_fine_tuning/main.nf#L5-L7modules/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.
- 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]>
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).Summary by CodeRabbit