Practical 5: Identifying pathways for TAG synthesis in Phaeodactylum tricornutum

Here, we will investigate the genome-scale metabolic model of P. tricornutum to identify pathways for TAG synthesis. See Villanova et al (2021). Front. Plant Sci. 12:642199. doi: 10.3389/fpls.2021.642199

  1. Download the archive containing the model from here and extract the files.This will generate a new directory,"srcs", containing two sub-directories: "Model" and "Analysis". Start ScrumPy.

  2. Load the Model:
    1. m = ScrumPy.Model("../Model/Phaeo.spy")

  3. We can now generate a linear programming object:
    1. lp = m.GetLP()
  4. And specify minimising total flux as the objective:
    1. lp.SetObjective(m.sm.cnames)

  5. With the constraint that we must generate 1 mole of TAG:
    1. lp.SetFixedFlux({"TAG_Exp_tx":-1})

  6. We can now solve te lp:
    1. lp.Sovle()
  7. And obtain the solution:
    1. sol = lp.GetPrimSol()

Sol is a dictionary, mapping reactions to fluxes, satisfying our constraints and objectives. Examine its properties. e.g. what transport processes are involved?

for r in sol:

The code that you will be using is stored in module “LipidScan.py” in the “Analysis” directory. (Note: Model directory contains the model definition files i.e .spy files and analysis contains the python modules, i.e., the  .py files you will need for this practical)

The module "LipidScan.py" contains tNow exaine wo functions. Following is their code:

a. BuildLP function

   1 def BuildLP(m):
   2         lp = m.GetLP()
   3         lp.SetObjective(m.sm.cnames)
   4         lp.SetFluxBounds({"RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas":(0,400.0)})
   5         if "GLYCEROL_Cyto_tx" in m.sm.cnames:
   6                 lp.SetFluxBounds({"GLYCEROL_Cyto_tx":(0,20)})
   7         return lp

b. LipidScan function

   1 def LipidScan(m,lp=None,lo=1.0,hi=20.0):
   2         ds = DataSets.DataSet()
   3         ranges = numpy.arange(lo,hi)
   4         if lp == None:
   5                 lp = BuildLP(m)
   6         for t in ranges:
   7                 lp.SetFixedFlux({"TAG_synthesis_Cyto":t})
   8                 lp.Solve()
   9                 if lp.GetStatusMsg() == "optimal":
  10                         sol = lp.GetPrimSol()
  11                         ds.UpdateFromDic(sol)
  12         ds.SetPlotX("TAG_synthesis_Cyto")
  13         ds.AddToPlot("RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas")
  14         return ds

To use these methods you need to import the "LipidScan" module. On ScrumPy window execute the following statements.

   1 import sys
   2 sys.path.append('../Analysis')
   3 import LipidScan

Now the methods in the "LipidScan" module can be used.

  1. Generate LP problem where the objective is to minimise total flux. Constrain the maximum Rubisco flux and glycerol transporter flux to 400 and 20 respectively (make use of SetFluxBounds() function).

   1 lp = LipidScan.BuildLP(m)

   1 ds = LipidScan.LipidScan(m, lp=lp)

   1 ds.SetPlotX("TAG_synthesis_Cyto")      #setting x-axis
   2 ds.AddToPlot("RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas")

4. As you would have noticed TAG synthesis in above example is through mixotrophic mode (i.e model uses light energy and organic carbon, glycerol, for lipid production).

As you remember from the lecture, P. tricornutum can grow under phototrophic condition too (i.e in the absence of glycerol). You will simulate the model in autotrophic condition. For this, constrain the flux in glycerol transporter to zero.

   1 lp = LipidScan.BuildLP(m)
   2 lp.SetFixedFlux({"GLYCEROL_Cyto_tx":0})
   3 res = LipidScan.LipidScan(m, lp=lp)

5. Find the reactions that are active in mixotrophic condition but not in phototrophic condition?

   1 from ScrumPy.Util import Set
   2 Set.Complement(ds.cnames,res.cnames)

Try and identify which pathways these reactions belong to, see the digrams in the previous slides or search on the MetaCyc website. NB: the _Cyto suffix is added to differentiate compartmentalisation in the model and is not part of MetaCyc identifier, and should be removed before searching on MetaCyc.