Skip to content

Commit

Permalink
Rename HIV_model_3.m to Legacy Code/HIV_model_3.m
Browse files Browse the repository at this point in the history
  • Loading branch information
cody2 authored Jun 30, 2019
1 parent 91666df commit 8f7f50b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions HIV_model_3.m → Legacy Code/HIV_model_3.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
% -> NOTE: parameter pairs are for E and K, respectively

% P(01) = V i.c. [log(/mL)]
% P(02) = E i.c. [/�L]
% P(03) = K i.c. [/�L]
% P(02) = E i.c. [/]
% P(03) = K i.c. [/]

% P(04) = Q i.c. [pmol/kg]
% P(05) = C absorption rate constant [/d]
Expand All @@ -43,10 +43,10 @@

% P(08) = death rate constant [/d]
% P(09)
% P(10) = max proliferating concentration [/�L]
% P(10) = max proliferating concentration [/]
% P(11)

% P(12) = killing rate constant [�L/d]
% P(12) = killing rate constant [/d]
% P(13)
% P(14) = drug killing modifier
% P(15)
Expand All @@ -68,13 +68,13 @@

% P(28) = escape mutation rate []
% P(29) = initial escape proportion []
% P(30) = response activation threshold [/�L]
% P(30) = response activation threshold [/]
% P(31) = response proliferation rate constant [/d]

% P(32) = T i.c. [/�L]
% P(32) = T i.c. [/]
% P(33) = T death rate constant [/d]
% P(34) = T max proliferating concentration [/�L]
% P(35) = T infection rate constant [/�L-d]
% P(34) = T max proliferating concentration [/]
% P(35) = T infection rate constant [/-d]
% P(36) = infected T decay rate constant [*(P(33)]

% Delays = number of delay chambers for:
Expand All @@ -91,9 +91,9 @@

% Y_MAIN = model output at each time point in 'SolTimes'
% Y_MAIN(:,1) = V [log(#/mL)]
% Y_MAIN(:,2) = E [/�L]
% Y_MAIN(:,3) = K [/�L]
% Y_MAIN(:,4) = T [/�L]
% Y_MAIN(:,2) = E [/]
% Y_MAIN(:,3) = K [/]
% Y_MAIN(:,4) = T [/]

% Y_EXTRA = cell array of extra outputs (see 'output' section)

Expand Down Expand Up @@ -146,7 +146,7 @@
% -------------------------------------------------------------------------
% Declare initial conditions & calculated parameters ----------------------

V = 10^(P(01)-3) ;% converting V i.c. to [/�L]
V = 10^(P(01)-3) ;% converting V i.c. to [/]

V = V *10^(3*mutanum) ;% scaling up V to avoid rounding errors
P(30) = P(30) *10^(3*mutanum) ;
Expand Down Expand Up @@ -308,7 +308,7 @@
Y = abs(Y) ;% removing negatives resulting from numerical error

Y_MAIN(:,1) = log10(sum(Y(:,10:mutend),2))+3 ;% V [log(#/mL)]
Y_MAIN(:,2:4) = Y(:,7:9) ;% E:K:T [/�L]
Y_MAIN(:,2:4) = Y(:,7:9) ;% E:K:T [/]

% -------------------------------------------------------------------------
% Prepare extra outputs 'Y_EXTRA' -----------------------------------------
Expand Down Expand Up @@ -418,4 +418,4 @@
Y_EXTRA{15}{3,1}(n) = Y(n,6) ;
end

end
end

0 comments on commit 8f7f50b

Please sign in to comment.