-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetToxicityProxy.m
30 lines (19 loc) · 904 Bytes
/
getToxicityProxy.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DESCRIPTION: Returns a proxy for toxicity of the drug applied at time k
% INPUT:
% uk : drug applied at time k (uk = 1 is DMSO, uk = 2 is Tram, uk = 3 is BEZ, uk = 4 is Comb)
% OUTPUT: a proxy for toxicity of the drug applied at time k
% NOTE: proxy could also be the inverse of the 1-norm of the live-cell portion of A*
% (higher toxicity for drugs that make pop shrink faster)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function tox_k = getToxicityProxy( uk )
if uk == 1 % toxicity of DMSO is 0
tox_k = 0;
elseif uk == 2 || uk == 3 % toxicity of Tram or BEZ is 1
tox_k = 1;
elseif uk == 4 % toxicity of Comb is 2
tox_k = 2;
else
error('error in get_toxicity_proxy.m');
end
end