From 5ec4214b3bf68758accbf6666d53e58903eefd78 Mon Sep 17 00:00:00 2001 From: Jacek Wachowiak Date: Mon, 18 Sep 2017 13:41:18 +0200 Subject: [PATCH] Test for analyzeGCDesign WIP --- .../design/testAnalyzeGCdesign.m | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/verifiedTests/design/testAnalyzeGCdesign.m diff --git a/test/verifiedTests/design/testAnalyzeGCdesign.m b/test/verifiedTests/design/testAnalyzeGCdesign.m new file mode 100644 index 0000000000..45fe45b1e7 --- /dev/null +++ b/test/verifiedTests/design/testAnalyzeGCdesign.m @@ -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);