PREREQ

In this tutorial we make basic operations with Genome Scale Metabolic (GSM) models, chemical reactions and the underlying network topology


Import the COBRApy (Constraint-Based Reconstruction and Analysis in Python) package to load and explore SBML (Systems Biology Markup Language) models.

Import the NetworkX and igraph packages for statistics on the underlying network topologies:

Import RDKit and its necessary packages to visualize chemical elements and reactions.

Load the model downloaded from the BiGG database (http://bigg.ucsd.edu/models) and check some basic properties. More information and useful tutorials can be found on https://github.com/webermarcolivier/metabolic_modelling_jupyter_tutorial

Here we choose a custom reaction, check some of its properties and visualize it by RDKit

Converting reaction names to SMILES (Symplified Molecular Input Line Entry System, https://archive.epa.gov/med/med_archive_03/web/html/smiles.html, https://www.daylight.com/dayhtml_tutorials/languages/smiles/index.html) used by RDKit. One can use for example this online automatic converter: https://opsin.ch.cam.ac.uk/

Visualize a metabolite:

Visualize a reaction:

Convert SBML model to NetworkX graph object:

Extract the edge-list and save it for further use:

Read back edge-list and construct igraph Graph object:

Visualization of the graph:

For a more detailed graph investigations check: https://github.com/MateJozsaPhys/CNDinvestigation/tree/main/measure-codes