Skip to content

Molns/ecell4

 
 

Repository files navigation

E-Cell System version 4

What is E-Cell System?

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

Installing E-Cell (Windows)

Requirements

Please add C:\Python27\Scripts and C:\Program Files (x86)\HDF_Group\HDF5\1.8.14\bin to your PATH enviromental variable.

And run following command with command prompt.

:: Please download ecell4-4.0.0_beta1-cp27-none-win32.whl from release page
pip install ecell4-4.0.0_beta1-cp27-none-win32.whl

IPython notebook

We recommend you run E-Cell4 models from IPython notebook. Below is IPython notebook(and matplotlib) installation for Windows.

pip install python-dateutil
pip install pyparsing
pip install "ipython[notebook]"

next, download matplotlib and numpy from

https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.4.2/windows/matplotlib-1.4.2-cp27-none-win32.whl
http://sourceforge.net/projects/numpy/files/NumPy/1.9.1/numpy-1.9.1-win32-superpack-python2.7.exe/download

and install these exe files.

Installing E-Cell (Mac OS X)

Requirements

  • homebrew
  • hdf5
  • pip
# here we use homebrew to install hdf5, please install hdf5 to /usr/local/lib
brew install homebrew/science/hdf5 --enable-cxx
brew install wget
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
# please download whl file from release page(https://github.com/ecell/ecell4/releases)
pip install ecell4-4.0.0_beta1-cp27-none-macosx_10_10_intel.whl --user
# if you are using Mountain Lion
# pip install ecell4-4.0.0b1-cp27-none-macosx_10_9_intel.whl --user

IPython notebook

We recommend you run E-Cell4 models from IPython notebook. Below is IPython notebook(and matplotlib) installation for Mac.

pip install matplotlib --user
pip install "ipython[notebook]" --user
cd ~/Library/Python/2.7/ecell4ipynb
PYTHONPATH=~/Library/Python/2.7/lib/python/site-packages/ ipython notebook

now you can see IPython notebooks, please open index.ipynb to see E-Cell4 models.

Building and installing E-Cell (Ubuntu 14.04)

# dependent packages
$ sudo apt-get install cmake libgsl0-dev libboost-dev libboost-regex-dev libhdf5-dev libatlas-base-dev
$ sudo apt-get instal python-dev cython

$ wget https://github.com/ecell/ecell4/archive/master.zip   
$ unzip master.zip
$ cd ecell4-master
$ PREFIX=/path/to PYTHONPATH=/path/to/lib/python2.7/site-packages ./install.sh

How to use?

$ LD_LIBRARY_PATH=/pat/to/lib PYTHONPATH=/path/to/lib/python2.7/site-packages python
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("B.A.C")
>>> print sp.serial()
A.B.C
>>> 

Running E-Cell4 with IPython notebook (by docker)

If you use following docker images, you don't need to do OS dependent installation.
We have already installed E-Cell4 to docker environment.

boot2docker (Windows or Mac)

The latest version of boot2docker sets up a host only network adaptor which provides access to the container's ports.

$ boot2docker ssh
######## in boot2docker
docker@boot2docker:~$ docker pull ecell/ecell4:develop
docker@boot2docker:~$ docker run --rm -i -t -p 8888:8888 ecell/ecell4:develop

Then you should be able to access the E-Cell4 IPython notebook server using the IP address reported to you using:

$ boot2docker ip

Typically, it is 192.168.59.103, so please open 192.168.59.103:8888 with your favorite browser. (But it could get changed by Virtualbox's DHCP implementation.)

Docker (Linux)

$ sudo docker pull ecell4/ecell4:develop
$ sudo docker run --rm -i -t -p 8888:8888 ecell/ecell4:develop

Open localhost:8888 with your favorite browser.

Build Status

IPython notebooks (tutorials) for E-Cell4

Please see http://nbviewer.ipython.org/github/ecell/ecell4/blob/develop/ipynb/index.ipynb

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 46.0%
  • Mathematica 32.3%
  • Python 19.6%
  • EmberScript 0.7%
  • CMake 0.4%
  • TeX 0.4%
  • Other 0.6%