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

Remove C_ from importModel if model is COBRA #9

Merged
merged 1 commit into from
Nov 8, 2016
Merged

Remove C_ from importModel if model is COBRA #9

merged 1 commit into from
Nov 8, 2016

Conversation

edkerk
Copy link
Member

@edkerk edkerk commented Nov 8, 2016

Previously, importModel assumed that if the model is COBRA, the compartment IDs do not start with C_, and therefore use the comparment IDs'as is'.

However, if exportModel is used to generate a COBRA model, compartment IDs are appended with C_. If one would repeatedly import and export COBRA models, it would repeatedly add C_ in front of the compartment IDs, resulting in something like: C_C_C_m

Now, if the model is COBRA, importModel checks whether the compartment ID starts with C_ and, if true, discards the first two characters.

Previously, importModel assumed that if the model is COBRA, the
compartment IDs do not start with C_. However, if exportModel is used to
generate a COBRA model, compartment IDs are appended with C_. Now, it
checks whether the compartment ID starts with C_ and, if true, discards
the first two characters.
@zertan zertan merged commit 63ae6d1 into SysBioChalmers:master Nov 8, 2016
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