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

Unable to run cameo design API #298

Open
SiYeon-Ju opened this issue Sep 23, 2022 · 1 comment
Open

Unable to run cameo design API #298

SiYeon-Ju opened this issue Sep 23, 2022 · 1 comment

Comments

@SiYeon-Ju
Copy link

SiYeon-Ju commented Sep 23, 2022

Hi, I tried to run a example of design API (https://cameo.bio/08-high-level-API.html).
But, i had no results. What should I do?

############################################
[ Python Ver 3.7.14 in Google Colab]
!pip install cameo
!pip install cobra==0.17.0

import cameo
import cobra
from cameo import api
from cameo.parallel import MultiprocessingView

mp_view = MultiprocessingView()
api.design.options.max_pathway_predictions = 4
api.design.options.heuristic_optimization_timeout = 30
report = api.design(product = 'vanillin', view = mp_view)
###############################################

Starting searching for compound vanillin
Found 1 compounds that match query 'vanillin'
Predicting pathways for product vanillin in Saccharomyces cerevisiae (using model iMM904).
ERROR:cameo.strain_design.pathway_prediction.pathway_predictor:No pathway could be predicted. Terminating pathway predictions.
ERROR:cameo.strain_design.pathway_prediction.pathway_predictor:None (time_limit)
Optimizing 0 pathways

@carrascomj
Copy link
Member

Not an expert on the high level design API, but it seems like your computer hit the timeout.

You can try either changing the timeout (you set it to 30 as in the documentation) or the linear programming solver. Different underlying linear programming solvers need more or less time to run the simulations, and, of course, it also depends on your hardware.

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

2 participants