Vivarium-chemotaxis
Vivarium-chemotaxis is a library for the multi-scale model of chemotaxis described in: Agmon, E.; Spangler, R.K. A Multi-Scale Approach to Modeling E. coli Chemotaxis. Entropy 2020, 22, 1101.
Supplementary materials can be found here.
Visit the Vivarium Core documentation to learn how to use the core Vivarium engine to create multi-scale computational biology models.
The Chemotaxis Master Composite, with processes for metabolism (MTB),
transport (TXP), transcription (TSC), translation (TRL), complexation (CXN), degradation (DEG), proton motive
force (PMF), flagella activity (FLG), and chemoreceptor activity (CHE).
This repository includes the processes for CHE, FLG, and PMF; the other processes are imported from
vivarium-cell.
Setup
Please refer to the Vivarium Core documentation for more complete instructions.
Make a python environment with Python 3 (pyenv is recommended) and install dependencies.
First install numpy:
$ pip install numpy
Then the remaining requirements:
$ pip install -r requirements.txt
Run individual processes and composites
Each process file under chemotaxis/processes can run on its own. Some of these have their own command line options.
For example, call the chemoreptor_cluster process with:
$ python chemotaxis/processes/chemoreptor_cluster.py
Composites with multiple integrated processes can also be executed on their own:
$ python chemotaxis/composites/chemotaxis_flagella.py
Experiments
All experiments from the paper are available in the file chemotaxis/experiments/paper_experiments.py. Run them from
the command line by specifying the corresponding figure number.
$ python chemotaxis/experiments/paper_experiments.py 7b
Tests
Tests are performed with pytest. Simply call the following to ensure everything is working properly:
$ pytest
To run only the fast tests:
$ pytest -m 'not slow'
Logging
To print out logging information, run a simulation with:
$ LOGLEVEL=INFO python chemotaxis/..
Metadata
Release files for vivarium-chemotaxis 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vivarium-chemotaxis-0.0.2.tar.gz | 29.4 kB | Details |
Release files / vivarium-chemotaxis-0.0.2.tar.gz
| Download URL | vivarium-chemotaxis-0.0.2.tar.gz |
|---|---|
| Size | 29.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aba95cdb1211150bf0d9800f58b0ff28587591d719a4a54c6a78049f94ad38b5
|
|
BLAKE2b-256 checksum How to use checksums |
03a8fd3efc399f34214dc13a99c83df52208a7dffe88fff4b3cc3f9f472c0543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.3
|