Repository navigation
fix(inputs): a photo's run reads each protein's sequence and taxon at the cut - #1297
Merged
Merged
Conversation
… the cut protein.sequence_id and protein.taxonomy_id are today's UniProt entry. Four readers used them on photo windows: - the alignment, length and taxonomy inputs of prediction (both the batch and the unified path); - the queries of the transitions export; - the target FASTA and the entries its query set declares. In development those columns are empty for every photo member, so the features were silently null and the transitions export asked about no protein. In production they hold today's values, which would hand a model knowledge published after the cut. On a run whose annotation set a photo loaded (photo_of), the readers now take the member's sequence (cut_photo_member.sequence_md5) and taxon (cut_photo_member.taxon_id) through two shared functions, photo_sequences and photo_taxa. A run over a set no photo loaded reads today's entry, as before. Uploaded query sets keep their own sequences. The new tests give a member a different sequence and taxon today than at the cut, so a reader that leaks returns the wrong values instead of nothing, whatever the environment. Three of the four fail without the fix. The fake session of the transitions query tests now answers the photo lookup with none: that universe has no photos. Not in this change, and next: the legacy training dump and the mini-job feature export (training_dump/_data_loaders.py, export_minijobs/_export_features_batch.py), the InterProScan input (run_interproscan_batch.py), the information accretion feature, and the taxonomy tree, which waits for the author's choice.
Codecov Report❌ Patch coverage is ❌ Your project check has failed because the head coverage (83.90%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #1297 +/- ##
===========================================
- Coverage 85.69% 85.64% -0.05%
===========================================
Files 471 471
Lines 37374 37414 +40
===========================================
+ Hits 32026 32042 +16
- Misses 5348 5372 +24
🚀 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.
The bug
protein.sequence_idandprotein.taxonomy_idare today's UniProt entry. Four readers used them on photo windows:The fix
photo_of), the readers take the member's sequence (cut_photo_member.sequence_md5) and taxon (cut_photo_member.taxon_id)._photo_sequences.py:photo_sequencesandphoto_taxa.Tests
tests/test_a_photo_run_reads_the_cut_inputs.py(test database).tests/test_the_queries_a_window_asks_about.pynow answers the photo lookup with none, since that universe has no photos.Not in this change (next)
training_dump/_data_loaders.py,export_minijobs/_export_features_batch.py);run_interproscan_batch.py).information_accretion_setas a dated reference first.This is part of the closure plan's first wave (dated inputs), together with #1296.
Verified in the development universe
The branch's readers were run against the development store, without deploying it: 500 targets of 211->227 sampled with seed 0, the window's start set 453f8cf5, photo b98ba58b.