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

support for the latest yeast model? #54

Closed
jlerman44 opened this issue Jan 8, 2014 · 4 comments
Closed

support for the latest yeast model? #54

jlerman44 opened this issue Jan 8, 2014 · 4 comments
Milestone

Comments

@jlerman44
Copy link

I'm trying to get set up with the Yeast model, but it seems the yeast models do not produce biomass when simulating using cobrapy. Its probably something stupid.

I got the latest yeast model from http://sourceforge.net/projects/yeast/files/yeast_7.1.zip/download

(I tried others as well)

then I ran:
from cobra.io.sbml import create_cobra_model_from_sbml_file

yeast_model = 'yeast_7.1_cobra.xml'
cobra_model = create_cobra_model_from_sbml_file(yeast_model, print_time=True)
cobra_model.optimize(solver='glpk')
print '\nSimulated growth rate is %1.3f' % cobra_model.solution.f

and got the output:
"Simulated growth rate is nan"

Their readme states that the answer should have been:
maximal growth rate: 0.13975 flux units

Any ideas? If not, I'll dig into it in a bit. Don't have a MATLAB license to check the answer using the original cobra toolbox.

Josh

@danielhyduke
Copy link
Contributor

I think that the problem arises from using 'INF' and '-INF' as upper and lower bounds in the SBML file. I believe that Ali and I discussed using the default infinite upper and lower bounds from the COBRA Toolbox (1000, -1000) as the preliminary fix. Haven't had a chance to add a pull request with the fix.

@jlerman44
Copy link
Author

Thanks. That worked. I can get back to baking bread now. I can look into fixing it if you'd like.

@PiotrZakrzewski
Copy link

Hi Josh,

The thing with yeast7 model is that constrainsts are defined there using
FBC which is not yet supported by cobra pie. If read and set them manualy
it will work - then you can save this model for later use.
I am also working with yeast7 and cobra pie so if you have any questions go
ahead.

Grtz
Piotrek
On Jan 8, 2014 9:31 PM, "Joshua Lerman" notifications@github.com wrote:

I'm trying to get set up with the Yeast model, but it seems the yeast
models do not produce biomass when simulating using cobrapy. Its probably
something stupid.

I got the latest yeast model from
http://sourceforge.net/projects/yeast/files/yeast_7.1.zip/download

(I tried others as well)

then I ran:
from cobra.io.sbml import create_cobra_model_from_sbml_file

yeast_model = 'yeast_7.1_cobra.xml'
cobra_model = create_cobra_model_from_sbml_file(yeast_model,
print_time=True)
cobra_model.optimize(solver='glpk')
print '\nSimulated growth rate is %1.3f' % cobra_model.solution.f

and got the output:
"Simulated growth rate is nan"

Their readme states that the answer should have been:
maximal growth rate: 0.13975 flux units

Any ideas? If not, I'll dig into it in a bit. Don't have a MATLAB license
to check the answer using the original cobra toolbox.

Josh


Reply to this email directly or view it on GitHubhttps://github.com//issues/54
.

@aebrahim aebrahim added this to the 0.3 milestone May 12, 2014
@aebrahim
Copy link
Member

aebrahim commented Jun 4, 2014

Fixed in 8a5b427

@aebrahim aebrahim closed this as completed Jun 4, 2014
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

No branches or pull requests

4 participants