Back to the main Index

Model loading from BioModels

Models can be easily retrieved from BioModels using the loadSBMLModel function in Tellurium. This example uses a download URL to directly load BIOMD0000000010.


In [1]:
from __future__ import print_function
import tellurium as te
te.setDefaultPlottingEngine("matplotlib")
%matplotlib inline

# Load model from biomodels (may not work with https).
r = te.loadSBMLModel("http://biomodels.caltech.edu/download?mid=BIOMD0000000010")
result = r.simulate(0, 3000, 5000)
r.plot(result)