Python Interface for Spatial Stochastic Biochemical Simulations
Project description
SpatialPy is a Python 3 package for simulation of spatial deterministic/stochastic reaction-diffusion-advection problems embedded in Lagrangian reference frame particle based fluid dynamics domain
This package is intended to replace the PyURDME software https://github.com/pyurdme/pyurdme and will feature both a NSM solver for RDME simulation on static domains and a sSSA-SDPD particle based fluid dynamics solver as described in the publication "A hybrid smoothed dissipative particle dynamics (SDPD) spatial stochastic simulation algorithm (sSSA) for advection–diffusion–reaction problems" by Drawert, Jacob, Li, Yi, Petzold https://www.sciencedirect.com/science/article/pii/S0021999118307101
PLEASE REGISTER AS A USER, so that we can prove SpatialPy has many users when we seek funding to support development. SpatialPy is part of the StochSS project. |
Table of contents
Installation
SpatialPy can be installed on your computer using different methods, as described below.
Using PyPI
On Linux, macOS, and Windows operating systems, you should be able to install SpatialPy with pip
. Please review the official pip documentation for installation instructions and additional information.
Then, to install SpatialPy from the Python package repository, run the following command:
python3 -m pip install spatialpy --user --upgrade
Using the source code repository
As an alternative to getting it from PyPI, you can instruct pip
to install SpatialPy directly from the GitHub repository:
python3 -m pip install https://github.com/StochSS/SpatialPy/archive/main.zip --user --upgrade
As a final alternative, you can first use git
to clone a copy of the SpatialPy source tree from the GitHub repository to your local computer disk, and then install SpatialPy using that copy:
git clone https://github.com/StochSS/SpatialPy.git
cd SpatialPy
python3 -m pip install . --user --upgrade
Usage
SpatialPy provides simple object-oriented abstractions for defining a model of a biochemical system and simulating that model using efficient stochastic simulation algorithms. The basic steps to use SpatialPy are:
- Create a
SpatialPy.Model
containing molecular species, parameters, and reactions. - Invoke the model's
.run()
method.
The run()
method can be customized using keyword arguments to select different solvers, random seed, data return type and more. For more detailed examples on how to use SpatialPy, please see the Jupyter notebooks contained in the examples subdirectory.
Getting help
SpatialPy's online documentation provides more details about using the software. If you find any problem with SpatialPy or the documentation, please report it using the GitHub issue tracker for this repository. You can also contact Dr. Brian Drawert directly with questions and suggestions.
Contributing
We would be happy to receive your help and participation with enhancing SpatialPy! Please follow the guidelines described in CONTRIBUTING.md.
New developments happen primarily in the develop
branch. New releases are put in the main
branch.
Main Branch | Develop Branch |
---|---|
License
SpatialPy is licensed under the GNU General Public License version 3. Please see the file LICENSE for more information.
Authors and history
- Dr. Brian Drawert
- Dr. Kevin Sanft
- Sean Matthew
- Evie Hilton
- Bryan Rumsey
- Bruno Jacob
- Mason Kidwell
- Matthew Geiger
Acknowledgments
This work has been funded by National Institutes of Health (NIH) NIBIB Award No. 2R01EB014877-04A1.
SpatialPy uses numerous open-source packages, without which it would have been effectively impossible to develop this software with the resources we had. We want to acknowledge this debt. In alphabetical order, the packages are:
- Jupyter – web application for creating documents containing code, visualizations and narrative text
- MatplotLib – Python plotting library
- Plotly – Graphing library for making interactive, publication-quality graphs
- Numpy – the fundamental package for scientific computing with Python
- Scipy – Python-based ecosystem of open-source software for mathematics, science, and engineering
Finally, we are grateful for institutional resources made available by the University of North Carolina at Asheville, the University of California at Santa Barbara, Uppsala University, and the California Institute of Technology.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file spatialpy-1.0.3.tar.gz
.
File metadata
- Download URL: spatialpy-1.0.3.tar.gz
- Upload date:
- Size: 697.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ba4dfa018bede9e5ee1d8657898e54b85b7c117d815d47056824a864e603796 |
|
MD5 | 7f6ec0ab18d272e777687c67f61a3de4 |
|
BLAKE2b-256 | 4f98a9503e40599d7797e8df10460478e00dab560ceac504b94e48ddabdffee5 |
File details
Details for the file spatialpy-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: spatialpy-1.0.3-py3-none-any.whl
- Upload date:
- Size: 764.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86210d56ccf583155015b340f34458e31d9fbfc57e0954188ef011bf4645a56f |
|
MD5 | 80f3683c0a14d142a074b413ea8c3b02 |
|
BLAKE2b-256 | 23b0a342a4e30c2edc9d4c4aef8d4239002cd2aa1905a5795ef34964a59f7367 |