#!/usr/bin/env python
# coding: utf-8
# In[1]:
from IPython.display import display
import re
# # Predict heterologous pathways
#
# Predicting heterologous pathways is an important strategy to generate new viable strains. Because portfolio of available reactions is very large, computer assisted pathway design becomes essential. **Cameo** implements a shortest pathways search algorithm using an universal biochemical reaction database.
#
# If you're running this notebook on [try.cameo.bio](http://try.cameo.bio), things might run very slow due to our inability to provide access to the proprietary [CPLEX](https://www-01.ibm.com/software/commerce/optimization/cplex-optimizer/) solver on a public webserver. Furthermore, Jupyter kernels might crash and restart due to memory limitations on the server.
#
# In[2]:
from cameo import models
from cameo.strain_design import pathway_prediction
# In[3]:
model = models.bigg.iMM904
# In[4]:
predictor = pathway_prediction.PathwayPredictor(model)
# In[5]:
pathways = predictor.run(product="vanillin", max_predictions=4)