Skip to main content

No project description provided

Project description

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.

vivarium-chemotaxis 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/..

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vivarium-chemotaxis-0.0.2.tar.gz (29.4 kB view details)

Uploaded Source

File details

Details for the file vivarium-chemotaxis-0.0.2.tar.gz.

File metadata

  • Download URL: vivarium-chemotaxis-0.0.2.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for vivarium-chemotaxis-0.0.2.tar.gz
Algorithm Hash digest
SHA256 aba95cdb1211150bf0d9800f58b0ff28587591d719a4a54c6a78049f94ad38b5
MD5 7e153f70306e50e04b073e2444bb87b7
BLAKE2b-256 03a8fd3efc399f34214dc13a99c83df52208a7dffe88fff4b3cc3f9f472c0543

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page