Skip to main content

A software platform for modeling, simulation and analysis of complex, heterogeneous and multi-scale systems like the cell. E-Cell has multi-algorithm, multi-timescale and multi-spatial-representation as its central feature.

Project description


This provides pure Python libraries (Miscellaneous utility functions) for E-Cell System version 4.

Try online

You can try this package online with Google Colaboratory. Please refer to the

Quick Start

Here are 3 extremely simple examples, See or for more details.

(base) root@5e5b25d2363d:~# python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ecell4_base.core import *
>>> sp = Species("A.B.C")
>>> sp.serial()

Binding and unbinding reactions

Run this with Jupyter Notebook

%matplotlib inline
from ecell4 import *

with reaction_rules():
    A + B == C | (0.01, 0.3)

run_simulation(10, {'A': 60, 'B': 60})


Diffusion on a spherical surface

Run this with Jupyter Notebook

%matplotlib inline
from ecell4_base.core import *
from ecell4 import *

with species_attributes():
    M | {'dimension': 2}
    A | {'D': 1.0, 'location': 'M'}

surface = Sphere(ones() * 0.5, 0.49).surface()
obs = FixedIntervalTrajectoryObserver(1e-4)
    0.4, y0={'A': 10}, structures={'M': surface},
    solver='spatiocyte', observers=obs, return_type=None)

viz.plot_trajectory(obs, interactive=False)



Please refer to

Project details

Download files

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

Files for ecell4, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size ecell4-1.1.1.tar.gz (109.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page