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.m
under MATLAB editor and click on ‘run’ button; or type ‘runmain’ in the command window. - In runmain.m, two functions are called:
main.m
is the main program file andplot_conc.m
is 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.m
takes two inputs:state
andgluc_input
.state
takes the value offed
orfasted
, 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 = 250
mins ortmax = 1200
mins. 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.m
generates 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.mat
ory_fed_XpX.mat
whereXpX
is the glucose feeding rate in the blood. For example,y_fasted_0p2.mat
means glucose inputrate = 0.2
in a fasted liver.