What it is
These are the code companions to the textbook An Introduction to Computational Systems Biology: Systems-Level Modelling of Cellular Networks (Karthik Raman, CRC Press, 2021). They let a reader run the methods the book describes rather than only read about them.
There are two repositories, maintained side by side:
- sysbio-code-companion is the current, open companion. It contains 58 worked examples covering every section of the book that can carry code, each implemented in both MATLAB and Python, kept parallel so the two versions produce the same numbers and figures. Its chapters are written in Quarto and published as a browsable website, and a continuous-integration workflow re-runs every example in both languages and checks the results against the book. Code is MIT-licensed; the text is CC BY 4.0.
- SysBioBook-codes is the original, smaller collection of companion scripts tied to individual chapters of the book. It predates the full bilingual companion and is where readers can also suggest new pieces of code.
Why it matters
- Learn by running, in either language. Every example exists in MATLAB and in Python, so a reader can follow whichever they know, or use one to learn the other.
- Covers the whole book. The examples span static network biology (graphs, network structure, motifs, protein-interaction and regulatory networks), dynamic modelling (ODEs, Michaelis-Menten kinetics, stochastic simulation, parameter estimation, Boolean networks), constraint-based modelling (FBA, FVA, pFBA, MoMA, ROOM, OptKnock, elementary flux modes, synthetic lethals, FSEOF) and advanced topics such as microbial communities and synthetic circuits.
- Trustworthy and reproducible. The companion’s results are checked automatically against the book and across the two languages, and the published figures come from the code exactly as it stands.
Using the code
For the full bilingual companion, clone sysbio-code-companion and follow its Getting started chapter. In short, for Python:
| |
In MATLAB (R2022a or newer, with the Optimization Toolbox), from the repository
folder run setup_companion; addpath tools; run_examples. The constraint-based
examples additionally need the COBRA Toolbox
(initCobraToolbox first).
How to cite
Systems Biology Book Code does not have a paper yet. If you use it, please cite the GitHub repository (github.com/RamanLab/sysbio-code-companion).