FBA calculation from EDD export

Setup

In [1]:
import cobra

Load Model

In [2]:
ls *sbml
BW1 (1).sbml  BW1 (3).sbml  BW1 N.sbml  BW1_.sbml
In [3]:
model = cobra.io.read_sbml_model('BW1 (1).sbml')

Calculate fluxes through FBA

In [4]:
solution = model.optimize()
In [5]:
solution.objective_value
Out[5]:
0.24872246573675
In [6]:
solution.fluxes[['PGI','GND']]
Out[6]:
PGI    2.293853
GND    1.144590
Name: fluxes, dtype: float64