Size: 5443
Comment:
|
Size: 5182
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
Here, we will investigate the genome-scale metabolic model of ''P. tricornutum'' to identify pathways for TAG synthesis''. For ''''further ''''detail''''s you can ''''refer'''' ''''to Villanova V ''''''et al'''''' ''''(2021) Boosting Biomass Quantity and Quality by Improved Mixotrophic Culture of the Diatom ''''''Phaeodactylum tricornutum''''''. ''''''Front. Plant Sci.'''''' 12:642199. doi: 10.3389/fpls.2021.642199'' | 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'' |
Line 4: | Line 4: |
1. Download the archive containing the model and extract the files. | 1. Download the archive containing the model from [[http://mudsharkstatic.brookes.ac.uk/Nottingham2024/P5.zip|here]] and extract the files.This will generate a new directory,"srcs", containing two sub-directories: "Model" and "Analysis". Start !ScrumPy. 1. Load the Model: 1. m = !ScrumPy.Model("../Model/Phaeo.spy") 1. We can now generate a linear programming object: 1. lp = m.GetLP() 1. And specify minimising total flux as the objective: 1. lp.SetObjective(m.sm.cnames) 1. With the constraint that we must generate 1 mole of TAG: 1. lp.SetFixedFlux({"TAG_Exp_tx":-1}) 1. We can now solve te lp: 1. lp.Sovle() 1. And obtain the solution: 1. sol = lp.GetPrimSol() |
Line 6: | Line 18: |
a. Start ScrumPy in the folder containing the .spy files and load the top-level model file Phaeo.spy to create a model object. Note that the model is created in a modular fashion, and the top-level file will load the different components of the model and each module will be in a separate tab. a. Can you explain why there are more modules in this model compared to Campylobacter model? |
Sol is a dictionary, mapping reactions to fluxes, satisfying our constraints and objectives. Examine its properties. e.g. what transport processes are involved? |
Line 9: | Line 20: |
2. Set up and solve an LP problem where the objective is to minimise total flux (see previous practical), while producing 1 unit flux of TAG (Hint: use SetFixedFlux() function on reaction ‘TAG_synthesis_Cyto’). | for r in sol: |
Line 11: | Line 22: |
a. What is the source of energy in your LP solution ? a. Examine the source of carbons. |
if "_tx" in r: |
Line 14: | Line 24: |
3. Now we will perform lipid scan analysis under mixotrophic condition. We will perform this analysis under various growth conditions so better to write the steps into python method, for re-usability. 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 three methods. Following is their code: |
print(r, sol[r]) |
Line 22: | Line 28: |
a. Changers method {{{#!python def Changers(ds,lim=1e-06): rv = [] for cname in ds.cnames: col = ds.GetCol(cname) if abs(max(col)-min(col))>lim: rv.append(cname) return rv }}} |
|
Line 42: | Line 30: |
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) | |
Line 43: | Line 32: |
b. BuildLP method | The module "!LipidScan.py" contains tNow exaine wo functions. Following is their code: '''a. BuildLP ''''''function''' |
Line 47: | Line 38: |
lp = m.GetLP() lp.SetObjective(m.sm.cnames) lp.SetFluxBounds({"RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas":(0,400.0)}) if "GLYCEROL_Cyto_tx" in m.sm.cnames: lp.SetFluxBounds({"GLYCEROL_Cyto_tx":(0,20)}) return lp |
lp = m.GetLP() lp.SetObjective(m.sm.cnames) lp.SetFluxBounds({"RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas":(0,400.0)}) if "GLYCEROL_Cyto_tx" in m.sm.cnames: lp.SetFluxBounds({"GLYCEROL_Cyto_tx":(0,20)}) return lp |
Line 61: | Line 45: |
c. LipidScan method |
'''b. !LipidScan ''''''function''' |
Line 66: | Line 49: |
ds = DataSets.DataSet() ranges = numpy.arange(lo,hi) if lp == None: lp = BuildLP(m) for t in ranges: lp.SetFixedFlux({"TAG_synthesis_Cyto":t}) lp.Solve() if lp.GetStatusMsg() == "optimal": sol = lp.GetPrimSol() ds.UpdateFromDic(sol) ds.SetPlotX("TAG_synthesis_Cyto") ds.AddToPlot("RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas") return ds }}} To use these methods you need to import the "!LipidScan" module. On ScrumPy window execute the following statements. |
|
Line 67: | Line 65: |
ds = DataSets.DataSet() | {{{#!python import sys sys.path.append('../Analysis') import LipidScan }}} Now the methods in the "!LipidScan" module can be used. |
Line 69: | Line 72: |
ranges = numpy.arange(lo,hi) | a. 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). |
Line 71: | Line 74: |
if lp == None: | {{{#!python lp = LipidScan.BuildLP(m) }}} . b. Solve this LP repeatedly (using for loop) while increasing flux in TAG synthesis reaction in range between 1 to 20. Save each of the solution in a dataset. |
Line 73: | Line 79: |
lp = BuildLP(m) | {{{#!python ds = LipidScan.LipidScan(m, lp=lp) }}} . c. Examine the flux pattern in Rubisco reaction with respect to increasing flux in TAG synthesis. What is the maximum flux in Rubisco reaction? |
Line 75: | Line 84: |
for t in ranges: | {{{#!python ds.SetPlotX("TAG_synthesis_Cyto") #setting x-axis ds.AddToPlot("RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas") }}} . d. Add inorganic carbon transporters (Hint: “CO2_Cyto_tx” and “HCO3_Cyto_tx”) and organic carbon transporter (“GLYCEROL_Cyto_tx”) to the plot ''' ''' . e. What is the maximum flux in TAG synthesis? ''' ''' |
Line 77: | Line 91: |
lp.SetFixedFlux({"TAG_synthesis_Cyto":t}) | 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). |
Line 79: | Line 93: |
lp.Solve() | 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. ''' ''' |
Line 81: | Line 95: |
if lp.GetStatusMsg() == "optimal": sol = lp.GetPrimSol() ds.UpdateFromDic(sol) ds.SetPlotX("TAG_synthesis_Cyto") ds.AddToPlot("RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas") return ds |
{{{#!python lp = LipidScan.BuildLP(m) lp.SetFixedFlux({"GLYCEROL_Cyto_tx":0}) res = LipidScan.LipidScan(m, lp=lp) |
Line 93: | Line 100: |
To use these methods you need to import the "LipidScan" module. On ScrumPy window execute the following statements. import sys sys.path.append('../Analysis') import LipidScan Now the methods in the "LipidScan" module can be used. a. 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). lp = LipidScan.BuildLP(m) a. Solve this LP repeatedly (using for loop) while increasing flux in TAG synthesis reaction in range between 1 to 20. Save each of the solution in a dataset. Import numpy from ScrumPy.Data import DataSets ds = LipidScan(m, lp=lp) a. Examine the flux pattern in Rubisco reaction with respect to increasing flux in TAG synthesis. What is the maximum flux in Rubisco reaction? ds.SetPlotX("TAG_synthesis_Cyto") #setting x-axis ds.AddToPlot("RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas") a. Add inorganic carbon transporters (Hint: “CO2_Cyto_tx” and “HCO3_Cyto_tx”) and organic carbon transporter (“GLYCEROL_Cyto_tx”) to the plot a. What is the maximum flux in TAG synthesis? 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 (i.e in the absence of glycerol). As you have saved the method in ../Analysis/MyLipidScan.py. We will import the module (as shown below) and repeat the above analysis for phototropic condition. For this, constrain the flux in glycerol transporter to zero. lp = LipidScan.BuildLP(m) lp.SetFixedFlux({"GLYCEROL_Cyto_tx":0}) res = MyLipidScan.LipidScan(m, lp=lp) a. Plot reactions as above. Examine the difference in flux patterns. a. What is the maximum feasible flux in TAG synthesis under phototrophic condition? a. Is is higher or lower than that in mixotrophic condition (in question 3)? |
* Plot reactions as above. Examine the difference in flux patterns.' * What is the maximum feasible flux in TAG synthesis under phototrophic condition? * Is is higher or lower than that in mixotrophic condition (in question 3)? |
Line 138: | Line 106: |
{{{#!python | |
Line 139: | Line 108: |
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 [[https://metacyc.org|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. |
|
Line 140: | Line 112: |
Set.Complement(ds.cnames,res.cnames) Can you identify which pathways these reactions belong to? Refer to network diagram in lecture slides for convenience or visit MetaCyc. Note that `_Cyto suffix` is added to differentiate compartmentalisation in the model and is not part of MetaCyc identifier. https://mudsharkstatic.brookes.ac.uk/Nottingham2022/P6/ |
. ''' ''' |
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
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.
- Load the Model:
m = ScrumPy.Model("../Model/Phaeo.spy")
- We can now generate a linear programming object:
- lp = m.GetLP()
- And specify minimising total flux as the objective:
lp.SetObjective(m.sm.cnames)
- With the constraint that we must generate 1 mole of TAG:
lp.SetFixedFlux({"TAG_Exp_tx":-1})
- We can now solve te lp:
- lp.Sovle()
- And obtain the solution:
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:
- if "_tx" in r:
- print(r, sol[r])
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
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.
Now the methods in the "LipidScan" module can be used.
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)
- b. Solve this LP repeatedly (using for loop) while increasing flux in TAG synthesis reaction in range between 1 to 20. Save each of the solution in a dataset.
1 ds = LipidScan.LipidScan(m, lp=lp)
- c. Examine the flux pattern in Rubisco reaction with respect to increasing flux in TAG synthesis. What is the maximum flux in Rubisco reaction?
d. Add inorganic carbon transporters (Hint: “CO2_Cyto_tx” and “HCO3_Cyto_tx”) and organic carbon transporter (“GLYCEROL_Cyto_tx”) to the plot
e. What is the maximum flux in TAG synthesis?
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.
- Plot reactions as above. Examine the difference in flux patterns.'
- What is the maximum feasible flux in TAG synthesis under phototrophic condition?
- Is is higher or lower than that in mixotrophic condition (in question 3)?
5. Find the reactions that are active in mixotrophic condition but not in phototrophic condition?
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.