Preserve complete gene-query results in exports - #431
Merged
Conversation
Coverage Report for CI Build 34115961327Coverage increased (+0.2%) to 83.258%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions110 previously-covered lines in 2 files lost coverage.
Coverage Stats
💛 - Coveralls |
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.
An export such as
gene=["PRAME", "ENSG00000198681"]could drop both genes because names and IDs were intersected. MS, binding, and training exports now select the union of the gene alternatives and preserve it through source-protein expansion. Mappings matching both identifiers are deduplicated; unrelated genes sharing a peptide remain excluded. Explicit peptide filters narrow the union, and the low-level loaders retain their existing column-filter conjunctions.Empty gene matches also exposed an untyped empty peptide predicate that raised a PyArrow type error. Peptide filters now carry a string-typed value set, so empty queries return zero rows. Version: 1.58.2.
Validation: format and lint pass;
./test.shpasses 1,232 tests; targeted export/loader tests pass 201 tests. New cases cover mixed/duplicate/unknown identifiers, compact and expanded training for all evidence modes, shared peptides, large mapping selections, and empty intersections.Closes #425.
Closes #430.