-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddCanonicalRxns.m
More file actions
32 lines (31 loc) · 827 Bytes
/
Copy pathaddCanonicalRxns.m
File metadata and controls
32 lines (31 loc) · 827 Bytes
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
function [newListRxns, newListNames, newListGPRs, newListComps]=addCanonicalRxns(listOfRxns,listOfRxnNames,listOfGPRs,listOfComps,tempRxns)
%
%
%
%
%
%
%
%
%
%
%
% Rasool Saghaleyni, 2020-02-22
newListRxns = listOfRxns;
newListNames = listOfRxnNames;
newListGPRs = listOfGPRs;
newListComps = listOfComps;
%Add canonical reactions
[newListRxns, newListNames] = addPathway('Canonical',listOfRxns,listOfRxnNames,tempRxns);
%Add canonical GPRs and compartements
r = {};
n = {};
[r,n] = addPathway('Canonical',r,n,tempRxns);
newGPRs = getGPRsFromRxnNames(n,tempRxns);
newListGPRs = vertcat(newListGPRs, newGPRs);
r = {};
n = {};
[r,n] = addPathway('Canonical',r,n,tempRxns);
newComps = getCompsFromRxnNames(n,tempRxns);
newListComps = vertcat(newListComps, newComps);
end