You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PP-GrowthOptimizer.js
+24-23Lines changed: 24 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ var UserDefinedProtocol = {
10
10
// -optimizer stability check
11
11
growthStatistics: true,
12
12
regressionODType: 680,
13
-
regressionCoDMin: 0.75,
13
+
regressionCoDMin: 75,
14
14
stabilizationTimeMin: 12,
15
15
stabilizationTimeMax: 36,
16
16
growthRateEvalFrac: 2/3,
17
17
analyzedSteps: 6,
18
-
intervalOfConfidenceMax: 3.5,
19
18
growthTrendMax: 1.5,
19
+
intervalOfConfidenceMax: 3.5,
20
20
// -peristaltic pump settings
21
21
peristalticPumpID: 5,
22
22
peristalticPumpSpeed: 100,
@@ -47,27 +47,28 @@ var UserDefinedProtocol = {
47
47
* @param {number} turbidostatODMax [AU] - Maximum OD/upper bound for OD regulator/turbidostat
48
48
* @param {number} turbidostatODType [680/720/735] - OD sensor used for turbidostat control
49
49
* @param {number} ODReadoutInterval [s] - Defines how often is the OD measured
50
-
* @param {number} peristalticPumpID [3-7] - Defines peristaltic pump ID set to the pump used for fresh media supply (quasi-continuous mode)
51
-
* @param {number} peristalticPumpSpeed [%] - Nominal pump speed used for dilution of the suspension
52
-
* @param {number} peristalticPumpSlowDownRange [%] - Lower range where the pump slows down
53
-
* @param {number} peristalticPumpSlowDownFactor [%] - Slow down factor for the pump
54
-
* @param {number} growthStatistics [true/false] - Enable or disable calculation of growth statistics. Note that the doubling time (Dt) calculation also includes information about the fit coefficient of determination (CoD in %), known as R-squared
55
-
* @param {number} regressionODType [680/720/735] - OD sensor used for doubling time determination
56
-
* @param {number} analyzedSteps [-] - Number of steps to be analyzed for stability check
57
-
* @param {number} intervalOfConfidenceMax [%] - Maximum allowed percents of 95% Confidence Interval
58
-
* @param {number} growthTrendMax [%] - Maximum growth speed trend in time
59
-
* @param {number} stabilizationTimeMin [h] - Minimum duration of each characterization step
60
-
* @param {number} stabilizationTimeMax [h] - Maximum duration of each characterization step
61
-
* @param {number} growthRateEvalDelay [s] - Time after dilution where data for doubling time determination are ignored. By default growthRateEvalFrac, i.e. only limited fraction of the data points is used for calculations.
62
-
* @param {number} growthRateEvalFrac [0-1] - Defines whether to use particular fraction of the data points for doubling time determination.
63
-
* This is to prevent influence of post dilution effect on doubling time evaluation. If 0 or false, growthRateEvalDelay is used instead. Note that to completely disable data limitation you need to set both growthRateEvalFrac and growthRateEvalDelay to 0.
64
50
* @param {string} controlledParameter ['none'/'temperature'/'lights'/'GMS'/'stirrer'/'ODRange'] - Supported parameters to control by the script
65
51
* @param {array} controlledParameterSteps - List of values for the controlled parameter. Examples:
* @param {number} growthStatistics [true/false] - Enable or disable calculation of growth statistics. Note that the doubling time (Dt) calculation also includes information about the fit coefficient of determination (CoD in %), known as R-squared
58
+
* @param {number} regressionODType [680/720/735] - OD sensor used for doubling time determination
59
+
* @param {number} regressionCoDMin [%] - Minimum accpeted coefficient of determination for staility check evaluation (values below are ignored)
60
+
* @param {number} stabilizationTimeMin [h] - Minimum duration of each characterization step
61
+
* @param {number} stabilizationTimeMax [h] - Maximum duration of each characterization step
62
+
* @param {number} growthRateEvalFrac [0-1] - Defines whether to use particular fraction of the data points for doubling time determination.
63
+
* @param {number} analyzedSteps [-] - Number of steps to be analyzed for stability check
64
+
* @param {number} growthTrendMax [%] - Maximum growth speed trend in time
65
+
* @param {number} intervalOfConfidenceMax [%] - Maximum allowed percents of 95% Confidence Interval
66
+
* @param {number} peristalticPumpID [3-7] - Defines peristaltic pump ID set to the pump that is used for fresh media supply (quasi-continuous mode)
67
+
* @param {number} peristalticPumpSpeed [%] - Nominal pump speed used for dilution of the suspension
68
+
* @param {number} peristalticPumpSlowDownRange [%] - Lower range where the pump slows down
69
+
* @param {number} peristalticPumpSlowDownFactor [%] - Slow down factor for the pump
70
+
* @param {number} growthRateEvalDelay [s] - Time after dilution where data for doubling time determination are ignored. By default growthRateEvalFrac, i.e. only limited fraction of the data points is used for calculations.
71
+
* This is to prevent influence of post dilution effect on doubling time evaluation. If 0 or false, growthRateEvalDelay is used instead. Note that to completely disable data limitation you need to set both growthRateEvalFrac and growthRateEvalDelay to 0.
71
72
* @param {string} groupGMS - Identifies the group that contains Gas Mixing System.
72
73
*
73
74
* @return Flow of external/additional pump
@@ -265,7 +266,7 @@ if (!theAccessory.context().getInt('initialization', 0)) {
265
266
*/
266
267
functioncontrolPump(){
267
268
// Control the pump
268
-
// Following ready for function
269
+
// Following code ready for functional implementation
theExperiment.addEvent('Steps doubling time Avg: '+round(stepDoublingTimeAvg,2)+' h, IC95 '+round(stepDoublingTimeIC95,2)+' h ('+round(stepDoublingTimeIC95/stepDoublingTimeAvg*100,1)+'%) with '+round(stepTrend,2)+' h/h trend ('+round(stepTrend/stepDoublingTimeAvg*100,1)+'%)')
0 commit comments