Skip to content

chore(deps): pin cafaeval-protea to the build that can emit per-protein scores - #782

Merged
github-actions[bot] merged 1 commit into
developfrom
chore/pin-cafaeval-per-protein
Aug 19, 2026
Merged

github-actions[bot] merged 1 commit into
developfrom
chore/pin-cafaeval-per-protein

Conversation

@frapercan

Copy link
Copy Markdown
Owner

Moves the cafaeval-protea pin from 80d705a to 7335b5b
(frapercan/cafaeval-protea#23).

7335b5b is 80d705a plus the optional PerProteinSink and nothing else:

$ git diff --stat 80d705a 7335b5b -- src/
 src/cafaeval/evaluation.py | 84 +++++++++++++++++++++++++++++++-----

The lock delta is the reference alone; no other package resolves differently.

Why

The confusion-matrix kernels build tp_at_tau and pred_at_tau with one row per
protein and collapse them with .sum(axis=0) before anything downstream sees
them. So a score cannot be stratified by any per-protein property, and
sequence length, identity to the nearest donor and taxonomic relation are all per
protein. They are also the three axes the evaluation is supposed to report, and
the reason the current board can only stratify by category and aspect.

Nothing changes until something asks

The sink is an optional keyword defaulting to None. With no sink passed, every
signature, every return type and every number the library produces are
byte-identical, and the upstream tests assert exactly that rather than leaving it
to inspection. The 224 rows already on the board stay valid.

One incidental improvement

The previous lock entry read reference = "main" while resolving to a commit, so
the recorded intent was a moving branch. This one pins the commit in both fields,
so the lock no longer depends on where a branch happens to point.

What this unblocks

Emitting per-protein scores costs no new predictions: the 32 prediction sets are
done and clean, and the stratification is an offline pass over them. It also
gives the paired comparisons for free, since a paired test needs exactly that
per-protein object.

…in scores

Moves the pin from 80d705a to 7335b5b, which is 80d705a plus the optional
PerProteinSink and nothing else: one file differs, and no other package
resolves differently.

Without it the confusion-matrix kernels collapse their per-protein
vectors with .sum(axis=0) before anything downstream sees them, so a
score cannot be stratified by any per-protein property. Sequence length,
identity to the nearest donor and taxonomic relation are all per protein,
and all three are axes the evaluation is meant to report.

Nothing changes until a caller passes a sink. The default path, every
signature and every number this library produces are byte-identical, and
the upstream tests assert it. The 224 rows already in the board stay
valid.

Note the previous lock entry pinned reference = "main" while resolving to
a commit; this one pins the commit in both, so the lock no longer depends
on where a branch points.
@github-actions
github-actions Bot enabled auto-merge (squash) August 19, 2026 00:38
@github-actions
github-actions Bot merged commit ba35a15 into develop Aug 19, 2026
15 checks passed
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.83%. Comparing base (2e4d5bb) to head (32ddbf5).
⚠️ Report is 50 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #782      +/-   ##
===========================================
- Coverage    89.02%   87.83%   -1.20%     
===========================================
  Files          246      262      +16     
  Lines        18669    20296    +1627     
===========================================
+ Hits         16620    17826    +1206     
- Misses        2049     2470     +421     

see 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@frapercan
frapercan deleted the chore/pin-cafaeval-per-protein branch September 15, 2026 18:28
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