forked from CovertLab/WholeCell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generateTestFixtures.m
29 lines (24 loc) · 936 Bytes
/
generateTestFixtures.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
% Generates test fixtures for whole cell simulation.
%
% Author: Jonathan Karr, [email protected]
% Author: Jared Jacobs, [email protected]
% Affilitation: Covert Lab, Department of Bioengineering, Stanford University
% Last updated: 5/31/2011
function generateTestFixtures()
import edu.stanford.covert.cell.sim.runners.SimulationRunner;
%create runner which helps do the tasks below
runner = SimulationRunner(...
'useCachedKb', false, ...
'useCachedSim', false, ...
'cacheKb', true, ...
'cacheSimulation', true);
%construction KB and simulation
sim = runner.constructKbAndSimulation();
% verify initial growth rate distribution
if ~runner.isSimulationFitted(sim)
throw(MException('Simulation:notFitted', 'Simulation not properly fitted'));
end
%save simulation parameters in JSON format
runner.cacheSimulationParametersJson(sim);
%generate simulation test fixtures
runner.cacheSimulationTestFixtures(sim);