SPSW 2012 summer school exercise session
This page is about the exercise session of the SPSW 2012 summer school on Modelling Development in Plant Sciences that will take place June 21st in Mürren. The exercise session is organized by Pierre Barbier de Reuille and Micha Hersch
Contents
Summary
During the exercise session you will get introduced to Ordinary Differential Equations and how to solve them numerically using standard numerical software. We will then consider multicellular models and simulate pattern formation with Turing systems. For those already familiar with this, more advanced topics will be presented.
We will use Octave (or Matlab for those who have it) and Vlab for the practicals. In order to fully benefit form the exercise session, you should install this software on your laptop and bring it to the summer school.
Installing Octave
Those who already have matlab install don't need to install Octave
For Windows
- Download this file
- Uncompress it (called Octave3.6.1_gcc4.6.2_20120303.7z) to some directory (let's call it octave3.6.1)
- Open Windows explorer and type: “octave” (without quotes) in the search box.
- Find the file octave.exe (or just octave) and create a short-cut to it (right-click on it and “create shortcut”)
- Retype “octave shortcut” in the search box
- Find the file “Octave.exe – Shortcut” and move it to the desktop
- Double click on that shortcut. A window should appear and after a while some text should appear meaning that Octave is running in it.
- Type: "1+1" (without quotes) in the window and check if Octave knows the answer
- Type: "sombrero(24)". If a nice sombrero figures appears, it means you have a working Octave installation.
For MacOS
- Download this dmg file
- Open the dmg file
- Open the Extras folder and the gnuplot-4-4.3-acqua-i386.dmg file inside it
- Put Gnuplot into the application folder
- .Put Octave into the Applications folder.
- Launch the octave application. A terminal window should appear
- Type: "1+1" (without quotes) in the window and check if Octave knows the answer
- Type: "sombrero(24)". If a nice sombrero figures appears, it means you have a working Octave installation.
If you use Lion you may have the following error: dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib Referenced from: /usr/X11/lib/libfontconfig.1.dylib Reason: Incompatible library version: libfontconfig.1.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
The solution is the following:
Open /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot in a text editor. Use the editor search-and-replace feature to replace "DYLD_LIBRARY_PATH" with "DYLD_FALLBACK_LIBRARY_PATH". There are four instances that need to be replaced.
For Linux (ubuntu)
- Type: “sudo apt-get install octave” (without quotes) in the command line.
- Type: "octave" in a terminal
- Type: "1+1" (without quotes) in the window and check if Octave knows the answer
- Type: "sombrero(24)". If a nice sombrero figures appears, it means you have a working Octave installation.
Octave basics
Those not familiar with Octave are encouraged to get acquainted with it, for example by following this tutorial
Help
If you have trouble with the installation or with octave, please write an email to User:Micha (micha.hersch at unil.ch) and he will help you.
Installing VVE
For Windows
In windows, VVE is bundled into L-Studio
- Download L-Studio here
- Unzip L-Studio somewhere on your computer. The archives contains a L-Studio folder, so no need to add another one
- (Optional) Go into L-Studio\bin and create a symbolic link of Lstudio.exe somewhere convenient (like the desktop). You can do this with a drag&drop and pressing the Alt key when dropping.
- Start L-Studio by double-cliking L-Studio\bin\Lstudio.exe, or the link created in step 3
- You should see first a splash-screen, then a grey window entitled "L-Studio"
For Mac OS X
On Mac OS X, VVE is bundled into VLab. I will provide executable for Mac OS X 10.6, but it is known to not work on any other version of Mac OS X. For other versions, you will need to compile it yourself. If you have the compiled version:
- Copy it somewhere
- Launch the browser application
- It will ask you for a folder, which is the one where your models will be stored by default. Note that you will be able to specify this folder at every start.
If you need to compile VLab
- Download the source file
- contact me ( barbier -at- ips.unibe.ch )
For Linux
On Linux, VVE is bundled into VLab. Currently, you will have to contact me (barbier@ips.unibe.ch) to get the source code and compile it. But we should soon provide a compiled executable for Ubuntu 10.04 and 11.10.
If you have the compiled version: 1. Uncompress it somewhere
Go in the folder where you uncompressed it. You should have a series of folders such as "bin" and "share"
- In the terminal, type: ./bin/postinstall.sh
- Then, edit the file called .bashrc in your home directory (or created it if it doesn't exists, and if you are not using bash, edit the relevant configuration file) add this line in the end:
source /path/to/vlab/bin/sourceme.sh
Replacing "/path/to/vlab" with the absolute path of your vlab installation. You can obtain this if you drag&drop the folder from nautilus into your text editor.
- Start a new shell
- You should be able to launch the browser with "browser" in the terminal. It will ask you for a folder, which is the one where your models will be stored by default. Note that you will be able to specify this folder at every start.
If you need to compile VLab
- Download the source file
- contact me ( barbier -at- ips.unibe.ch )