This is the python wrapper for vcell modeling and simulation
Project description
pyvcell
This is the python wrapper for vcell modeling and simulation for
- local scripting of spatial modeling, simulation, data analysis and visualization workflows using Virtual Cell technology
- access to Virtual Cell remote APIs - with public access or as an authenticated Virtual Cell user.
Local simulation, analysis and visualization with pyvcell
download or create new spatial models
- load/save VCML (Virtual Cell’s native format - import/export to VCell UI)
- load/save SBML (Systems Biology Markup Language)
- load from Antimony (friendly textual language for SBML)
- create/edit any VCML object (e.g. species, model, geometry) programmatically
local editing with Python objects
- edit parameters. add/remove/edit species, compartments, reactions, initial conditions, diffusion coefficients
- create/edit geometry objects, create/edit vcell applications and simulations
run local simulations
- run local spatial simulations (for reactions, diffusion, and advection) stored in local workspace.
analyze local simulation result:
- Time-series summary statistics available as NumPy arrays.
- spatiotemporal arrays stored as Zarr datastores and available as NumPy arrays.
- 3D mesh data using VTK unstructured grids, analyzed with VTK
local visualization
- built-in plotting and 3D visualization via Matplotlib and VTK/PyVista
- make your own plots or 3D renderings.
installation
The easiest way to install pyvcell is by using the Python Package Index and pip. We highly recommend setting up a virtual environment for dependency management. Run the following command to install pyvcell from PyPI
pip install pyvcell
Usage
import pyvcell.vcml as vc
biomodel = vc.load_vcml_file('path/to/your/model.vcml')
results = vc.simulate(biomodel, "sim1")
results.plotter.plot_concentrations()
Documentation
Full documentation is available at https://virtualcell.github.io/pyvcell/
Examples:
Antimony example
Parameters example
Geometry import example
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvcell-0.2.0.tar.gz.
File metadata
- Download URL: pyvcell-0.2.0.tar.gz
- Upload date:
- Size: 176.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.11.15 Linux/6.17.0-1008-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6320f74d55d6bf6efe6e84e1565735bdd8cb3327d5d1e9e74497b525f5767954
|
|
| MD5 |
30671802dbea04eb1a8086f4348c5e94
|
|
| BLAKE2b-256 |
53109290f7f2e24060dd5b62567b6aa0129247e0d9d0dfba80b4966f96cf6780
|
File details
Details for the file pyvcell-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyvcell-0.2.0-py3-none-any.whl
- Upload date:
- Size: 422.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.11.15 Linux/6.17.0-1008-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7b905e077da51022ee4e9bc095eee015cb754be0beef1a4eb001ddb1d64f2cd
|
|
| MD5 |
e471cfc6ed83469da0b9b52c7f8f3dbc
|
|
| BLAKE2b-256 |
fda3b7c96a6653c4fe2fe8c0ffecc42b7dcfe15f81d00319b0f1ac220f3ff1df
|