SPSW 2012 summer school exercise session

Revision as of 21:27, 12 June 2012 by Micha (talk | contribs)

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

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

  1. Download this file
  2. Uncompress it (called Octave3.6.1_gcc4.6.2_20120303.7z) to some directory (let's call it octave3.6.1)
  3. Open Windows explorer and type: “octave” (without quotes) in the search box.
  4. Find the file octave.exe (or just octave) and create a short-cut to it (right-click on it and “create shortcut”)
  5. Retype “octave shortcut” in the search box
  6. Find the file “Octave.exe – Shortcut” and move it to the desktop
  7. Double click on that shortcut. A window should appear and after a while some text should appear meaning that Octave is running in it.
  8. Type: "1+1" (without quotes) in the window and check if Octave knows the answer
  9. Type: "sombrero(24)". If a nice sombrero figures appears, it means you have a working Octave installation.

For MacOS

  1. Download this dmg file
  2. Open the dmg file
  3. Open the Extras folder and the gnuplot-4-4.3-acqua-i386.dmg file inside it
  4. Put Gnuplot into the application folder
  5. .Put Octave into the Applications folder.
  6. Launch the octave application. A terminal window should appear
  7. Type: "1+1" (without quotes) in the window and check if Octave knows the answer
  8. 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)

  1. Type: “sudo apt-get install octave” (without quotes) in the command line.
  2. Type: "octave" in a terminal
  3. Type: "1+1" (without quotes) in the window and check if Octave knows the answer
  4. 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

  1. Download L-Studio here
  2. Unzip L-Studio somewhere on your computer. The archives contains a L-Studio folder, so no need to add another one
  3. (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.
  4. Start L-Studio by double-cliking L-Studio\bin\Lstudio.exe, or the link created in step 3
  5. 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:

  1. Copy it somewhere
  2. Launch the browser application
  3. 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

  1. Download the source file
  2. 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"
  1. In the terminal, type: ./bin/postinstall.sh
  2. 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.

  1. Start a new shell
  2. 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

  1. Download the source file
  2. contact me ( barbier -at- ips.unibe.ch )