Uh oh!
There was an error while loading. Please reload this page.
curation: fix getGeneData crash when a CDS's Parent resolves to no gene - #730
Merged
Conversation
Found while porting getGeneData to raven-toolbox (SysBioChalmers/raven-gecko-parity#53): parseGFF's emptyGene fallback struct had no uniProt field, so a CDS whose Parent chain doesn't resolve to any parsed gene feature crashed outright on g.uniProt with 'Unrecognized field name'. Added the missing field, empty like the rest of the fallback record.
4 tasks
edkerk added a commit
to SysBioChalmers/raven-gecko-parity
that referenced
this pull request
Sep 5, 2026
Landed in SysBioChalmers/raven-toolbox#132. Adds the parity scenario calling getGeneData.m directly (via a local GFF3 path, bypassing downloadGenomeData) against a hand-built fixture. Also notes SysBioChalmers/RAVEN#730, a crash found and fixed upstream while building the scenario.
Function test results306 tests 279 ✅ 1m 5s ⏱️ Results for commit 43408b1. |
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 freeto 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.
Summary
Found while porting
getGeneDatato raven-toolbox (SysBioChalmers/raven-gecko-parity#53):parseGFF'semptyGenefallback struct (used when a CDS'sParentchain doesn't resolve to any parsedgenefeature) has nouniProtfield, so hitting that fallback crashes outright:Added the missing field, empty like the rest of the fallback record.
Test plan
CDSwithParent=missing_gene) before the fix; confirmed it now returns a row with emptylocus_tag/old_locus_tag/GeneID/gene_name/UniProtand the CDS's ownprotein_id.tGenomeDatatest class: 6/6 passed.