-
Notifications
You must be signed in to change notification settings - Fork 211
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
Exchanges and external compartment don't match in models with SBO terms #1053
Comments
Hmm, this is a bit complicated and is related to boundary metabolites yet again. So the problem is reactions of the form
I think another good helper function for cobrapy would be a reaction to prune linear chains of boundary reactions to a single reaction so |
Side note: I would only do that if there are no gene rules associated with such reactions. |
Good point, this could be an argument to that function. |
Problem description
If a model annotates reactions as exchanges those are picked up by model.exchanges, however, the external compartment detection does not take this into account. So the model will return exchanges that are not in the external compartment.
Code Sample
This uses Recon 2.2 from https://github.com/u003f/recon2/tree/master/models.
It's okay that we can sometimes not identify the external compartment, especially since Recon2 uses a non-standard identifier but it has to be consistent. Either return exchanges from the compartment "e" or report the external compartment as "b".
Context
The text was updated successfully, but these errors were encountered: