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

E-Cell System version 4
=======================

[![Build Status](https://travis-ci.org/ecell/ecell4-base.svg?branch=develop)](https://travis-ci.org/ecell/ecell4-base)
[![CircleCI](https://circleci.com/gh/ecell/ecell4-base.svg?style=svg)](https://circleci.com/gh/ecell/ecell4-base)
[![Build status](https://ci.appveyor.com/api/projects/status/github/ecell/ecell4?svg=true)](https://ci.appveyor.com/project/kaizu/ecell4)
[![Documentation Status](https://readthedocs.org/projects/ecell4/badge/?version=latest)](http://ecell4.readthedocs.org/en/latest/?badge=latest)
[![PyPI](https://img.shields.io/pypi/v/ecell.svg)](https://pypi.python.org/pypi/ecell)
[![License: GPL v2](https://img.shields.io/badge/license-GPL%20v2-blue.svg)](https://github.com/ecell/ecell4-base/blob/master/licenses/LICENSE)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/87e076986e354b508f66af0a0ca3373d)](https://www.codacy.com/app/ecell/ecell4-base?utm_source=github.com&utm_medium=referral&utm_content=ecell/ecell4-base&utm_campaign=Badge_Grade)
[![Slack Status](https://img.shields.io/badge/chat-on%20slack-50baa6.svg)](https://ecell-project.herokuapp.com/)
<!---[![Slack Status](https://ecell-project.herokuapp.com/badge.svg)](https://ecell-project.herokuapp.com/)--->

What is E-Cell System?
----------------------

E-Cell System is a software platform for modeling, simulation and analysis of complex, heterogeneous and multi-scale systems like a cell.

E-Cell4 accepts multi-algorithms, multi-timescales and multi-spatial-representations as its central feature.

Features
--------

- Single particle simulations, i.e. [The enhanced Green's Function Reaction Dynamics (eGFRD) method](http://gfrd.org), [Spatiocyte](http://spatiocyte.org) (a lattice-based method), and the Reaction Brownian Dynamics (RBD) method
- Ordinary differential equations, Gillespie algorithm (the direct method), and spatial Gillespie algorithm (the next subvolume method)
- Rule-based modeling
- Python programmable

Try online
----------

You can try this package online from the following links:

<a href="https://notebooks.azure.com/import/gh/ecell/ecell4"><img src="https://notebooks.azure.com/launch.png" /></a>
[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/ecell/ecell4/master?filepath=ecell4-master%2Freadthedocs)

- Code fragments that depend on ffmpeg will not work with Azure Notebooks. If you use movie export, please try Binder instead.
- If you use Binder, please go down to `tutorials` or `examples`.
- If you use Azure Notebooks, please go down to `readthedocs/tutorials` or `readthedocs/examples`.

Installation
-------------

Please see [INSTALL.md](https://github.com/ecell/ecell4-base/blob/master/INSTALL.md).
Basically you can install E-Cell4 on any OS just by running
```
pip install ecell
```

### Note about Windows
In Windows environment, all commands should be executed from **Anaconda Prompt** (Not from Command Prompt or PowerShell. You can run Anaconda Prompt from Windows Start Menu).
This in particular solves the problem of failing to load the DLL used from E-Cell4.


Tutorials
----------

Please see [tutorials](https://github.com/ecell/ecell4-base/tree/master/readthedocs/tutorials).

Examples
---------

Please see [examples](https://github.com/ecell/ecell4-base/tree/master/readthedocs/examples).

Simple examples
---------------

Here are two extremely simple examples, See http://ecell4.readthedocs.org for more details on running E-Cell4.

```
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ecell4.core import *
>>> sp = Species("A.B.C")
>>> print sp.serial()
A.B.C
>>>
```

### Binding and unbinding reactions

```python
%matplotlib inline
from ecell4 import *

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

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

![png](./readthedocs/images/output_7_0.png)

### Diffusion on a spherical surface

```python
%matplotlib inline
from ecell4 import *

with species_attributes():
A | {'D': '1', 'location': 'M'}

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

viz.plot_trajectory(obs, interactive=False)
```

![png](./readthedocs/images/hairball.png)

Citation
========

If this package contributes to a project which leads to a scientific publication, I would appreciate a citation.

[![DOI](https://zenodo.org/badge/6348303.svg)](https://zenodo.org/badge/latestdoi/6348303)

Licensing terms
===============

This product is licensed under the terms of the [GNU General Public License v2](https://github.com/ecell/ecell4/blob/master/licenses/LICENSE),
See [NOTICE](https://github.com/ecell/ecell4/blob/master/licenses/NOTICE.txt) for the software included in this product.

- Copyright (c) 2010-, RIKEN

All rights reserved.


Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ecell4_base-1.0.dev2-cp37-cp37m-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.7mWindows x86-64

ecell4_base-1.0.dev2-cp37-cp37m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (19.5 MB view details)

Uploaded CPython 3.7mmacOS 10.10+ Intel (x86-64, i386)macOS 10.10+ x86-64macOS 10.13+ x86-64macOS 10.9+ Intel (x86-64, i386)macOS 10.9+ x86-64

ecell4_base-1.0.dev2-cp36-cp36m-manylinux1_x86_64.whl (47.5 MB view details)

Uploaded CPython 3.6m

File details

Details for the file ecell4_base-1.0.dev2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: ecell4_base-1.0.dev2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for ecell4_base-1.0.dev2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3a770b9b98fbbf9d57b0b5377e532c284c458c0fa476991d402582bd505723b4
MD5 f02d53287ba4df1ad364ff47bc36d36c
BLAKE2b-256 d88c2b9c66b580ee6ea45864cde44a79570ce38457c8ba45969438001abf3f70

See more details on using hashes here.

File details

Details for the file ecell4_base-1.0.dev2-cp37-cp37m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for ecell4_base-1.0.dev2-cp37-cp37m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 b01edb3365abb71e5bc2da667b702db16a9962a1a1d09671a59ecd10548ac71d
MD5 6914612db26eb26b6c8491b064048e67
BLAKE2b-256 d75424b02ed6a49e4e710320af11fe7c62e7af5cf989cdd1eac8585cd97a3dc3

See more details on using hashes here.

File details

Details for the file ecell4_base-1.0.dev2-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: ecell4_base-1.0.dev2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 47.5 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.7

File hashes

Hashes for ecell4_base-1.0.dev2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2b470516f345e086bc1893f0ad37c9adf1e7a22bf6dfe981666cb2553183e4b7
MD5 69f86d0424f9426ff3b00594730ebf40
BLAKE2b-256 571837a1ff4d41675517662b90e673147ffb1ede142758b38d0a01eb48114d78

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