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.
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 Docker)
The easiest way to interact with Biosimulators_simularium on a standalone-basis is by using Docker.
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](https://www.smoldyn.org/download.html)
1. 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.
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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4167b696b9eb376623e07190a96b908b0fcc767f3f3fb2f6c4f780f02cfff78 |
|
MD5 | 17b71409e80d8339f9d4c3e459c33123 |
|
BLAKE2b-256 | 46aa79286c72c286dee75adc6f07623e5940f097780d8a0c9d95b27fbd818ca0 |
Hashes for biosimulators_simularium-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f39d2faa660afa9107e269c7403aaa1bde1d74e998a3087eea0b63d107d257 |
|
MD5 | 767dfb3ce3d1913e076b634201c8de02 |
|
BLAKE2b-256 | 6f748ec743a6a0028a80cf3dade0bfc3fbcfd20fa3b27ba53505c9ec38c7612a |