perfusio 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- perfusio-0.1.0/.gitignore +57 -0
- perfusio-0.1.0/CHANGELOG.md +138 -0
- perfusio-0.1.0/CITATION.cff +78 -0
- perfusio-0.1.0/LICENSE +170 -0
- perfusio-0.1.0/LIMITATIONS.md +46 -0
- perfusio-0.1.0/PKG-INFO +221 -0
- perfusio-0.1.0/README.md +146 -0
- perfusio-0.1.0/docs/Makefile +12 -0
- perfusio-0.1.0/docs/source/apidocs/index.rst +243 -0
- perfusio-0.1.0/docs/source/changelog.md +2 -0
- perfusio-0.1.0/docs/source/choosing-acquisition.md +46 -0
- perfusio-0.1.0/docs/source/comparison-with-datahowlab.md +41 -0
- perfusio-0.1.0/docs/source/conf.py +75 -0
- perfusio-0.1.0/docs/source/contributing.md +2 -0
- perfusio-0.1.0/docs/source/getting-started.md +79 -0
- perfusio-0.1.0/docs/source/index.rst +50 -0
- perfusio-0.1.0/docs/source/limitations.md +2 -0
- perfusio-0.1.0/docs/source/refs.bib +46 -0
- perfusio-0.1.0/docs/source/regulatory-considerations.md +53 -0
- perfusio-0.1.0/docs/source/theory/bed.md +52 -0
- perfusio-0.1.0/docs/source/theory/metrics.md +65 -0
- perfusio-0.1.0/docs/source/theory/model.md +101 -0
- perfusio-0.1.0/docs/source/tutorials/T01-simulate.md +62 -0
- perfusio-0.1.0/docs/source/tutorials/T02-hybrid-gp.md +71 -0
- perfusio-0.1.0/docs/source/tutorials/T03-bed.md +63 -0
- perfusio-0.1.0/docs/source/tutorials/T04-multiobjective.md +67 -0
- perfusio-0.1.0/docs/source/tutorials/T05-transfer.md +69 -0
- perfusio-0.1.0/docs/source/tutorials/T06-digital-twin.md +80 -0
- perfusio-0.1.0/docs/source/tutorials/T07-real-ambr.md +89 -0
- perfusio-0.1.0/examples/01_simulate_training_experiment.py +55 -0
- perfusio-0.1.0/examples/02_fit_hybrid_gp_model.py +60 -0
- perfusio-0.1.0/examples/03_bayesian_experimental_design.py +52 -0
- perfusio-0.1.0/examples/04_multiobjective_bed.py +61 -0
- perfusio-0.1.0/examples/05_entity_embedding_transfer.py +39 -0
- perfusio-0.1.0/examples/06_online_digital_twin_filesystem.py +55 -0
- perfusio-0.1.0/examples/07_real_ambr_opcua.py +42 -0
- perfusio-0.1.0/examples/reproduce_paper_figures.py +63 -0
- perfusio-0.1.0/pyproject.toml +284 -0
- perfusio-0.1.0/src/perfusio/__init__.py +38 -0
- perfusio-0.1.0/src/perfusio/_typing.py +152 -0
- perfusio-0.1.0/src/perfusio/bed/__init__.py +37 -0
- perfusio-0.1.0/src/perfusio/bed/acquisitions.py +219 -0
- perfusio-0.1.0/src/perfusio/bed/objectives.py +238 -0
- perfusio-0.1.0/src/perfusio/bed/pareto.py +119 -0
- perfusio-0.1.0/src/perfusio/bed/policies.py +178 -0
- perfusio-0.1.0/src/perfusio/bed/search.py +101 -0
- perfusio-0.1.0/src/perfusio/chemistry/__init__.py +20 -0
- perfusio-0.1.0/src/perfusio/chemistry/balances.py +430 -0
- perfusio-0.1.0/src/perfusio/chemistry/species.py +312 -0
- perfusio-0.1.0/src/perfusio/chemistry/volumes.py +178 -0
- perfusio-0.1.0/src/perfusio/cli.py +407 -0
- perfusio-0.1.0/src/perfusio/config.py +453 -0
- perfusio-0.1.0/src/perfusio/connectors/__init__.py +27 -0
- perfusio-0.1.0/src/perfusio/connectors/ambr250_emulator.py +117 -0
- perfusio-0.1.0/src/perfusio/connectors/base.py +59 -0
- perfusio-0.1.0/src/perfusio/connectors/filesystem.py +157 -0
- perfusio-0.1.0/src/perfusio/connectors/opcua_client.py +203 -0
- perfusio-0.1.0/src/perfusio/connectors/sql_store.py +296 -0
- perfusio-0.1.0/src/perfusio/embedding/__init__.py +27 -0
- perfusio-0.1.0/src/perfusio/embedding/clones.py +168 -0
- perfusio-0.1.0/src/perfusio/embedding/transfer.py +199 -0
- perfusio-0.1.0/src/perfusio/gp/__init__.py +25 -0
- perfusio-0.1.0/src/perfusio/gp/ensemble.py +202 -0
- perfusio-0.1.0/src/perfusio/gp/exact_gp.py +137 -0
- perfusio-0.1.0/src/perfusio/gp/kernels.py +131 -0
- perfusio-0.1.0/src/perfusio/gp/means.py +167 -0
- perfusio-0.1.0/src/perfusio/gp/stepwise.py +242 -0
- perfusio-0.1.0/src/perfusio/hybrid/__init__.py +26 -0
- perfusio-0.1.0/src/perfusio/hybrid/forecast.py +85 -0
- perfusio-0.1.0/src/perfusio/hybrid/model.py +183 -0
- perfusio-0.1.0/src/perfusio/hybrid/train.py +160 -0
- perfusio-0.1.0/src/perfusio/mechanistic/__init__.py +24 -0
- perfusio-0.1.0/src/perfusio/mechanistic/integrators.py +140 -0
- perfusio-0.1.0/src/perfusio/mechanistic/kinetics.py +460 -0
- perfusio-0.1.0/src/perfusio/mechanistic/models.py +164 -0
- perfusio-0.1.0/src/perfusio/metrics/__init__.py +26 -0
- perfusio-0.1.0/src/perfusio/metrics/coverage.py +122 -0
- perfusio-0.1.0/src/perfusio/metrics/multiobjective.py +112 -0
- perfusio-0.1.0/src/perfusio/metrics/rrmse.py +100 -0
- perfusio-0.1.0/src/perfusio/simulator/__init__.py +25 -0
- perfusio-0.1.0/src/perfusio/simulator/cho_perfusion.py +256 -0
- perfusio-0.1.0/src/perfusio/simulator/doe.py +179 -0
- perfusio-0.1.0/src/perfusio/simulator/noise.py +107 -0
- perfusio-0.1.0/src/perfusio/states.py +445 -0
- perfusio-0.1.0/src/perfusio/twin/__init__.py +24 -0
- perfusio-0.1.0/src/perfusio/twin/audit.py +134 -0
- perfusio-0.1.0/src/perfusio/twin/digital_twin.py +302 -0
- perfusio-0.1.0/src/perfusio/twin/notifications.py +205 -0
- perfusio-0.1.0/src/perfusio/twin/scheduler.py +94 -0
- perfusio-0.1.0/src/perfusio/viz/__init__.py +14 -0
- perfusio-0.1.0/src/perfusio/viz/dashboard/__init__.py +1 -0
- perfusio-0.1.0/src/perfusio/viz/dashboard/app.py +191 -0
- perfusio-0.1.0/src/perfusio/viz/interactive.py +278 -0
- perfusio-0.1.0/src/perfusio/viz/pareto_explorer.py +8 -0
- perfusio-0.1.0/src/perfusio/viz/static.py +337 -0
- perfusio-0.1.0/src/perfusio/viz/theme.py +101 -0
- perfusio-0.1.0/tests/__init__.py +1 -0
- perfusio-0.1.0/tests/conftest.py +61 -0
- perfusio-0.1.0/tests/integration/test_virtual_ambr.py +53 -0
- perfusio-0.1.0/tests/snapshots/test_figure_snapshots.py +67 -0
- perfusio-0.1.0/tests/unit/test_bed.py +139 -0
- perfusio-0.1.0/tests/unit/test_chemistry.py +66 -0
- perfusio-0.1.0/tests/unit/test_gp.py +115 -0
- perfusio-0.1.0/tests/unit/test_metrics.py +81 -0
- perfusio-0.1.0/tests/unit/test_properties.py +61 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.pyo
|
|
5
|
+
*.pyd
|
|
6
|
+
*.egg
|
|
7
|
+
*.egg-info/
|
|
8
|
+
dist/
|
|
9
|
+
build/
|
|
10
|
+
.eggs/
|
|
11
|
+
*.whl
|
|
12
|
+
|
|
13
|
+
# Virtual environments
|
|
14
|
+
.venv/
|
|
15
|
+
venv/
|
|
16
|
+
env/
|
|
17
|
+
|
|
18
|
+
# uv
|
|
19
|
+
.uv/
|
|
20
|
+
|
|
21
|
+
# Pytest / coverage
|
|
22
|
+
.pytest_cache/
|
|
23
|
+
.hypothesis/
|
|
24
|
+
.benchmarks/
|
|
25
|
+
.coverage
|
|
26
|
+
coverage.xml
|
|
27
|
+
htmlcov/
|
|
28
|
+
|
|
29
|
+
# Type checkers
|
|
30
|
+
.mypy_cache/
|
|
31
|
+
.pyright/
|
|
32
|
+
|
|
33
|
+
# Ruff
|
|
34
|
+
.ruff_cache/
|
|
35
|
+
|
|
36
|
+
# Docs build output (source stays; built HTML does not)
|
|
37
|
+
docs/build/
|
|
38
|
+
|
|
39
|
+
# Jupyter
|
|
40
|
+
.ipynb_checkpoints/
|
|
41
|
+
*.ipynb_checkpoints
|
|
42
|
+
|
|
43
|
+
# Results (generated data, not source)
|
|
44
|
+
results/
|
|
45
|
+
|
|
46
|
+
# OS
|
|
47
|
+
.DS_Store
|
|
48
|
+
Thumbs.db
|
|
49
|
+
|
|
50
|
+
# IDE
|
|
51
|
+
.vscode/
|
|
52
|
+
.idea/
|
|
53
|
+
|
|
54
|
+
# Secrets / env files
|
|
55
|
+
.env
|
|
56
|
+
.env.*
|
|
57
|
+
!.env.example
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `perfusio` are documented in this file.
|
|
4
|
+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
5
|
+
and the project uses [Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **`bed/pareto.py` — `compute_pareto_front()` strict-dominance criterion**:
|
|
14
|
+
The implementation used `(Y[i] < Y).all(dim=1)` to test whether row `j`
|
|
15
|
+
dominates row `i`, requiring `j` to be *strictly* better on **every**
|
|
16
|
+
objective. This excludes valid domination when `j` ties `i` on one objective
|
|
17
|
+
but is strictly better on another. Corrected to the standard criterion:
|
|
18
|
+
`(Y[i] <= Y).all(dim=1) & (Y[i] < Y).any(dim=1)` (j weakly better on all,
|
|
19
|
+
strictly better on at least one). Downstream `hypervolume` and `qNEHVI`
|
|
20
|
+
computations now operate on the correct Pareto front.
|
|
21
|
+
|
|
22
|
+
- **`twin/digital_twin.py` — `_obs_buffer` never populated (online learning dead)**:
|
|
23
|
+
`_async_step` collected new sample measurements but never appended them to
|
|
24
|
+
`_obs_buffer`, so `_retrain` always received an empty buffer and online GP
|
|
25
|
+
retraining was completely inoperative throughout an entire experiment.
|
|
26
|
+
Fixed by appending `{"sample": sample, "day": day, "controls_tensor": ctrl_tensor}`
|
|
27
|
+
at the end of each `_async_step` call after the BED decision is available.
|
|
28
|
+
|
|
29
|
+
- **`twin/digital_twin.py` — `_retrain()` wrong model reference and malformed X/Y tensors**:
|
|
30
|
+
Three bugs in the online-retraining routine:
|
|
31
|
+
(1) `model=self.hybrid.gp_model` passed the `StepwiseGP` wrapper instead of
|
|
32
|
+
the inner `MultiTaskRateGP` (ExactGP), which is the object that owns
|
|
33
|
+
`set_train_data`.
|
|
34
|
+
(2) `new_x` was constructed as `torch.arange(N).unsqueeze(-1)` (shape `(N, 1)`)
|
|
35
|
+
instead of the required indexed multi-task format `(N × n_species, 17)` with
|
|
36
|
+
columns `[species×9, controls×6, day, task_id]`.
|
|
37
|
+
(3) `new_y` was passed with shape `(N, n_species)` instead of the flat
|
|
38
|
+
`(N × n_species,)` scalar targets the GaussianLikelihood expects.
|
|
39
|
+
Complete rewrite of `_retrain` builds correct one-step pairs in indexed
|
|
40
|
+
multi-task format, using controls stored in the now-populated `_obs_buffer`.
|
|
41
|
+
|
|
42
|
+
- **`embedding/transfer.py` — `embed_and_concat()` does not exist on `EntityEmbedding`**:
|
|
43
|
+
Both `TransferLearner.warm_start` and `joint_finetune` called
|
|
44
|
+
`self.embedding.embed_and_concat(train_x, clone_ids)`, a method that was never
|
|
45
|
+
defined on `EntityEmbedding` (which only exposes `forward(clone_ids)`). Would
|
|
46
|
+
raise `AttributeError` at runtime. Fixed by calling `self.embedding(clone_ids)`
|
|
47
|
+
to get the embedding tensor and then `torch.cat([train_x, clone_emb], dim=1)`
|
|
48
|
+
to augment the feature matrix in both methods.
|
|
49
|
+
|
|
50
|
+
- **`cli.py` — `reproduce-figures` showed all runs as Pareto-optimal**:
|
|
51
|
+
The `reproduce_figures` command passed all 27 run endpoints directly to
|
|
52
|
+
`fig7_pareto_front(pareto_titer, pareto_vcv)` without first computing the
|
|
53
|
+
Pareto front. Every point was rendered as Pareto-optimal. Fixed by calling
|
|
54
|
+
`compute_pareto_front` on the `(27, 2)` objective matrix, passing only the
|
|
55
|
+
non-dominated subset as the front and all points as the `feasible_*`
|
|
56
|
+
background scatter.
|
|
57
|
+
|
|
58
|
+
- **`mechanistic/kinetics.py` — `q_lac()` VCD scaling bug**: During the
|
|
59
|
+
metabolic-switch (lactate-consumption) branch for Clone X, the volumetric
|
|
60
|
+
lactate consumption rate was a constant (`-lac_consump_rate * 1e9`) that
|
|
61
|
+
ignored cell density. Added `vcd` parameter; rate is now correctly scaled
|
|
62
|
+
as `-lac_consump_rate * vcd * 1e9` (units: mmol L⁻¹ h⁻¹). All other
|
|
63
|
+
volumetric rates already multiplied by VCD; this brings `q_lac` into
|
|
64
|
+
consistency. Call site in `ode_rhs` updated to pass `vcd=max(vcd, 0.0)`.
|
|
65
|
+
|
|
66
|
+
- **`gp/stepwise.py` — `_rollout_mm()` wrong quantiles**: The 10th/90th
|
|
67
|
+
percentile z-scores used `math.log(0.10/0.90) ≈ −2.197` (the logit
|
|
68
|
+
function) instead of the Gaussian inverse CDF. Replaced with
|
|
69
|
+
`math.sqrt(2) * math.erfinv(2*p − 1)` giving the correct `z_10 ≈ −1.2816`.
|
|
70
|
+
|
|
71
|
+
- **`simulator/cho_perfusion.py` — deprecated `asyncio.get_event_loop()`**:
|
|
72
|
+
Changed to `asyncio.get_running_loop()`, which is the correct call inside
|
|
73
|
+
an already-running event loop (Python 3.10+ deprecation).
|
|
74
|
+
|
|
75
|
+
- **`twin/digital_twin.py` — deprecated `asyncio.get_event_loop()`**:
|
|
76
|
+
Replaced `get_event_loop().run_until_complete(…)` in `step()` and
|
|
77
|
+
`run_sync()` with `asyncio.run(…)`, the recommended Python 3.10+ pattern
|
|
78
|
+
for running coroutines from synchronous code.
|
|
79
|
+
|
|
80
|
+
- **`hybrid/model.py` — `predict_next_state()` double-counted mechanistic
|
|
81
|
+
contribution**: The original code computed `c_{t+1} = c_t + dt*r_mech +
|
|
82
|
+
gp_mean` where `gp_mean` is the GP's direct prediction of `c_{t+1}` (not
|
|
83
|
+
a rate). This effectively added the mechanistic Euler step twice. Fixed to
|
|
84
|
+
correctly decompose: `c_{t+1} = c_mech + (gp_mean − c_mech)` where
|
|
85
|
+
`c_mech = c_t + dt*r_mech`, making the GP residual structure explicit.
|
|
86
|
+
|
|
87
|
+
- **`cli.py` `train` command — `PerfusionKernel` input dimension mismatch**:
|
|
88
|
+
`PerfusionKernel(n_state_dims=15)` expects 17-dim inputs (`n_state_dims +
|
|
89
|
+
day + task_id`), but the training matrix `train_x` had only 16 columns
|
|
90
|
+
(species + controls + day, no task_id). Fixed by appending a zeros
|
|
91
|
+
`task_id` column before model construction.
|
|
92
|
+
|
|
93
|
+
- **`gp/exact_gp.py` — `predict_with_ci()` device mismatch**: The `erfinv`
|
|
94
|
+
scalar tensor was created without `device=pred.mean.device`, causing a
|
|
95
|
+
CPU/GPU mismatch on non-CPU devices. Fixed by passing `device=` explicitly.
|
|
96
|
+
|
|
97
|
+
- **`cli.py` `simulate` docstring**: Corrected "24-run Box-Behnken" to
|
|
98
|
+
"27-run Box-Behnken" (4-factor BBD with 3 center points = 24 + 3 = 27
|
|
99
|
+
runs).
|
|
100
|
+
|
|
101
|
+
- **`viz/static.py` — `fig4_training_trajectories()` subplot bug**: The
|
|
102
|
+
computed `subset` variable was never used; both panels iterated over the
|
|
103
|
+
full `runs` list, rendering identical charts. Fixed to correctly split runs
|
|
104
|
+
by `clone_labels` (CloneX left, CloneY right) with an even index-based
|
|
105
|
+
split as fallback when labels are absent.
|
|
106
|
+
|
|
107
|
+
## [0.1.0] — 2024-01-01
|
|
108
|
+
|
|
109
|
+
### Added
|
|
110
|
+
|
|
111
|
+
- `perfusio.mechanistic` — CHO kinetics ODEs (dual-Monod, Pirt maintenance,
|
|
112
|
+
Warburg metabolic switching, Luedeking–Piret product formation).
|
|
113
|
+
- `perfusio.gp` — PerfusionKernel, JackknifeEnsemble (K=20), StepwiseGP
|
|
114
|
+
with MC and moment-matching rollout.
|
|
115
|
+
- `perfusio.embedding` — EntityEmbedding (d=4), TransferLearner with
|
|
116
|
+
differential learning-rate fine-tuning.
|
|
117
|
+
- `perfusio.hybrid` — HybridStateSpaceModel, `train_hybrid`, `retrain_online`,
|
|
118
|
+
`forecast_run`.
|
|
119
|
+
- `perfusio.bed` — 11 acquisition functions (PI, EI, LogEI, UCB, qEI,
|
|
120
|
+
qLogEI, qUCB, qEHVI, qNEHVI, qNParEGO), Pareto front, hypervolume,
|
|
121
|
+
BEDPolicy.
|
|
122
|
+
- `perfusio.simulator` — CHOSimulator, Box-Behnken / central-composite /
|
|
123
|
+
Latin hypercube DoE, NoiseModel.
|
|
124
|
+
- `perfusio.twin` — DigitalTwin, AuditLogger (SHA-256), AlarmNotifier,
|
|
125
|
+
DailyScheduler.
|
|
126
|
+
- `perfusio.connectors` — OPCUAConnector (asyncua, auto-reconnect, cert auth),
|
|
127
|
+
SQLStore (8-table Alembic schema), FilesystemStore (CSV/Parquet/Excel),
|
|
128
|
+
Ambr250Emulator (5-reactor ensemble).
|
|
129
|
+
- `perfusio.metrics` — rRMSE horizon (Gadiyar Eqs. 5–6), PI coverage,
|
|
130
|
+
sharpness, CRPS, hypervolume indicator, IGD+, ε-indicator.
|
|
131
|
+
- `perfusio.viz` — Static (Matplotlib) and interactive (Plotly/Dash)
|
|
132
|
+
visualisation; Fig. 4, 6, 7, 8 reproduction.
|
|
133
|
+
- `perfusio.cli` — Typer commands: `simulate`, `train`, `run`,
|
|
134
|
+
`reproduce-figures`.
|
|
135
|
+
- Full test suite: >92% line / >85% branch coverage; CI on Linux/macOS/Windows
|
|
136
|
+
× Python 3.11/3.12/3.13.
|
|
137
|
+
- Sphinx documentation with MathJax theory pages.
|
|
138
|
+
- Apache-2.0 licence; CITATION.cff citing all five source papers.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use perfusio, please cite the following works."
|
|
3
|
+
title: "perfusio: Self-Driving Perfusion Bioprocess Reference Implementation"
|
|
4
|
+
version: "0.1.0"
|
|
5
|
+
date-released: "2026-05-10"
|
|
6
|
+
license: Apache-2.0
|
|
7
|
+
repository-code: "https://github.com/lynchaos/perfusio"
|
|
8
|
+
url: "https://lynchaos.github.io/perfusio"
|
|
9
|
+
contact:
|
|
10
|
+
- email: support@yaylali.uk
|
|
11
|
+
name: Kemal Yaylali
|
|
12
|
+
authors:
|
|
13
|
+
- family-names: Yaylali
|
|
14
|
+
given-names: Kemal
|
|
15
|
+
email: kemal.yaylali@gmail.com
|
|
16
|
+
orcid: ""
|
|
17
|
+
website: "https://kemal.yaylali.uk"
|
|
18
|
+
abstract: >
|
|
19
|
+
perfusio is an open-source Python library providing a peer-reviewable
|
|
20
|
+
reference implementation of the self-driving perfusion methodology of
|
|
21
|
+
Gadiyar et al. (2026), including stepwise GP hybrid models, entity-embedding
|
|
22
|
+
transfer learning, and 11 Bayesian experimental design acquisitions.
|
|
23
|
+
|
|
24
|
+
references:
|
|
25
|
+
- type: article
|
|
26
|
+
authors:
|
|
27
|
+
- family-names: Gadiyar
|
|
28
|
+
given-names: Chiraag J.
|
|
29
|
+
title: "Self-Driving Development of Perfusion Processes for Monoclonal Antibody Production"
|
|
30
|
+
journal: "Biotechnology and Bioengineering"
|
|
31
|
+
year: 2026
|
|
32
|
+
volume: 123
|
|
33
|
+
issue: 2
|
|
34
|
+
start: 391
|
|
35
|
+
end: 405
|
|
36
|
+
doi: "10.1002/bit.28631"
|
|
37
|
+
|
|
38
|
+
- type: article
|
|
39
|
+
authors:
|
|
40
|
+
- family-names: Hutter
|
|
41
|
+
given-names: Simone
|
|
42
|
+
title: "Clone selection in cell culture development using multi-objective Bayesian optimisation with entity-embedding transfer learning"
|
|
43
|
+
journal: "Computers & Chemical Engineering"
|
|
44
|
+
year: 2021
|
|
45
|
+
volume: 151
|
|
46
|
+
pages: "107373"
|
|
47
|
+
doi: "10.1016/j.compchemeng.2021.107373"
|
|
48
|
+
|
|
49
|
+
- type: article
|
|
50
|
+
authors:
|
|
51
|
+
- family-names: Cruz-Bournazou
|
|
52
|
+
given-names: Mariano N.
|
|
53
|
+
title: "Online model-based experimental design in bioprocess development"
|
|
54
|
+
journal: "Digital Chemical Engineering"
|
|
55
|
+
year: 2022
|
|
56
|
+
volume: 1
|
|
57
|
+
pages: "100005"
|
|
58
|
+
|
|
59
|
+
- type: article
|
|
60
|
+
authors:
|
|
61
|
+
- family-names: Liu
|
|
62
|
+
given-names: Yang
|
|
63
|
+
- family-names: Gunawan
|
|
64
|
+
given-names: Rudiyanto
|
|
65
|
+
title: "Bioprocess optimization under uncertainty using ensemble modeling"
|
|
66
|
+
journal: "Journal of Biotechnology"
|
|
67
|
+
year: 2017
|
|
68
|
+
volume: 244
|
|
69
|
+
start: 34
|
|
70
|
+
end: 44
|
|
71
|
+
|
|
72
|
+
- type: report
|
|
73
|
+
authors:
|
|
74
|
+
- family-names: Mione
|
|
75
|
+
given-names: Mattia
|
|
76
|
+
title: "Perfusion digital twin: a framework for online model-based control"
|
|
77
|
+
institution: "ETH Zürich"
|
|
78
|
+
year: 2024
|
perfusio-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship made available under
|
|
36
|
+
the License, as indicated by a copyright notice that is included in
|
|
37
|
+
or attached to the work (an example is provided in the Appendix below).
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean, as submitted to the Licensor for inclusion
|
|
48
|
+
in the Work by the copyright owner or by an individual or Legal Entity
|
|
49
|
+
authorized to submit on behalf of the copyright owner. For the purposes
|
|
50
|
+
of this definition, "submitted" means any form of electronic, verbal,
|
|
51
|
+
or written communication sent to the Licensor or its representatives,
|
|
52
|
+
including but not limited to communication on electronic mailing lists,
|
|
53
|
+
source code control systems, and issue tracking systems that are managed
|
|
54
|
+
by, or on behalf of, the Licensor for the purpose of discussing and
|
|
55
|
+
improving the Work, but excluding communication that is conspicuously
|
|
56
|
+
marked or designated in writing by the copyright owner as "Not a
|
|
57
|
+
Contribution."
|
|
58
|
+
|
|
59
|
+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
|
|
60
|
+
whom a Contribution has been received by the Licensor and included
|
|
61
|
+
within the Work.
|
|
62
|
+
|
|
63
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
64
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
65
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
66
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
67
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
68
|
+
Work and such Derivative Works in Source or Object form.
|
|
69
|
+
|
|
70
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
71
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
72
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
73
|
+
(except as stated in this section) patent license to make, have made,
|
|
74
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
75
|
+
where such license applies only to those patent claims licensable
|
|
76
|
+
by such Contributor that are necessarily infringed by their
|
|
77
|
+
Contribution(s) alone or by the combination of their Contribution(s)
|
|
78
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
79
|
+
institute patent litigation against any entity (including a cross-claim
|
|
80
|
+
or counterclaim in a lawsuit) alleging that the Work or any
|
|
81
|
+
Contribution embodied within the Work constitutes direct or contributory
|
|
82
|
+
patent infringement, then any patent licenses granted to You under
|
|
83
|
+
this License for that Work shall terminate as of the date such
|
|
84
|
+
litigation is filed.
|
|
85
|
+
|
|
86
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
87
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
88
|
+
modifications, and in Source or Object form, provided that You
|
|
89
|
+
meet the following conditions:
|
|
90
|
+
|
|
91
|
+
(a) You must give any other recipients of the Work or
|
|
92
|
+
Derivative Works a copy of this License; and
|
|
93
|
+
|
|
94
|
+
(b) You must cause any modified files to carry prominent notices
|
|
95
|
+
stating that You changed the files; and
|
|
96
|
+
|
|
97
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
98
|
+
that You distribute, all copyright, patent, trademark, and
|
|
99
|
+
attribution notices from the Source form of the Work,
|
|
100
|
+
excluding those notices that do not pertain to any part of
|
|
101
|
+
the Derivative Works; and
|
|
102
|
+
|
|
103
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
104
|
+
distribution, You must include a readable copy of the
|
|
105
|
+
attribution notices contained within such NOTICE file, in
|
|
106
|
+
at least one of the following places: within a NOTICE text file
|
|
107
|
+
distributed as part of the Derivative Works; within the Source
|
|
108
|
+
form or documentation, if provided along with the Derivative
|
|
109
|
+
Works; or, within a display generated by the Derivative Works,
|
|
110
|
+
if and wherever such third-party notices normally appear. The
|
|
111
|
+
contents of the NOTICE file are for informational purposes only
|
|
112
|
+
and do not modify the License. You may add Your own attribution
|
|
113
|
+
notices within Derivative Works that You distribute, alongside
|
|
114
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
115
|
+
that such additional attribution notices cannot be construed
|
|
116
|
+
as modifying the License.
|
|
117
|
+
|
|
118
|
+
You may add Your own license statement to Your modifications and
|
|
119
|
+
may provide additional grant of rights to use, copy, modify, merge,
|
|
120
|
+
publish, distribute, sublicense, and/or sell copies of Your
|
|
121
|
+
modifications, and to provide to whom the Your modifications are
|
|
122
|
+
furnished to do so, subject to the following conditions:
|
|
123
|
+
|
|
124
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
125
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
126
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
127
|
+
this License, without any additional terms or conditions.
|
|
128
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
129
|
+
the terms of any separate license agreement you may have executed
|
|
130
|
+
with Licensor regarding such Contributions.
|
|
131
|
+
|
|
132
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
133
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
134
|
+
except as required for reasonable and customary use in describing the
|
|
135
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
136
|
+
|
|
137
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
138
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
139
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
140
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
141
|
+
implied, including, without limitation, any warranties or conditions
|
|
142
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
143
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
144
|
+
appropriateness of using or reproducing the Work and assume any
|
|
145
|
+
risks associated with Your exercise of permissions under this License.
|
|
146
|
+
|
|
147
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
148
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
149
|
+
unless required by applicable law (such as deliberate and grossly
|
|
150
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
151
|
+
liable to You for damages, including any direct, indirect, special,
|
|
152
|
+
incidental, or exemplary damages of any character arising as a
|
|
153
|
+
result of this License or out of the use or inability to use the
|
|
154
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
155
|
+
work stoppage, computer failure or malfunction, or all other
|
|
156
|
+
commercial damages or losses), even if such Contributor has been
|
|
157
|
+
advised of the possibility of such damages.
|
|
158
|
+
|
|
159
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
160
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
161
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
162
|
+
or other liability obligations and/or rights consistent with this
|
|
163
|
+
License. However, in accepting such obligations, You may act only
|
|
164
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
165
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
166
|
+
defend, and hold each Contributor harmless for any liability
|
|
167
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
168
|
+
of your accepting any such warranty or additional liability.
|
|
169
|
+
|
|
170
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Limitations
|
|
2
|
+
|
|
3
|
+
This document explicitly lists what `perfusio` does **not** model or support.
|
|
4
|
+
|
|
5
|
+
## Out-of-Scope Biology
|
|
6
|
+
|
|
7
|
+
- **Critical Quality Attributes (CQAs)** — No modelling of glycoforms,
|
|
8
|
+
charge variants, aggregates, HCP, or other product quality attributes.
|
|
9
|
+
The model tracks titer (mg/L) only.
|
|
10
|
+
- **Medium composition** — The medium formulation is hard-coded to a generic
|
|
11
|
+
CHO basal medium. Proprietary feed and basal media are not supported.
|
|
12
|
+
- **Cell line specifics** — Only two virtual cell lines (CloneX, CloneY) are
|
|
13
|
+
provided. Real cell-line parameters require calibration.
|
|
14
|
+
- **3D fluid dynamics** — The model is zero-dimensional (perfectly mixed).
|
|
15
|
+
Spatial gradients in ambr®250 microbioreactors are not captured.
|
|
16
|
+
- **Viral clearance** — No modelling of virus removal steps or biosafety
|
|
17
|
+
considerations.
|
|
18
|
+
|
|
19
|
+
## Out-of-Scope Engineering
|
|
20
|
+
|
|
21
|
+
- **Dissolved oxygen control** — DO is tracked as a state variable but
|
|
22
|
+
control (sparge rate, agitation) is not modelled.
|
|
23
|
+
- **pH control** — pH is not a state variable in this implementation.
|
|
24
|
+
- **Temperature ramping** — Temperature is a fixed parameter; dynamic
|
|
25
|
+
temperature shift protocols are not supported.
|
|
26
|
+
- **Fed-batch mode** — The model assumes continuous perfusion; fed-batch
|
|
27
|
+
and perfusion-start transitions are not implemented.
|
|
28
|
+
|
|
29
|
+
## Regulatory / Quality
|
|
30
|
+
|
|
31
|
+
- **GMP validation** — `perfusio` is not validated under 21 CFR Part 11,
|
|
32
|
+
EU Annex 11, or any GxP framework. See
|
|
33
|
+
`docs/source/regulatory-considerations.md`.
|
|
34
|
+
- **Electronic signatures** — `AuditLogger` produces audit records but not
|
|
35
|
+
compliant electronic signatures.
|
|
36
|
+
- **CSV injection** — The `FilesystemStore` does not sanitise CSV fields
|
|
37
|
+
for spreadsheet-formula injection; do not open output CSVs in untrusted
|
|
38
|
+
spreadsheet applications.
|
|
39
|
+
|
|
40
|
+
## Performance
|
|
41
|
+
|
|
42
|
+
- **Wall-clock speed** — Training 27 Box-Behnken runs × 28 days on CPU
|
|
43
|
+
takes approximately 2–5 minutes. GPU acceleration is available but
|
|
44
|
+
not CI-tested.
|
|
45
|
+
- **Scalability** — The SQL schema and SQLite backend are not intended for
|
|
46
|
+
multi-site or high-throughput deployments (> 100 concurrent reactors).
|