Skip to content

Fix QPX export: disable by default and require project_accession - #90

Merged
ypriverol merged 4 commits into
devfrom
claude/review-pr-comments-06nre
May 8, 2026
Merged

ypriverol merged 4 commits into
devfrom
claude/review-pr-comments-06nre

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

Description

This PR fixes the QPX export feature to be disabled by default and enforces the required --project_accession parameter when enabled. The changes address safety and usability concerns:

Changes Made

  1. QPX Export Default Behavior

    • Changed enable_qpx_export default from true to false in nextflow.config and nextflow_schema.json
    • Added validation in workflows/dia.nf to require --project_accession when QPX export is enabled
    • Added JSON schema constraint to enforce project_accession as required when enable_qpx_export is true
  2. Documentation Updates

    • Updated docs/usage.md to reflect that QPX export is disabled by default and requires --project_accession
    • Clarified that --project_accession is required for QPX export (used as output prefix and PRIDE/PX provenance metadata)
    • Updated parameter table to show correct defaults and dependencies
    • Updated example commands to use experiment.sdrf.tsv naming convention
  3. Preprocessing Documentation

    • Updated --reindex_mzml documentation to reflect new default (false) with clarification that ThermoRawFileParser and wiff converter already emit indexed mzML
    • Updated usage examples to match current best practices
  4. Container Registry Fix

    • Updated QPX container reference from biocontainers/qpx to quay.io/biocontainers/qpx for better reliability

Rationale

  • QPX export is experimental (v2.1.0) and should not be enabled by default
  • --project_accession is essential for proper metadata embedding and output naming, so it should be enforced when the feature is used
  • Schema validation ensures users cannot accidentally enable QPX export without providing the required parameter

PR Checklist

  • Description of changes included
  • Usage Documentation in docs/usage.md is updated
  • Configuration changes are documented
  • Schema validation added for parameter dependencies

https://claude.ai/code/session_01DXnE135kseZP1HVsfdVChH

- docs/usage.md: replace `sdrf.tsv` with `experiment.sdrf.tsv` in pridepy
  and QPX examples so they pass the new `.sdrf.tsv` schema validation.
- docs/usage.md: align `--reindex_mzml` description with the flipped
  schema default (now `false`); update both occurrences.
- modules/bigbio/qpx: point Docker container at
  `quay.io/biocontainers/qpx:1.0.2` (the bare `biocontainers/...`
  form resolves to Docker Hub, where this tag is not published).
- nextflow_schema.json + nextflow.config: flip `enable_qpx_export`
  default to `false` (consistent with its "Experimental" labelling) and
  add an `if/then` guard requiring `project_accession` whenever it is
  enabled, mirroring the `pridepy_download` contract.
- workflows/dia.nf: fail fast with `error()` if QPX export is enabled
  without `project_accession`, so the QPX prefix never silently falls
  back to "diann" and PRIDE/PX provenance is never lost.
@qodo-code-review

Copy link
Copy Markdown
ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one.

@coderabbitai

coderabbitai Bot commented May 8, 2026 •

Copy link
Copy Markdown

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: 3a2ee808-545f-41ee-94bd-a6998d7703a5

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/review-pr-comments-06nre

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.

claude added 2 commits May 8, 2026 10:09
nf-core lint's schema_lint walks every entry in the top-level allOf
assuming each is a $ref, so a bare if/then guard makes it crash with
KeyError: '$ref'. The workflows/dia.nf early error() already enforces
that --project_accession is set when --enable_qpx_export is on, which
is sufficient to prevent the silent 'diann' fallback prefix.
@github-actions

github-actions Bot commented May 8, 2026 •

Copy link
Copy Markdown

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

Posted for pipeline commit d92bac0

+| ✅ 108 tests passed       |+
#| ❔  18 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   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 fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 4.0.2
  • Run at 2026-05-08 10:18:52

The qpx module is pinned via modules.json to bigbio/modules at
69529f0bf418a82b75c4d29255f9f73f8ed84dbf, so editing it locally fails
nf-core lint's check_local_copy. The biocontainers/qpx -> quay.io fix
needs to land upstream in bigbio/modules and then be pulled in via
`nf-core modules update qpx`.
@ypriverol
ypriverol merged commit fabd963 into dev May 8, 2026
20 checks passed
Shen-YuFei added a commit to Shen-YuFei/quantmsdiann that referenced this pull request May 8, 2026
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.

2 participants