#!/usr/bin/env python # coding: utf-8 # # Import models # ## Import models from files # The function :class:`~cameo.io.load_model` accepts a number of different input formats. # # 1. [SBML](http://sbml.org/) (Systems Biology Markup Language). # 2. JSON # 3. Pickle (pickled models) # 4. Model identifiers (from the [BiGG Models](http://bigg.ucsd.edu)) # In[1]: less data/e_coli_core.xml # In[2]: from cameo import load_model model = load_model('data/e_coli_core.xml') # In[3]: model # ## Import models from the internet # In the quick start [chapter](1-quick-start.ipynb) we demonstrated how to use :class:`~cameo.io.load_model` to import a model by ID. But where did the model come from? Cameo has currently access to two model repositories on the internet, http://bigg.ucsd.edu and http://darwin.di.uminho.pt/models. # In[4]: from cameo import models # In[5]: models.index_models_bigg() # In[6]: models.index_models_minho() # Models from [BiGG](http://bigg.ucsd.edu) and the [University of Minho](http://darwin.di.uminho.pt/models) can conveniently be accessd via :class:`~cameo.models.bigg` and :class:`~cameo.models.minho` respectively. # In[7]: models.bigg.iJN746 # In[8]: models.minho.iMM904 # Models in the Minho database have been manually verified. The subset of models shown bellow can be used to run simulations as described in the publications. # In[9]: models.minho.validated.VvuMBEL943 # use TAB completion to see the other models # In[ ]: