Repository navigation
chore(deps): pin cafaeval-protea to the build that can emit per-protein scores - #782
Merged
Merged
Conversation
…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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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 🚀 New features to boost your workflow:
|
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.
Moves the
cafaeval-proteapin from80d705ato7335b5b(frapercan/cafaeval-protea#23).
7335b5bis80d705aplus the optionalPerProteinSinkand nothing else:The lock delta is the reference alone; no other package resolves differently.
Why
The confusion-matrix kernels build
tp_at_tauandpred_at_tauwith one row perprotein and collapse them with
.sum(axis=0)before anything downstream seesthem. 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, everysignature, 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, sothe 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.