Skip to main content

A visualization method for displaying the structure of process bigraphs

Project description

Bigraph-viz

PyPI GitHub Pages

Bigraph-viz is an easy-to-use plotting tool for compositional bigraph schema, built on top of Graphviz.

Bigraph-viz example

Compositional Schemas and Milner Bigraphs

Compositional Bigraph Schemas (CBS) are based on a mathematical formalism introduced by Robin Milner in 2009 , and used in Vivarium. Bigraphs consist of networks with embeddable nodes that can be placed within other nodes and dynamically restructured. CBS reimagines the bigraph concept. Variables are contained within Stores (the circles in the figure), which can be embedded in a hierarchy, as shown by the dark edges. Instead of Milner's hyperedges, CBS employs Processes (the rectangles) which connect via wires (dashed edges) to shared variables within the Stores. Processes and Stores form a type of bipartite graph, as illustrated by the dashed edges.

In Vivarium, the CBS is used to structure a modular multiscale simulation. Bigraph-viz is part of an effort to standardize this structure, so that it can be used as an exchange format for multiscale simulations.

Getting Started

Dependencies

Before installing bigraph-viz, make sure you have Graphviz.

Ubuntu/Debian

sudo apt-get install -y graphviz

macOS

brew install graphviz

Windows

Download and install the Graphviz installer from the official website. Make sure to add the Graphviz bin directory to your system's PATH.

Installation

Once Graphviz is installed, you can install bigraph-viz using pip:

pip install bigraph-viz

Notebooks

All notebooks are tested in CI and published as HTML to GitHub Pages: Browse all notebooks

Notebook Description
Basics Tutorial covering stores, processes, wires, and composites
Basics2 Extended basics with cell structure example
Basics Pres Presentation-style examples
Bigraph Example Transcription/translation and multicellular models
Cell Atlas Kidney glomerulus model
Ecoli Whole-cell E. coli wiring diagram
Ecoli hybrid E. coli hybrid framework
Format Styling options for bigraph figures
Gut Microbiome Multi-region gut model with cdFBA-CRM
Ccb CCB model (source only)

License

Bigraph-viz is open-source software released under the Apache 2 License.

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

bigraph_viz-1.0.4.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

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

bigraph_viz-1.0.4-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file bigraph_viz-1.0.4.tar.gz.

File metadata

  • Download URL: bigraph_viz-1.0.4.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bigraph_viz-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ae44aba20258daa89b4447d1b7039908c67cf776a36e614e281e75a20bac279e
MD5 e1a5925eb50356c2623b2b9709f391ac
BLAKE2b-256 2a84f1782efe9a169f1060f081c7b11f4bf31d4e5c26fdf3f135253a288b1ae9

See more details on using hashes here.

File details

Details for the file bigraph_viz-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: bigraph_viz-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bigraph_viz-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 26aeafbbb8a52919a04e094cc11bacb8a7018e91b1a52d84b8430eeb20ad2092
MD5 8da6e10f66c9c8903e01262c8d9375bd
BLAKE2b-256 40e2d3e13afaa5863279d458e7255be17b3f2c81da6b000c21453b78216f7915

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