Modern DevOps for Systems Biologists
Department of Mathematics
Department of Systems Biology
Department of Physics and Astronomy
University of California, Irvine
A realization that dawned on me in March 2020.
Recent worldwide events have challenged the mathematical biology community.
An early grad student convinced me to use version control: github.com/allardjun/a-typical-paper.
Develop, operate, develop, operate, develop, operate.
Ship something that runs, then make it better.
Motor, chassis, wheels, frame, …
Or: first build a bicycle.
Bench phase, then coffee-shop phase.
The DevOps approach is to make small-batch, continuous, end-to-end improvements.
So we are going to need easy, seamless version control.
In the age of agentic coders, the skill of supervising needs to be learned at earlier career stages.
Advantage: bisection search for trouble. When something broke between here and there, git will help you halve the interval until you find it.
HEADGit is already built in to almost all the software you interact with.
How we (the Allard group) organize a project — three places:
The three locations share each other’s commit hashes, so every figure knows which commit it came from.
You can put large files in the git repo and reach for .gitignore instead — but the three-place split is what has held up.
Version control with git can be used smoothly for entire projects — analysis and write-ups, not just code. That is what lets you take a continuous-improvement “DevOps” approach, with the pros and cons above.
Ask what the action you just took actually was.
experimentfeatbugfixrefactorA commit should not include more than one of those. “Make your commits more atomic”.
Committing is the one opportunity to slow down and think. Avoid automatic commits – this is not the time.
Reviewer1MajorComment3)GitHub, and other providers: companies, university servers, …
The idea of repo ownership: taking is free, giving requires permission.
Advantages and disadvantages over automatic history, like Apple Time Machine or Google Docs.
There is much we did not discuss.
For your code to impact the scientific community, it should work across teams, computers, and dependency upgrades.
“But it worked on my machine.”
Same idea everywhere: make a local copy of your dependencies, activate it, and record it so someone else can rebuild it.
venv, memorialized in requirements.txt; someone else recreates it with pip install -r requirements.txt.uv.lock; someone else recreates it with uv run.conda create -n myproject, then conda activate myproject.environment.yml, written by conda env export; someone else recreates it with conda env create.$JULIA_DEPOT.Project.toml and Manifest.toml.The definition of the machine lives in a Dockerfile or in .devcontainer/devcontainer.json.
They are shorter than you might guess, because they layer on top of other people’s definitions:
Both the Our Story activity and Activity 2 take place in containers. You can read their .devcontainer/devcontainer.json to see exactly how little is in there.
QUICKSTART.mdThe standard classification of the kinds of documentation that good coders use:
One kind of how-to is QUICKSTART.md: instructions for someone else, starting from recreating the environment and ending at a generated output, e.g. a plot.
Keep QUICKSTART.md continuously up to date - know that someone else could run it without you — and you will find yourself at peace. It eliminates the “heroics” and “heist mode” at the end of a project.
There is much we did not discuss.