Skip to content

Commit

Permalink
Rename HIV_model_4.m to Legacy Code/HIV_model_4.m
Browse files Browse the repository at this point in the history
  • Loading branch information
cody2 authored Jun 30, 2019
1 parent 8f7f50b commit 8f3ff16
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions HIV_model_4.m → Legacy Code/HIV_model_4.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
% normout = scalar used to change units of Y_MAIN (see OUTPUTS)
% (if empty, normout is ignored)

% P(01) = V i.c. [log(/mL)] (will convert to [/�L])
% P(02) = E i.c. [/�L]
% P(03) = K i.c. [/�L]
% P(01) = V i.c. [log(/mL)] (will convert to [/])
% 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 @@ -53,11 +53,11 @@

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

% P(12) = total initial killing rate [/d] (will convert to [/�L-d])
% P(13) = [*P(12)] (will convert to [/�L-d])
% P(12) = total initial killing rate [/d] (will convert to [/-d])
% P(13) = [*P(12)] (will convert to [/-d])
% P(14) = drug killing modifier []
% P(15)

Expand All @@ -82,10 +82,10 @@
% P(32) = REG killing modifier []
% P(33)

% P(34) = T i.c. [/�L]
% P(34) = T i.c. [/]
% P(35) = T death rate constant [/d]
% P(36) = T max proliferating concentration [/�L]
% P(37) = T infection by V1 rate constant [/�L-d]
% P(36) = T max proliferating concentration [/]
% P(37) = T infection by V1 rate constant [/-d]
% P(38) = infected T death rate [*P(35)] (will convert to [/d])

% P(39) = V2 initial frequency []
Expand All @@ -99,9 +99,9 @@

% if normout = 1
% Y_MAIN(:,1) = V at points in 'SolTimes' [log(#/mL)] [log fold change]
% Y_MAIN(:,2) = E at points in 'SolTimes' [/�L] [fold change]
% Y_MAIN(:,3) = K at points in 'SolTimes' [/�L] [fold change]
% Y_MAIN(:,4) = T at points in 'SolTimes' [/�L] [fold change]
% Y_MAIN(:,2) = E at points in 'SolTimes' [/] [fold change]
% Y_MAIN(:,3) = K at points in 'SolTimes' [/] [fold change]
% Y_MAIN(:,4) = T at points in 'SolTimes' [/] [fold change]
% (see INPUTS)

% Y_ALL = cell array of extra outputs (see end of script)
Expand Down Expand Up @@ -136,7 +136,7 @@
% -------------------------------------------------------------------------
% Declare initial conditions & calculated parameters ----------------------

P(01) = 10^(P(01)-3) ;% convert from [log(/mL)] to [/�L]
P(01) = 10^(P(01)-3) ;% convert from [log(/mL)] to [/]

Yic = zeros(1,In(5)) ;% initial conditions
Yic(7:11) = [P([02,03,34])' P(01)*[1-P(39) P(39)] ] ;% E,K,T,V1,V2 i.c.
Expand All @@ -147,7 +147,7 @@
if P(41) == 0 ; P(41) = 1 ; end % if V2 targeting factor is zero (off)...
if P(42) == 0 ; P(42) = 1 ; end % then set to 1 (no reduction in targeting)

% calculate beta [�L/d] and b [�L/d]
% calculate beta [/d] and b [/d]
if P(39) == 0 % for single strain
beta = [ (sum(P(12:13)) + P(38)) / P(34) ; 0 ] ;
b = [ P(37) ; 0 ] ;
Expand All @@ -161,7 +161,7 @@
end

P(30:31) = P(30:31).*P(18:19) ;% convert from [*P(18:19)] to [/d]
P(12:13) = P(12:13)./P(02:03) ;% convert from [/d] to [/�L-d]
P(12:13) = P(12:13)./P(02:03) ;% convert from [/d] to [/-d]

% if a maximum proliferating concentration is zero, set it as very large
% (this avoids division by zero and approximately removes its effect)
Expand Down Expand Up @@ -296,7 +296,7 @@
if normout == 1 % units are [log fold change] and [fold change]
Y_MAIN(:,1) = log10( (Y(:,10)+Y(:,11)) / P(01) ) ;% V
Y_MAIN(:,2:4) = Y(:,7:9) ./ P([02,03,34])' ;% E,K,T
else % units are [log(#/mL)] and [/�L]
else % units are [log(#/mL)] and [/]
Y_MAIN(:,1) = log10( Y(:,10)+Y(:,11) ) + 3 ;% V
Y_MAIN(:,2:4) = Y(:,7:9) ;% E,K,T
end
Expand Down Expand Up @@ -415,4 +415,4 @@
Y_ALL{15}{2,1}(n) = Y(n,6) ;
end

end
end

0 comments on commit 8f3ff16

Please sign in to comment.