Repository navigation
fix: reject gene ids that split in grRules in getModelFromHomology - #3
Merged
Merged
Conversation
New-organism gene ids become gene ids of the draft model, and grRules are split at whitespace and parentheses, and by COBRA also at "|" and "&". UniProt FASTA headers such as sp|P33284|HXK_KLULA passed through and broke the draft downstream. getModelFromHomology now raises an error naming the offending ids, as raven-toolbox does. Original-commit: SysBioChalmers/RAVEN@48b3c52
Contributor
Function test results394 tests 355 ✅ 58s ⏱️ Results for commit 9167d3c. ♻️ This comment has been updated with latest results. |
1 of 2 tasks
edkerk
force-pushed
the
feat/homology-gene-id-check
branch
from
October 16, 2026 23:46
61b520e to
c840d48
Compare
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.
Copied from SysBioChalmers/RAVEN#762, opened by edkerk on 2026-10-14.
Main improvements in this PR:
getModelFromHomologynow raisesRAVEN:badInputwhen gene ids of the new organism contain whitespace, parentheses,|or&. These ids are written into the grRules of the draft model, which are split at whitespace and parentheses, and which COBRA also splits at|and&. A UniProt FASTA header such assp|P33284|HXK_KLULAwould otherwise become three genes in the draft model. Only ids that are mapped to a template gene are checked, and the error names the first three and suggests reducing UniProt headers to the accession.getModelFromHomologystates the requirement.tReconstructionhas a test,getModelFromHomologyRejectsGeneIdsThatSplit.The same check is in
get_model_from_homologyin raven-toolbox (SysBioChalmers/raven-toolbox#171).Instructions on merging this PR:
develop3as target branch, and will be resolved with a squash-merge.mainas target branch, and will be resolved as descriped here.