Skip to content

[DOC] Correct the qpx converter survey in the pg run_file_name TODO (#9817) - #9821

Merged
timosachsenberg merged 1 commit into
developfrom
claude/qpx-9817-correct-converter-note
Jul 29, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/qpx-9817-correct-converter-note

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Comment-only follow-up to #9818. No behaviour change.

The TODO(#9817) added in eafaa82 states that qpx's own converters "emit a stable non-empty token ("unknown" / the mzid basename / "combined")" for a protein group with no single origin run. Checking the converters directly, that is wrong in two ways.

No converter emits the literal combined. The string appears in docs/spec/tool-mappings.md's MaxQuant column and in FragPipe's combined_protein.tsv filename and its Combined Total Peptides columns, but never as a run_file_name value. MaxQuant's "unknown" is a fallback for input carrying no per-sample intensity columns at all, not a cross-run encoding.

More importantly, the framing is misleading — qpx has no cross-run encoding to copy. pg.md mandates one row per protein group per run and requires converters to melt wide-format columns into separate rows keyed by run_file_name. Its four quantitative converters (MaxQuant, FragPipe, DIA-NN, quantms) all do that, taking run identity from per-run intensity columns. Only mzIdentML — the one identification-only converter, i.e. exactly the shape this branch produces — emits a single global row per group, labelled with the source file basename. Upstream answers the question two incompatible ways.

The comment now says that, and additionally records that melting is available to us without quantification: the peptide loop directly below already matches peptides to this run, and each one's origin file is recoverable via Constants::UserParam::ID_MERGE_INDEX. That turns "unresolved upstream" into a concrete starting point for whoever implements the decision.

Raised upstream in bigbio/qpx#51 (bigbio/qpx#51 (comment)); tracked in #9817 and #9820.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DF2YUewPQTC5tJWqn23pUm

Summary by CodeRabbit

  • Documentation
    • Clarified how protein groups spanning multiple MS runs are represented in exported data.
    • Added context explaining when the originating run filename is intentionally left empty.

…9817)

The TODO added in eafaa82 states that qpx's own converters "emit a stable
non-empty token ("unknown" / the mzid basename / "combined")" for a protein
group with no single origin run. Checking the converters directly, that is
wrong in two ways.

No converter emits the literal "combined" as a run_file_name value. The string
appears in docs/spec/tool-mappings.md's MaxQuant column and in FragPipe's
combined_protein.tsv filename and its "Combined Total Peptides" columns, but
never as a value. MaxQuant's "unknown" is a fallback for input carrying no
per-sample intensity columns at all, not a cross-run encoding.

More importantly, the framing is misleading: qpx has no cross-run encoding to
copy. pg.md mandates one row per protein group PER RUN and requires converters
to melt wide-format columns into separate rows keyed by run_file_name, and its
four quantitative converters (MaxQuant, FragPipe, DIA-NN, quantms) all do that,
taking run identity from per-run intensity columns. Only mzIdentML - the one
identification-only converter, i.e. exactly the shape this branch produces -
emits a single global row per group, labelled with the source file basename.
Upstream therefore answers this question two incompatible ways.

Also record that melting is available here without quantification: the peptide
loop below already matches peptides to this run, and each one's origin file is
recoverable via Constants::UserParam::ID_MERGE_INDEX.

Comment only; no behaviour change.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DF2YUewPQTC5tJWqn23pUm
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 85579fec-cf63-4b09-9482-93362526f938

📥 Commits

Reviewing files that changed from the base of the PR and between 5ff1c93 and ead4ada.

📒 Files selected for processing (1)
  • src/openms/source/FORMAT/ProteinGroupArrowExport.cpp

📝 Walkthrough

Walkthrough

Changes

QPX export documentation

Layer / File(s) Summary
Multi-run export comment
src/openms/source/FORMAT/ProteinGroupArrowExport.cpp
The comment documents QPX expectations for protein groups spanning multiple MS runs and explains leaving run_file_name empty. No executable logic changed.

Possibly related PRs

  • OpenMS/OpenMS#9818: Addresses the related QPX export behavior described by this comment.

Poem

A rabbit reads the comment bright,
On run files empty, yet quite right.
Across many runs, the notes now say
Why QPX hops along its way.
No code was changed—just words took flight!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the comment-only documentation fix about qpx converter behavior and the pg run_file_name TODO.
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 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/qpx-9817-correct-converter-note

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.

@timosachsenberg
timosachsenberg merged commit 23a557a into develop Jul 29, 2026
40 checks passed
@timosachsenberg
timosachsenberg deleted the claude/qpx-9817-correct-converter-note branch July 29, 2026 11:18
timosachsenberg added a commit that referenced this pull request Jul 30, 2026
Audited recently merged develop PRs against CHANGELOG (last backfill
attempt was #9811/#9806, covering up to #9803). Four merged PRs since
then were missing entries: #9824 (IsobaricWorkflow empty-feature
pruning fix), #9523 (new CI build/release workflows), #9812 (pyOpenMS
docstring fixes) and #9798 (Bioconda nightly deploy fix, whose two
prior backfill attempts were closed unmerged). #9821 (internal
TODO-comment correction, no behavior/doc change) and #9805/#9803
(test-only / already covered by the #9792 write-up) were left out,
consistent with this repo's convention of not logging
test-infrastructure-only or already-documented changes.


Claude-Session: https://claude.ai/code/session_01WU21QuzvxLH5BuSxatVikX

Co-authored-by: Claude <[email protected]>
timosachsenberg added a commit that referenced this pull request Aug 3, 2026
…9835, #9836 (#9841)

Backfills the QPX export spec-conformance series, the macOS PKG
notarization fix, and the Windows GUI DLL export fix that merged into
develop without changelog entries. #9805 and #9821 were intentionally
skipped (test-only / comment-only, no user-visible behavior change),
and #9818 was already documented.


Claude-Session: https://claude.ai/code/session_0118Yt3TZEMzhMhH6FwZPDVt

Co-authored-by: Claude <[email protected]>
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