# 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 # Add some data for metabolites builder.metabolite_data = solution.shadow_prices # Simplify the map by hiding some labels builder.hide_secondary_metabolites = True builder.hide_all_labels = True