Skip to content

[FIX] ProteinGroupArrowExport: null global_qvalue for a group without a q-value - #10700

Merged
timosachsenberg merged 1 commit into
developfrom
claude/pg-export-null-qvalue
Oct 22, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/pg-export-null-qvalue

Conversation

@timosachsenberg

Copy link
Copy Markdown
Contributor

What

ProteinGroupArrowExport wrote a protein group's probability as global_qvalue as it is, so a group without a q-value (probability NaN) got a NaN global_qvalue. The column is nullable, and in QPX (and Parquet) null is "no value": a NaN reads as a number. Now a non-finite probability gives a null global_qvalue, in both exporters (identifications and ConsensusMap).

Groups without a q-value occur e.g. when a tool makes one group per protein without protein inference (ProSE's -qpx_extended, #10676, does so for a run without protein inference).

Tests

ProteinGroupArrowExport_test: a group with a NaN probability gets a null global_qvalue (identifications and ConsensusMap overloads); a group with a q-value keeps it. Run locally (Linux, Release) with the rest of the class test.

🤖 Generated with Claude Code

… a q-value

A protein group whose probability is NaN (no q-value, e.g. groups made without protein inference) was
written as a NaN global_qvalue. The column is nullable, and null is QPX's "no value": write null for a
non-finite probability, in both exporters (identifications and ConsensusMap).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@timosachsenberg
timosachsenberg marked this pull request as ready for review October 22, 2026 11:08
@timosachsenberg
timosachsenberg merged commit c4db189 into develop Oct 22, 2026
33 checks passed
@timosachsenberg
timosachsenberg deleted the claude/pg-export-null-qvalue branch October 22, 2026 11:08
timosachsenberg pushed a commit that referenced this pull request Oct 25, 2026
…nges natively

- TOPPView_test: develop's test of an identification file in a window of
  its own (#10701) is kept next to testIdentifications and counts the
  identifications of the layer's identification data. Its peptide
  identifications get a q-value score type: TOPPView loads identification
  files into identification data, whose import needs the score type of
  every peptide identification with hits (documented in
  identification-data.md).
- TextExporter: develop's USI mapper (#10593) is built from the exported
  protein runs of the consensus map.
- ProteinGroupArrowExport_test, ConsensusMapArrowExport_test: develop's
  q-value sections (#10700, #10708) set the protein runs through the
  identification data converter instead of the removed map accessors.
- bind_misc: the docstring of Bayesian inference on consensus maps names
  the protein run requirement without the removed accessor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
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