-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCA_Table.m
90 lines (72 loc) · 2.83 KB
/
CA_Table.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright Xin-Guang Zhu, Yu Wang, Donald R. ORT and Stephen P. LONG
%CAS-MPG Partner Institute for Computational Biology, Shanghai Institutes for Biological Sciences, CAS, Shanghai,200031
%China Institute of Genomic Biology and Department of Plant Biology, Shanghai Institutes for Biological Sciences, CAS, Shanghai,200031
%University of Illinois at Urbana Champaign
%Global Change and Photosynthesis Research Unit, USDA/ARS, 1406 Institute of Genomic Biology, Urbana, IL 61801, USA.
% This file is part of e-photosynthesis.
% e-photosynthesis is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation;
% e-photosynthesis is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License (GPL)
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function CA_Table(MetLength,VmaxLength,VmaxVary,VmaxLabels,MetConCoeff,MetaboliteLabels,OriginalValues,ControlCoefficientsTable,DriveSelector)
Table = cell(MetLength+4,VmaxLength+1);
for j=1:MetLength+4
for h=1:VmaxLength+1
Table{j,h} = ' ';
end
end
count1 = 1;
count2 = 1;
count3 = 1;
count4 = 1;
for a=1:VmaxLength
if VmaxVary(a,1) == 1
Table{1,count1+1} = VmaxLabels(a,:);
count1 = count1 + 1;
end
end
for s=1:MetLength
if MetConCoeff(s,1) == 1
Table{count2+2,1} = MetaboliteLabels(s,:);
count2 = count2 + 1;
end
end
Table{2,1} = 'Original Values';
for n=1:VmaxLength
if VmaxVary(n,1) == 1
Table{2,count3+1} = OriginalValues(n,1);
count3 = count3 + 1;
end
end
for g=1:MetLength
if MetConCoeff(g,1) == 1
count5 = 1;
for d=1:VmaxLength
if VmaxVary(d,1) == 1
Table{count4+2,count5+1} = ControlCoefficientsTable(g,d);
count5 = count5 + 1;
end
end
count4 = count4 + 1;
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Table{count2+4,1} = 'Drive Used';
if DriveSelector == 1
Table{count2+4,2} = 'PS Drive';
elseif DriveSelector == 2
Table{count2+4,2} = 'PS-PR Drive';
elseif DriveSelector == 3
Table{count2+4,2} = 'trDynaPS Drive';
elseif DriveSelector == 4
Table{count2+4,2} = 'CM_Drive';
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
xlswrite('ControlCoefficients.xls',Table,'A1');