On this page
The Software We Built
We built software to lighten our own work, and then wanted to share it with everyone else.
We cannot watch everything inside a bioreactor in space, so we turned its important steps into simple modules and measured benchmarks under different values. The software is the platform that holds those modules. It started as a way to run our model, and grew into tools that other teams can use to design and reuse chemotaxis engineering.
- tools, one tab each
- 4
- example projects ship with Friskoli-CAD 1.0.1
- 14
- Python tests passed, plus 82 front-end tests
- 499
- languages in every interface: English and Simplified Chinese
- 2
| Tool | What it does | Tab |
|---|---|---|
| Friskoli-CAD | The workbench that carries our mathematical model: build a scene, connect mechanisms, run it, compare designs | Friskoli-CAD |
| The chemotaxis simulator | A pixel-art arena where cells swim, taste a sugar and tumble, built from the same signal chain; people play with it, and we used its engine as a test bench | Chemotaxis simulator |
| Friskoli AI Measurement | The AI vision model that reads the images from our microfluidic measurements, together with the workbench that makes its labelled training images. One result, built as one. Training and tests are on the Model page | AI measurement |
| The Space Material Atlas studio | Builds the Atlas; it came out of our collaborations, and we hand it on | Atlas studio |
The mathematics behind CAD is on the Model page. This page is about the software itself: why it exists, how it came to be, and, tab by tab, what each tool can do.
Why We Built It
From a demonstration to something others can use
Why would a project demonstrated with cellulose end up with a modelling tool that anyone can reconfigure?
Partly to help ourselves, and partly because of what we were told.
- Taking the load off ourselvesOur design had settled into one habit: feed inputs into a module, read its outputs, look for the setting that works best. It began with scanning promoter strengths, and software let us run the same model under many settings without redoing the work by hand.
- What we heardIn August 2026, at the APiC meet-up and the Synthetic Biology Innovation Contest, judges, researchers and other teams kept asking two things: how much of Friskoli is synthetic biology, and how well it moves to other systems. Many took it for a cellulose-degrading strain, because cellulose was our demonstration example.
- The wider questionCan changing how microbes move improve how effectively they meet a target substance? Other substrates, signals, chemotaxis mechanisms and reactors raise the same transport problem. The idea was general; our solution needed more checking and tuning before anyone else could rely on it.
A solution is an idea that another person can pick up and use.
Questions someone else would ask
If a researcher wanted to try our idea on their own system, what would they need? The software is our answer to these:
- If the target substrate changes, can they redefine where the chemical signal comes from?
- If their bacteria use a different chemotaxis pathway, can they swap the signal model?
- If their reactor has another shape, can they set the space again?
- If they care about contact more than clumping, can they choose another measure?
- If experiment and simulation disagree, can they trace which part of the model the gap comes from?
Projects planned together
| Space Material Atlas | Friskoli-CAD | |
|---|---|---|
| Connects | Knowledge and teams | Models and design |
| Explores | What different projects in space synthetic biology are doing | How computational tools can help researchers investigate related problems |
| What it took | Organising each team’s work into one atlas | Tidying our models, then module interfaces, numerics, architecture, tests and visualisation, so it took longer |
How We Built It, Honestly
The stages, and what each taught us
We are a team that needed software for a project, and we built it with our ideas, our enthusiasm and a lot of learning along the way. None of us is a professional software engineer.
- A model runner, and too much of itWe stacked many mechanisms into one model to see a long simulation, with positive feedback piling up as in the reactor we pictured. It showed what we imagined, with redundancy and many variables we did not need, and it helped our practical simulations less than we hoped. As first-time modellers and software builders, we began to simplify on purpose.
- One program, in modulesWe gathered all our modelling code into Friskoli-CAD, with modularity as the goal. You place objects in a space, and their positions become inputs. Borrowing the idea of a workflow, we split the model into modules, each with its own mathematical meaning, inputs and outputs, so the model is easier to explain and its relations easier to see.
- A release others can runVersion 1.0.1, the release behind our Model results, ships with 14 example projects; the ten PTS ones are generated from code, and a continuous-integration check compares them byte for byte. Version 1.0.2 adds the log-odds module (in the simulator tab) as an example and takes the four fine-grid center presets out of the preset menu, with every model equation and parameter unchanged.
Python tests on version 1.0.1
- 499 of 502 passed
- 3 of 502 skipped (need CUDA or an optional dependency)
What we learned
| Lesson | What happened |
|---|---|
| Modules keep fixes small | To change how the model behaves, we change only the part of the code that belongs to it. Early on we misread a PTS equation that had spread into the modules; later, correcting how the signal depends on the number of transporters (Model, 5.5), we changed one module and every PTS preset followed. |
| Variables, not fixed numbers | An input is a variable with a range, and the wet-lab number is the one point on it that matches reality. When reality differs, we adjust the parameter and see what changes. This let us keep working while the wet-lab results came late, a trade-off we chose while the experiments were blocked. |
What Friskoli-CAD Can Do
A system, and modules that plug into it
CAD here means computer-aided design of model setups and research scenarios: scenes, mechanisms, runs and comparisons.


| Step | What you do |
|---|---|
| Build a 3D scene | Place cell populations, sugar fields, sources, material objects and obstacles in a three-dimensional domain. |
| Compose mechanisms | Connect modules through ports that declare their type, unit, owner and timing. Read the equations and where each parameter came from. |
| Run it locally | Diffusion, uptake, PTS and MCP signalling, run-and-tumble movement, growth, division and observations run in one modular engine on your own computer. |
| Compare designs | Generate parameter candidates, run independent seeds, keep failed attempts, and compare the outcome with matched controls. |
| Look at the results | Replay saved frames in 3D, follow single cells, view field slices, metrics and trajectories. |
| Save and share | Portable .friskoli packages hold frozen inputs and results. Runs resume from checkpoints, a finished record opens in a static viewer, and export goes to OMEX and, with an optional dependency, a declared subset of SBOL. |

A system and its modules
| What it holds | Movement as the example | |
|---|---|---|
| The system | What every simulation needs: time stepping, state exchange, diffusion, uptake settlement, collisions and cell identities | Lets a cell change its position: up, down, left, right |
| A module | One specific biological mechanism, registered with the system | MCP chemotaxis decides how, turning the MCP signal into movement |
Every engine step runs in a fixed order:
- The frozen project and its module versions are compiled into an execution plan.
- The registered mechanism modules each make proposals.
- The system settles inventories and diffusion, shared by all modules.
- Geometry and movement constraints are applied.
- Cell identities and life cycle are resolved.
- Observations and checks run.
- The whole step is committed at once, or rolled back if any check fails.
- The records are kept for replay, Design comparison and evaluation.
Examples to start from
| Example | What it is for |
|---|---|
| Modular foundation | A short introduction to fields, uptake, reserves, movement and sources. Start here. |
| Material and lifecycle | Material conversion, enzyme providers, geometry and lineage. |
| MCP gradient and zero-gradient chip | A receptor-based chemotaxis benchmark with a matched control without a gradient. |
| PTS A and B contact assay | Eight-cell short checks, each with a matched no-feedback control, to check the software wiring. |
| PTS A maintained-gradient encounter | Sixty-four cells that start several runs from the material, to tell first contact, dwell and conversion apart over 60 s. It is the preset behind the main result on the Model page, ready to open and repeat. |
Add Your Own Mechanism
A manifest and two methods
A new mechanism enters the software as a versioned manifest and two Python methods. The solver, the browser and the task service usually stay as they are.
- Describe the contractA manifest,
module.json, names the module and its version, the population it works on, its parameters, inputs, outputs and state. Each port has a shape, a quantity and a unit, matching the ports it connects to. - Write two methods
initializesets the starting outputs, andproposereturns the outputs, the new state and any effects for one step. Inputs are read-only: a module returns new values and leaves everyone else’s state alone. - Register and runRegister the module in a local registry to run it in your own Python session, or build it into a package with file hashes and a licence, preview it, and install it into the browser service. The engine checks the ports and the stage, then commits the proposals with the rest of the step.
- Test itTest the governing equation by itself, then a complete graph, invalid parameters, continuing from a checkpoint and rollback. Add conservation and life-cycle checks where they apply.
A complete, runnable example lives in examples/modules/constant_bias: it supplies a constant motor bias to an existing population, showing registration and packaging in their simplest form. The module guide (docs/EXTENDING.md) walks through it step by step.
Get It, Use It, Tell Us
Install, limits and licences
You need Python 3.11 or later to run Friskoli-CAD, and a modern browser to use it.
git clone https://gitlab.igem.org/2026/software/szu-siat-china/friskoli-cad.git
cd friskoli-cad
python -m venv .venv
# Windows: .\.venv\Scripts\python -m pip install . then .\start.ps1
# Linux or macOS:
source .venv/bin/activate
python -m pip install .
python -m friskoli_cad.replay_service --port 8765- Open
http://127.0.0.1:8765, in English or Simplified Chinese; the installed application runs offline. - LoadModular foundation, and run its short default setting.
- LookAt Results, then Data, and replay the saved frames.
The supporting datasets, model checkpoints and reproducibility records of the AI vision model, with the synthetic dataset kept in the same record as one project, are on Zenodo at DOI: 10.5281/zenodo.23512589; the record has been published and accepted into the iGEM community.
Source Code
Prebuilt packages are listed under the repository’s Releases. The code is on GitLab and GitHub, and the dataset tool is on GitHub.
Good to know
- The model parameters are exploratory, waiting for calibration against wet-lab measurements. The software’s tests check the software; the benefit for the engineered bacteria is for experiments to show.
- The application runs on a computer with the local Python service. Layouts were checked in browser-size emulation for a desktop, a phone in both orientations and a tablet, and touch gestures are covered by logic tests; a physical touch device is still to try.
- A checkpoint continues with a compatible implementation and random-number environment, so keep the exact software version that made a run.
- Friskoli-CAD is released under the MIT licence. Third-party software and fonts are credited in the repository.
The next thing we would love is you: try it, and tell us what was unclear or broken.
Researchers, students and iGEM teams are all welcome as our first independent users. Reproducible problems are best reported through the issue tracker, with the version, the steps and a small input that we can share.
The Chemotaxis Simulator
Cells swim, taste a sugar, and run or tumble. Choose a strain, drop a source, and watch what the cells do with the gradient.
- SugarThe sugar around a cell sets how fast it takes the sugar in.
- ReceptorThe uptake sets the activity of its receptor, a small version of the PTS signal chain.
- MethylationMethylation pulls the activity back to baseline, so the cell responds to a change in sugar.
- TumbleThe activity sets how often the cell tumbles.
| What you can do | |
|---|---|
| Place and watch | Put wild-type or engineered cells in the arena, drop a small, medium or large source of attractant, and switch gravity on or off. A source releases its sugar until its reserve runs out. |
| Inspect a cell | Select a cell to see its signal chain live: the sugar around it, the transport flux, the phosphorylation of EI, the receptor activity and the methylation. |
| Read the model | The Model panel lists the equations and sets the parameters of the two strains side by side. |
It is a teaching tool, with values chosen for the pace of a game, so it shows the mechanism clearly. We also used its engine as a test bench: the Model page reports what makes cells gather in it, and which change in the engineered strain helps.
How it is built and checked
- It is a React and Vite application. The CI builds it into one self-contained HTML file with the fonts embedded, and publishes it beside this wiki. Its source is in the
friskoli-simulatorfolder of this repository. npm run verifyruns three checks: the English and Chinese texts must match key for key, an engine smoke test must pass, and the build must succeed. The smoke test checks, for example, that the engineered strain’s effective dissociation constant is about 12 times smaller than the wild type’s.- The layout was checked in browser size emulation, for a desktop, a tablet and a phone in both orientations. A physical touch device is still to try.
- Open it on its own page, or add
?lang=zhto the address for the Chinese interface.
A Module for Friskoli-CAD
The simulator and Friskoli-CAD run the same signal chain and write the receptor activity in two ways. We wrote the simulator’s way as a CAD module and tested it like PTS A and PTS B.
The module, szu_siat.pts_odds_methylation, changes one thing in signal.pts_methylation: the receptor activity follows a log-odds (two-state) law, in which the PTS term divides the odds of the active state instead of being subtracted from the activity. The ports, the EI relaxation, the CheY cycle and the motor readout stay the same, so it fits where the built-in module sits. It comes with its own presets: CAD’s contact-assay, encounter and thin-layer presets with this one change, each beside its matched control. The Model page compares the two chains link by link.
Largest dip of the activity after a flux step
New log-odds lawLinear law
50 molecule/s ×0.5
0.0780.156200 molecule/s ×0.5
0.1540.3331000 molecule/s ×0.6
0.1970.3334000 molecule/s ×0.6
0.2080.333Then the module ran through the same CAD studies as PTS A and PTS B, with the same seeds, durations and cases, beside CAD’s own module: the signal-chain response, the expression scan, the contact assay, the matched spatial controls with their audits, a start in the dark, the maintained-gradient encounter, and the thin layer. All ran to the end. Wherever CAD’s module shows an effect of the link from signal to movement, the simulator’s law shows the same effect in the same direction, at about a third to a half of the size. The Model page has the numbers and lists the studies still to run.
Friskoli AI Measurement
A microscopy video is easy to play and harder to turn into a measurement. Friskoli AI Measurement turns it into counts, tracks and motion, and keeps the files behind every number.
It is one result with two halves: a desktop workspace that runs our AI vision model on your own computer, and the workbench that makes the labelled images the model learns from. This tab walks through the workspace, screen by screen.

| Mode | When to use it | What it reads out |
|---|---|---|
| Individual Tracking | Single cells can be told apart | Finds each cell (YOLO26n-seg), follows it from frame to frame (ByteTrack), and can label its source |
| Collective Motion | Cells are too small or crowded to tell apart | How the image texture moves between frames (PIV or optical flow) |
Individual tracking: import, run, inspect
- Select the inputPick the input type, the starting index and a short frame count. The example here is two pages of a DeepBacs E. coli growth time-lapse, a real recording of cells that are not swimming freely.
- Choose the analysisModel R is the default for real microscopy. Tracking and the source classifier are separate switches, and the classifier starts off. It was off in this run.
- Confirm time and outputUse acquisition timestamps, never playback speed. Where timing is unknown it stays unknown, and then no speed is shown. Each run goes to a new folder, and nothing is overwritten.
- Inspect the resultSwitch between Original and Prediction overlay, step through the frames, and read the summary before sharing anything.
S.02 · From Input Selection to Individual ResultsPick a plot




Collective motion: look at the image field
- Load the original videoChoose the source declaration, browse to the recording and read its metadata. A declaration records what you tell the software; it is not a species prediction.
- Pick a short windowTwo to sixteen frames, and no more than five container seconds per run. Then the region of interest, and PIV32, PIV48 and Farneback as methods.
- Leave unknown calibration unknownThis recording has no known frame rate, pixel scale or gradient. The results stay in px/frame and carry three flags:
REAL_ECOLI_VIDEO,GRADIENT_STATUS_UNKNOWNandAPPARENT_IMAGE_MOTION_ONLY. - Inspect vectors and chartsSwitch between Original and Vector overlay, then open the direction, magnitude and time charts. The run shown used 16 frames, 15 adjacent pairs and the full 960×720 frame.


Export the record, not just the picture
| Output | Individual Tracking | Collective Motion |
|---|---|---|
| Objects or vectors | instances.csv, tracks.csv, mask records | motion_vectors.csv, field arrays and manifest |
| Motion summaries | frame_motion.csv, track_motion.csv | series_summary.csv, time_summary.csv, direction and magnitude distributions |
| Visual results | Annotated video, trajectories, speed plots | Vector-overlay videos, direction, magnitude and time plots |
| Provenance | Input and run manifests, parameters, source and model identities | Video and frame records, region, method and QC settings, calibration state |

[0, 0, 960, 720], unknown acquisition timing and scale, and no confirmed stationary reference. The 10 FPS setting is playback only, and arrows are drawn ×8. A separate export-and-read-back test is not part of this record.Where it stands
- It keeps an analysis and its evidence together. It cannot create evidence that was never acquired, and it does not show species identification, verified single-bacterium identity in swimming videos, active swimming, or chemotaxis in the RPM chip.
- Two first-time participants tried the configured application. Both needed help with the main workflows, and readability, abbreviations and units need clearer explanation. Follow-up usability testing is still to do.
- The Load E. coli input shortcut can point to a missing copy of the example video. Browse video selects the original, and the shortcut itself is still to fix.
- Camera preview and short recording are an input route. Real-time high-frame-rate inference and finished microscope-hardware integration are separate work.
| Tested on so far | Next |
|---|---|
| Public datasets | Video from our own chip |
| Synthetic data with known answers | Linking the readouts to arrival, contact and dwell |
| One ordinary microscopy video of E. coli, of unknown frame rate and scale | Open release of the weights, and some data on the hardware tools we made |
Source Code
It runs on a configured Windows computer. Keep the software folder together and double-click Start_Friskoli.cmd. It needs a compatible Python environment (tested with Python 3.8.20, PyTorch 2.2.0, Ultralytics 8.4.175 and OpenCV 4.12.0.88), is not a standalone program, and does not download weights for you. Code, installation steps and model descriptions are in the Friskoli AI repository on GitLab.
git clone https://gitlab.igem.org/2026/software/szu-siat-china/friskoli-ai.gitSoftware authors: Yujia Gao and Shangru Wu, Shenzhen University. Mingpeng Li recorded the laboratory microscopy video, and Xinran Li tested the software as a volunteer. The main software and its five formal checkpoints are AGPL-3.0 with upstream notices kept; DeepBacs images and our own media and data are CC BY 4.0 with their credits; the independent dataset workbench stays MIT. The DeepBacs example is the E. coli dataset of Christoph Spahn and Mike Heilemann.
Its Training Data: The Synthetic Dataset Workbench
Real microscope images are slow to label, and the labels are never perfect. So we make images in which every bacterium is already marked.
Friskoli Synthetic Dataset (friskoli-synth, version 1.0.0) prepares data for bacterial detection and later measurement. It runs on a CPU, and it focuses on data: training models and downloading weights happen elsewhere.
| Feature | What it does |
|---|---|
| Scenes and motion | Bacterial scenes with independently sampled capsule or ellipse sizes, short trajectories, random turning, drift and optional walls. |
| Microscope-like images | Bright or dark objects with optional halos, overlap, blur, focus changes, exposure averaging, noise and a configurable bit depth. |
| Labels you can inspect | Instance masks and object tables, with visible, ambiguous, invisible and out-of-view states, and protected regions that training must ignore. |
| Honest splits and exports | Training, validation and test splits that follow the source, so no source leaks across them. Export to COCO and YOLO detection formats. |
| Adapting to real video | Frames from real brightfield recordings are extracted at native resolution, and the renderer’s size, blur and halo settings can be fitted to them. |
| Delivery | Datasets are built in resumable stages, identified by hashes, audited, and packaged so that someone else can rebuild and verify them. |
The Space Material Atlas Studio
The Atlas draws the material flows of space biology across teams. The studio keeps it up to date.
The Atlas is a product of our collaborations, so it belongs with what we hand on: an interactive atlas of space systems and iGEM project routes, backed by a local content studio. Teams, shared materials and sources live in modular JSON files, and a standalone reader in English or Chinese is built from that source.

- Edit locallyFour studio workspaces for teams, shared content, imports and review, and releases. Drafts, revision checks and reviewed differences protect the content.
- Publish from sourcePython and Node build four static files. The public reader runs on its own; editing and proofreading stay in the studio.
- Keep each editionNamed snapshots keep content, sources, layouts and the engine identity, so that a past year’s wiki can be rebuilt.
Other teams can add their projects to the Atlas, or embed it in their own wiki. The Atlas page of our collaborations tells the story, and the embedding guide in this repository (docs/embedding.md) shows how.
The reader
Space Material Atlas
Explore the connected material flows of space synthetic biology, and find where Friskoli sits.
Open the Atlas
