-
Notifications
You must be signed in to change notification settings - Fork 218
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
Adding reactions from another model does not reset the reactions their metabolites refer to #673
Comments
Yeah that is not handled correctly at all. I would make |
Yeah that's an unfortunately leftover from cobrapy's early days. Probably the only reason we still have a We should probably have All this code will have to get fixed:
|
Yes, probably during the active time of GSoC, we will prioritize planning and implementing cobrapy 1.0. It's time to lose some baggage. |
Is there any progress on fixing this bug? or do you have any workaround suggestions for solving it? Thanks in advance |
It's only metab = ...
rxns = [rxn for rxn in model.reactions if metab in rxn.metabolites] This will only give you reactions from the model. |
In my case, after I save the model using |
I think that this section in model.py:add_reactions()
Can be replaced by update_genes_from_gpr() Am I right? |
@akaviaLab I think you would know better than us at that point. Feel free to send a PR. |
From the mailing list:
The text was updated successfully, but these errors were encountered: