Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Argparse reaction reference #159

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jonls
Copy link
Contributor

@jonls jonls commented Nov 15, 2016

Add specialized argparse type for reaction references. This type guards against using non-existing ID since the actual ID string can only be obtained (through resolve()) if the reaction is defined in the model. Currently requires a MetabolicModel which is not ideal for commands that otherwise don't require this model representation. This may have to wait for the work on restructuring NativeModel to be implemented in terms of that model representation instead.

The actual reaction ID can only be obtained from the resulting
object by resolving against a MetabolicModel object. If the
reaction does not exist in the MetabolicModel, an error is raised.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant