-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRC_example2.m
More file actions
21 lines (17 loc) · 767 Bytes
/
RC_example2.m
File metadata and controls
21 lines (17 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function [outputArg1,outputArg2] = example2()
%RC_example2 calculates the gene deletion strategy for growth coupling
%for succinate in iMM904, using RC genes as the initial remaining gene set.
load('CBM_model/iMM904.mat');
model=iMM904;
%The RC gene set size is defaulted to be 195 in iMM904.
RC_gene_selector(iMM904,195);
initial_remaining_gene_pool = readtable('initial_remaining_gene/RC_genes_iMM904.csv', 'Delimiter', ',').Remaining_gene.';
% Start the timer
tic;
[gvalue,gr,pr,it,success]=DBgDel(model,'succ_e',50,0.1,0.1,initial_remaining_gene_pool);
% Stop the timer and display the elapsed time
elapsedTime = toc;
fprintf('Elapsed Time for RC_example2: %.2f seconds\n', elapsedTime);
[GR,PR]=GRPRchecker(model,'succ_e',gvalue)
save('RC_example2.mat');
end