Code from the paper: Xu K, Morgan KT, Todd A, Elston TC and Gomez SM. A whole-body model for glycogen regulation reveals a critical role for substrate cycling in maintaining blood glucose homeostasis. PLoS Computational Biology. 2011. Dec;7(12):e1002272.
How to Run Liver_glycogen_model:
- Open
runmain.munder MATLAB editor and click on ‘run’ button; or type ‘runmain’ in the command window. - In runmain.m, two functions are called:
main.mis the main program file andplot_conc.mis the plot function for generating enzyme (glycogen synthase a and glycogen phosphorylase a) and substrate (glycogen) concentrations over time. The four concentrations 0.2 mM/min, 0.4 mM/min, 0.6 mM/min and 1.4 mM/min are consistent with those presented in our paper. main.mtakes two inputs:stateandgluc_input.statetakes the value offedorfasted, which determines the fasting time from fed steady state. There are 3 runs inmain.m: the first run is for the system to reach fed steady state with a constant feeding rate in the blood; the second run is the post-adsorption state with a decreasing glucose feeding rate from the fed steady state (drops below 5% in 140 mins.) Here, two fasting times are chosen to represent a fed and fasted livers:tmax = 250mins ortmax = 1200mins. The third run is for a glucose stimulus to enter the system as a step function. This rate is stored in the input variablegluc_input.plot_conc.mgenerates figures for GPa, GSa and glycogen after the glucose stimulus enters the system.- Data are stored in the folder ‘./results’ in the form of
y_fasted_XpX.matory_fed_XpX.matwhereXpXis the glucose feeding rate in the blood. For example,y_fasted_0p2.matmeans glucose inputrate = 0.2in a fasted liver.