Giter Club home page Giter Club logo

ecell4's Introduction

ecell4

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 https://github.com/ecell/ecell4_docs

Quick Start

Here are 3 extremely simple examples, See https://github.com/ecell/ecell4_docs or http://ecell4.readthedocs.org 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()
'A.B.C'
>>>

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})

png

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)
run_simulation(
    0.4, y0={'A': 10}, structures={'M': surface},
    solver='spatiocyte', observers=obs, return_type=None)

viz.plot_trajectory(obs, interactive=False)

png

Installation

E-Cell4 does not support Python2.

E-Cell4 does not support pip install on Windows and Mac.

Windows

Install Miniconda with Python 3.7 for 64-bit (from https://docs.conda.io/en/latest/miniconda.html) and run this command on Anaconda Prompt.

conda install -c ecell ecell4

Mac, Linux

Install Miniconda with Python 3.7 for 64-bit (from https://docs.conda.io/en/latest/miniconda.html) and run these commands on your Terminal app.

conda config --add channels conda-forge
conda install -c ecell ecell4

Linux environment where you can NOT use conda

python3 -m pip install ecell4

Tutorials, Examples, and API (Static Site)

https://ecell4.readthedocs.io/en/latest/

ecell4's People

Contributors

kaizu avatar kozo2 avatar 0ncorhynchus avatar domitry avatar yukisakamoto avatar

Watchers

James Cloos avatar Ahamarshan JN avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.