Skip to content

WIP: Argparse reaction reference#159

Open
jonls wants to merge 2 commits intozhanglab:developfrom
jonls:argparse-reaction-reference
Open

WIP: Argparse reaction reference#159
jonls wants to merge 2 commits intozhanglab:developfrom
jonls:argparse-reaction-reference

Conversation

@jonls
Copy link
Copy Markdown

@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.

2 participants