Vivarium notebooks
Setup
To run the code used in this work, you will need to install the following modules: vivarium-core, vivarium-cobra,
vivarium-bioscrape, and vivarium-multibody.
These modules can be installed locally by executing the following command in the root directory:
-
Clone the repository.
$ git clone https://github.com/vivarium-collective/vivarium-notebooks.git
Alternatively, you can simply extract an archive of the source code if you got the code in that format.
-
(recommended but optional) Setup a Python virtual environment.
-
Install Python dependencies
$ pip install -r requirements.txt
Note that you have to install numpy first because the
setup.pyscript of one of our dependencies requires it.
Notebooks
Notebooks can be found under notebooks/. These include Vivarium_interface_basics.ipynb and Multi-Paradigm-Composites.ipynb.
Python files
All Python files can be found under bioscrape_cobra/.
This includes Vivarium Composers for deterministic and stochastic versions of the Bioscrape/COBRA composite models
called bioscrape_cobra_deterministic.py and bioscrape_cobra_stochastic.py.
Simulation functions for running all of the examples in Multi-Paradigm-Composites.ipynb can be found in simulate.py.
This file also includes command-line run options for six different simulations with these names:
[deterministic, stochastic, deterministic_divide, stochastic_divide, deterministic_spatial, stochastic_spatial].
These can be called simply with:
python bioscrape_cobra/simulate --simulation_name
Parallelization can be triggered with the -p option:
python bioscrape_cobra/simulate --simulation_name -p
Saving the simulation output to a mongoDB database requires a running mongoDB instance, as described in the
Vivarium docuentation.
It can then be triggered with the -d option:
python bioscrape_cobra/simulate --simulation_name -d
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'
Metadata
Release files for vivarium-notebooks 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vivarium-notebooks-0.0.4.tar.gz | 26.6 kB | Without provenance | Details |
Release files / vivarium-notebooks-0.0.4.tar.gz
| Download URL | vivarium-notebooks-0.0.4.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c49a5de951f0628a70c53e232eedfd4f69de6fff36eb9385e7919359579243c5
|
|
BLAKE2b-256 checksum How to use checksums |
64fe6f965838cef2c64efb3b3fc30e8695f5a3d45e2d7dc388dcb5a6c4537c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
|
Security for vivarium-notebooks 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.