from cobra.util.solver import linear_reaction_coefficients linear_reaction_coefficients(Recon_model) Recon_model.objective = 'OF_ATP_MitoCore' Recon_model.optimize()
b = Builder(model=Recon_model) b.display_in_browser()
However, this returns an empty browser. I have tried running a sample code provided in the Esher documentation to display cobra models in browser and it works fine. The escher documentation says that it could used to visualize any metabolic models. It is something I am missing and doing wrong? I am also attaching the model I am using.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cobra pie
Dear Prashant,
The main thing that you are missing is a map. You probably got confused by this section in the documentation: https://escher.readthedocs.io/en/stable/escher-python.html#launching-escher-in-python. In the first example a pre-drawn map is loaded by name. In the second example the model is loaded into the Escher builder, however, Escher does not draw anything automatically. Loading a model simply means that Escher knows about the reactions and metabolites in the model. You will still have to place and connect them manually via the Escher tools. Unless somebody has already drawn a map and sends the file to you.
One more comment: The following two lines in your code above are unnecessary.
from cobra.util.solver import linear_reaction_coefficients linear_reaction_coefficients(Recon_model)