Skip to content

fix(writers): Drop the scores a typed q-value column repeats - #386

Merged
Shen-YuFei merged 2 commits into
devfrom
fix/drop-duplicate-typed-qvalue-scores
Nov 13, 2026
Merged

Shen-YuFei merged 2 commits into
devfrom
fix/drop-duplicate-typed-qvalue-scores

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

Split out of #382, which is about reading multi-file views. This commit changes what the writers store, so it gets its own review and release note.

Change

When a typed q-value column holds a score, the writers no longer also keep it in additional_scores:

View Typed column Score removed from the list
feature precursor_qvalue, peptide_qvalue, global_qvalue the score with that exact name
psm qvalue qvalue

A score is removed only when its normalized name equals the column name and its value equals the column's filled value. Aliases (q_value, percolator_q_value, diann_global_qvalue) and differing values stay in the list. Null lists stay null.

Format impact

Files written after this hold DIA-NN Q.Value only in feature.precursor_qvalue, no longer also in additional_scores. Readers that look up precursor_qvalue in additional_scores need to read the typed column first. The quantms portal's evaluation checks are being updated for this before it ships. This should go into the release notes.

Tests

tests/integration/test_typed_confidence.py (new parametrized test over the 4 columns) and the updated DIA-NN converter tests. Locally: these plus tests/unit, 781 passed.

Original commit: 783be8d by Yufei Shen, rebased onto dev. The only conflict was in the serialization.md paragraph that #382 adds; that edit stays out of this PR.

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 49f8a472-baa3-4c88-8751-92bd2767f9bc

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 5 complexity · 0 duplication

Metric Results
Complexity 5
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Shen-YuFei added a commit that referenced this pull request Nov 12, 2026
@Shen-YuFei
Shen-YuFei merged commit b04df33 into dev Nov 13, 2026
9 checks passed
Shen-YuFei added a commit to Shen-YuFei/qpx that referenced this pull request Nov 13, 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