Size: 5443
Comment:
|
Size: 5266
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''. 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'''''''' ''' |
Line 4: | Line 4: |
1. Download the archive containing the model and extract the files. | '''1. Download the archive containing the model and extract the files. ''' |
Line 6: | Line 6: |
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? |
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? ''' |
Line 9: | Line 9: |
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’). | '''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’). ''' |
Line 11: | Line 11: |
a. What is the source of energy in your LP solution ? a. Examine the source of carbons. |
a. '''What is the source of energy in your LP solution ? ''' a. '''Examine the source of carbons. ''' |
Line 14: | Line 14: |
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. | '''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. ''' |
Line 16: | Line 16: |
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 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 18: | Line 18: |
The module "LipidScan.py" contains three methods. Following is their code: | '''The module "LipidScan.py" contains three methods. Following is their code: ''' |
Line 20: | Line 20: |
'''a. Changers method ''' | |
Line 21: | Line 22: |
a. Changers method {{{#!python |
{{{ |
Line 26: | Line 24: |
Line 28: | Line 25: |
Line 30: | Line 26: |
Line 32: | Line 27: |
Line 34: | Line 28: |
Line 36: | Line 29: |
Line 38: | Line 30: |
Line 41: | Line 32: |
'''b. BuildLP method ''' | |
Line 42: | Line 34: |
{{{ def BuildLP(m): 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 }}} '''c. LipidScan method ''' |
|
Line 43: | Line 45: |
b. BuildLP method | {{{ }}} '''To use these methods you need to import the "LipidScan" module. On ScrumPy window execute the following statements. ''' |
Line 45: | Line 49: |
{{{#!python def BuildLP(m): 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 |
. {{{#!python import sys sys.path.append('../Analysis') import LipidScan |
Line 62: | Line 55: |
c. LipidScan method | ''' ''' |
Line 64: | Line 57: |
{{{#!python def LipidScan(m,lp=None,lo=1.0,hi=20.0): |
Now the methods in the "LipidScan" module can be used. ''' ''' |
Line 67: | Line 59: |
ds = DataSets.DataSet() | 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 |
Line 69: | Line 62: |
ranges = numpy.arange(lo,hi) | ''' ''' |
Line 71: | Line 64: |
if lp == None: | ds = LipidScan(m, lp=lp) ''' ''' |
Line 73: | Line 66: |
lp = BuildLP(m) | 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") |
Line 75: | Line 68: |
for t in ranges: | ''' ''' |
Line 77: | Line 70: |
lp.SetFixedFlux({"TAG_synthesis_Cyto":t}) | 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? ''' ''' |
Line 79: | Line 73: |
lp.Solve() | 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. ''' ''' |
Line 81: | Line 75: |
if lp.GetStatusMsg() == "optimal": | lp = LipidScan.BuildLP(m) ''' ''' |
Line 83: | Line 77: |
sol = lp.GetPrimSol() | . lp.SetFixedFlux({"GLYCEROL_Cyto_tx":0}) ''' '''res = MyLipidScan.LipidScan(m, lp=lp) ''' ''' |
Line 85: | Line 79: |
ds.UpdateFromDic(sol) | * 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 87: | Line 83: |
ds.SetPlotX("TAG_synthesis_Cyto") | 5. Find the reactions that are active in mixotrophic condition but not in phototrophic condition? ''' ''' |
Line 89: | Line 85: |
ds.AddToPlot("RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN_Plas") | from ScrumPy.Util import Set ''' ''' |
Line 91: | Line 87: |
return ds }}} |
. Set.Complement(ds.cnames,res.cnames) ''' ''' |
Line 94: | Line 89: |
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. ''' ''' | |
Line 95: | Line 91: |
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)? 5. Find the reactions that are active in mixotrophic condition but not in phototrophic condition? from ScrumPy.Util import Set 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/ |
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. 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
1. Download the archive containing the model and extract the files.
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.
Can you explain why there are more modules in this model compared to Campylobacter model?
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’).
What is the source of energy in your LP solution ?
Examine the source of carbons.
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:
a. Changers method
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
b. BuildLP method
def BuildLP(m): 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
c. LipidScan method
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). lp = LipidScan.BuildLP(m)
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)
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")
Add inorganic carbon transporters (Hint: “CO2_Cyto_tx” and “HCO3_Cyto_tx”) and organic carbon transporter (“GLYCEROL_Cyto_tx”) to the plot
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)
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?
from ScrumPy.Util import Set
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.