 %  DOQCS : http://doqcs.ncbs.res.in/ 
 %  Accession Name = SERCA 
 %  Accession Number = 37 
 %  Transcriber = Pradeep Kumar S, NCBS 
 %  Developer = J. Mahaney, J. Autry and L. Jones 
 %  Species = Canine 
 %  Tissue = Cardiac; expressed in Baculovirus infected Sf21(Spodoptera frugiperda) insect cells. 
 %  Cell Compartment = Microsomes 
 %  Notes =  All the constants are from: <br> <a href =  http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=10692318 > Mahaney JE. et al. Biophys J. (2000) 78(3) 1306-23</a>.<br>New Insights on cardiac Ca-ATPase (expressed in Sf21 cells) regulation by Phosphlamban. 
 
   % Note: All the concentrations are in micro Mole (uM)

function moose_convert
%Matlab simulation for chemical kinetics

% Saved on Wed Feb  2 16:24:14 2005

% Automatically generated from kkit model in MOOSE by conv_matlab

global buff;
tspan=[0, 60];
% Molecule names
molnames = {
'1 /kinetics/E1'
'2 /kinetics/E2'
'3 /kinetics/MgATP'
'4 /kinetics/ADP'
'5 /kinetics/pi'
'6 /kinetics/CaE1'
'7 /kinetics/EP'
'8 /kinetics/EPi'
'9 /kinetics/CaE1_prime'
'10 /kinetics/Ca2E1_prime'
'11 /kinetics/CaE1_prime_ATP'
};

bufnames = {
'1 /kinetics/Ca'
};

sumtotnames = {
};

% Initial concs of 11 molecules
y0(1) = 0;
y0(2) = 0.1509;
y0(3) = 1;
y0(4) = 0;
y0(5) = 0;
y0(6) = 0;
y0(7) = 0;
y0(8) = 0;
y0(9) = 0;
y0(10) = 0;
y0(11) = 0;
buff(1) = 0.268;
% Call the ODE solver and display results
[t, y] = ode23s(@f, tspan, y0);

hold on;
plot(t,y(:,5));
plot(t,y(:,7));
% Evaluation function
function dydt = f(t, y)
global buff;
dydt = [
 - 50 * y(1) * buff(1) + 120 * y(6) + 0.35 * y(2) - 0.35 * y(1)
 - 0.35 * y(2) + 0.35 * y(1) + 0.4 * y(8)
 - 4 * y(10) * y(3)
 + 35 * y(11)
 + 0.4 * y(8)
 + 50 * y(1) * buff(1) - 120 * y(6) - 0.4 * y(6) + 0.4 * y(9)
 + 35 * y(11) - 0.3 * y(7) + 0.7 * y(8)
 + 0.3 * y(7) - 0.7 * y(8) - 0.4 * y(8)
 + 0.4 * y(6) - 0.4 * y(9) - 80 * y(9) * buff(1) + 3.2 * y(10)
 + 80 * y(9) * buff(1) - 3.2 * y(10) - 4 * y(10) * y(3)
 + 4 * y(10) * y(3) - 35 * y(11)
];

% end of model
