Skip to main content

This is the python wrapper for vcell modeling and simulation

Project description

pyvcell

Release Build status codecov Commit activity License

This is the python wrapper for vcell modeling and simulation for

  1. local scripting of spatial modeling, simulation, data analysis and visualization workflows using Virtual Cell technology
  2. 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

Open in Colab

Parameters example

Open in Colab

Geometry import example

Open in Colab

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvcell-0.3.3.tar.gz (186.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyvcell-0.3.3-py3-none-any.whl (436.6 kB view details)

Uploaded Python 3

File details

Details for the file pyvcell-0.3.3.tar.gz.

File metadata

  • Download URL: pyvcell-0.3.3.tar.gz
  • Upload date:
  • Size: 186.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyvcell-0.3.3.tar.gz
Algorithm Hash digest
SHA256 00186adbf5a86208ffc819e6d3d1e8da28657c0c245d13e0e8285a2b62840c51
MD5 fff75e3832e55c7d84a4b3da1fcf9245
BLAKE2b-256 15ef7c45b55c1f0cc8ea2d89822235bd4df792e6eb9ac1638f9b98ccb1a41215

See more details on using hashes here.

File details

Details for the file pyvcell-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: pyvcell-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 436.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyvcell-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97503869161e915c724434a52653f2dd78f3d1487d9d55cd93ed4f19ac0a2f37
MD5 7a9d93b1244e426ca328234590b011c6
BLAKE2b-256 ccde5438bfaea7930b17bf6ccd951a2dbcc3571cf2f4f93a3a9a7e1089bb400e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page