Skip to content

Commit

Permalink
Test for analyzeGCDesign WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekwachowiak committed Nov 15, 2017
1 parent 279d428 commit 5ec4214
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/verifiedTests/design/testAnalyzeGCdesign.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
% The COBRAToolbox: testAnalyzeGCdesign.m
%
% Purpose:
% - test the analyzeGCdesign function
%
% Authors:
% - Jacek Wachowiak
global CBTDIR
% save the current path
currentDir = pwd;

% initialize the test
fileDir = fileparts(which('testAnalyzeGCdesign'));
cd(fileDir);

% test variables
model = readCbModel([CBTDIR filesep 'test' filesep 'models' filesep 'ecoli_core_model.mat']);
selectedRxns = model.rxns(2);
target = model.rxns(3);
deletions = model.rxns(1);
modelRed = reduceModel(model)

% function outputs
% requires Global Optimization Toolbox
[improvedRxns, intermediateSlns] = analyzeGCdesign(modelRed, selectedRxns, target, deletions)

% test
assert(isequal(0, 0));

% change to old directory
cd(currentDir);

0 comments on commit 5ec4214

Please sign in to comment.