Repository navigation
[FIX] ProteinGroupArrowExport: null global_qvalue for a group without a q-value - #10700
Merged
Merged
Conversation
… 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
marked this pull request as ready for review
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ProteinGroupArrowExportwrote a protein group'sprobabilityasglobal_qvalueas it is, so a group without a q-value (probability NaN) got a NaNglobal_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 nullglobal_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 nullglobal_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