A Python tool for converting Biosimulators spatial simulation outputs into a Simularium-compliant format.
Project description
Biosimulators_simularium
Converting Biosimulators spatial simulation outputs into a Simularium-compliant format. This tooling acts as a
superset of Biosimulators_utils
.
PLEASE NOTE: The command-line arguments for the standalone version of this program are as follows:
-a (`str`): archive_rootpath => path to the root of your COMBINE/OMEX archive relative to where you currently are.
-s (`str`): simularium_fp => desired path where to store the newly generated filepath. Will default to your OMEX archive.
Getting Started with Python(PyPI) (Recommended)
The easiest way to interact with Biosimulators_simularium
is via the Python Package Index and a
virtual environment.
We recommend installing and using Conda:
After you have created the environment...
conda create -n biosimularium python=3.10
conda activate biosimularium
pip install biosimulators-simularium
To verify successfull platform and installation...
python3
import biosimulators_simularium as biosimularium
biosimularium.__version__
should display the most recent version with no errors.
Getting Started with Docker (Experimental)
You may also interact with Biosimulators_simularium on a standalone-basis by using Docker. Please note: this feature is experimental and may not be functional depending on the current development:
cd {WHERE YOU ARE GOING TO WORK}
git clone https://github.com/biosimulators/biosimulators-simularium.git
cd Biosimulators_simularium
- Choose a tag-name for the image(we use a generic name here):
docker build -t biosimularium .
Say we want to add a .simularium
file to our COMBINE archive based on a Smoldyn model's output. We have this model file in an archive with the
rootpath of ./biosimulators_simularium/test_files/archives/minE_Andrews_052023
and save it to ./biosimulators_simularium/test_files/archives/minE_Andrews_052023
(the same archive):
docker run biosimularium \
-a './biosimulators_simularium/test_files/archives/minE_Andrews_052023' \
-s './biosimulators_simularium/test_files/archives/minE_Andrews_052023'
Getting Started (Building from Source)
BEFORE STARTING: This application uses Smoldyn to generate simulation data. Please install Smoldyn into your local environment. Instructions below use the Mac silicon install and Python 3.10. More information on installing Smoldyn can be found here
-
Set up a virtual environment. We recommend using Conda:
conda create -n biosimularium python=3.10
-
conda activate biosimularium
-
cd {REPO DESTINATION}
-
git clone https://github.com/biosimulators/biosimulators-simularium.git
-
cd Biosimulators_simularium
-
pip install -e .
-
FOR MAC ONLY: Download Smoldyn for your Mac (Silicon or Intel): https://www.smoldyn.org/download.html
cd /path/to/your/download/of/smoldyn-2.72-mac
sudo -H ./install.sh
-
OTHERWISE:
pip install smoldyn
A Jupyter Notebook will soon be available which is based off of the simulariumio tutorial series. This will give users the ability to have a tool that quickly generates simularium files with the click of a button based on a valid COMBINE/OMEX archive.
We welcome any and all collaborations and/or raising of issues:
To report an issue, please visit our Github issues page.
To contact us, please send an email to apatrie@uchc.edu or info@biosimulators.org
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
Hashes for biosimulators-simularium-0.2.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25fed24c1272e28b88e8017179c10b791767e8c78ff70d0ae4ae156156f8877f |
|
MD5 | 0c4863bba19ab976718ef3f1ca967014 |
|
BLAKE2b-256 | faf6f4beb50462160c625195ef6c7eb2b6e0691dd803fc2224c3b165be6d9504 |
Hashes for biosimulators_simularium-0.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbec391a29760d1b35bb9d0be5bfacc9e42ef3fb86e44a1f7fc04ad5eb552c25 |
|
MD5 | 73dab89e088f1907c31093924c953b12 |
|
BLAKE2b-256 | b8ba3831e56cd19efcf705e1a14925628f665cb7582a758c826df3aec4db66e4 |