예제 #1
0
builder


builder = Builder()


builder


# Load an Escher map
builder.map_name = 'iJO1366.Central metabolism'


# Load a COBRA model
builder.model_name = 'e_coli_core'


# Find any reactions that are in the map and not in the model, and turn them red
builder.highlight_missing = True


get_ipython().getoutput("wget -nc http://bigg.ucsd.edu/static/models/iJO1366.json")
builder.model = cobra.io.load_json_model('iJO1366.json')


# Run FBA with the model and add the flux data to the map
solution = builder.model.optimize()
builder.reaction_data = solution.fluxes