Repository navigation
fix(writers): Drop the scores a typed q-value column repeats - #386
Conversation
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 5 |
| Duplication | 0 |
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.
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:precursor_qvalue,peptide_qvalue,global_qvalueqvalueqvalueA 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.Valueonly infeature.precursor_qvalue, no longer also inadditional_scores. Readers that look upprecursor_qvalueinadditional_scoresneed 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 plustests/unit, 781 passed.Original commit: 783be8d by Yufei Shen, rebased onto
dev. The only conflict was in theserialization.mdparagraph that #382 adds; that edit stays out of this PR.