This project is about creating a tool for building and and running microkinetic models BasiCO interface to COPASI. It ie meant as a shortcut to avoid the tedious generation of COPASI input and replace it with the generation of a CSV file that defined the reaction network and the associated free energy barriers.
WARNING: the majority of COPASI's settings are left to default, but this may not be appropriate for your application.
The script in src/run_time_course.py:
- reads a reaction network, the reaction barriers (kcal/mol including any standard state correction), and the initial concentrations from CSV files. See under the examples folder for examples of these files.
- creates reactions in a new COPASI model
- computes and assigns forward/reverse rate constants with the Eyring-Polanyi equation
- runs a time-course simulation to produce a virtual experiment
- dysplay and/or saves results to
time_course_results.csvand a plot totime_course_plot.png
conda env create -f environment.yml
conda activate devel_cps
python src/run_time_course.pyUse the -h options to get the full list of available options.
python src/run_time_course.py \
-r reactions.csv \
-c initial_concentrations.csv
-t 298.15 \
-d 3600- A model using the data from ACS Catal. 2019, 9, 6, 4804–4809 can be run as follows:
cd examples/Jaraiz_2019
python ../../src/run_time_course.py -r reactions.csv -c concentrations.csv -d 70000 -t 273.15 --show-plot species_to_plot
Note that a comparison of the results obatined from COPASI's GUI and those obtained here is available in the Jupyter notebook.
- A model built used the data published at ACS Catal. 2025, 15, 6, 4739–4745 can be created and run like this:
cd examples/Bo_2025
python ../../src/run_time_course.py -r reactions.csv -c concentrations.csv -d 3000 -t 350 --show-plot species_to_plot
python -m unittest discover -s tests -p "test_*.py"Apache-2.0 (see LICENSE).