PottersWheel Documentation
- Overview
- Introduction
- Terminology
- Installation
- Update
- Videos
- First steps
- Configuration
- Function reference
- Important functions
- Fitting
- Glossary
- FAQ
Side bar
Installation
Part 1: Platform-specific steps
Microsoft® Windows®
-
Install Matlab 7.1 or higher (www.mathworks.com) on MS Windows 32 or 64 bit. PottersWheel is prepared for the 32 bit version of Matlab (independent on MS Windows being 32 or 64 bit). If you intend to use PottersWheel with Matlab 64 bit, please use the CVODES integrator.
-
Configuration of the mex compiler
Start MATLAB and type mex –setup. At the question prompt, type y to allow MATLAB to locate installed C compilers. With 32 bit Matlab 32 bit select the ‘lcc’ C compiler which is already included in Matlab. For 64 bit Matlab, you have to install a C compiler, e.g. the freely available Microsoft® Visual C++ 2008 Express Edition. A list of compatible compilers can be found here. -
Continue with the platform-independent steps.
Linux
Usually a C and Fortran compiler and the latex program are already installed.
- Install Matlab 7.1 or higher as a 32 or 64 bit version.
- Type 'mex -setup'. Select the gcc compiler or a compiler of your choice. A file 'mexopts.sh' will be created e.g. in /home/username/.matlab/R2008a/mexopts.sh. Verify that the correct gcc and Fortran compiler are selected.
Note: *.so files are runtime-libraries. Since PottersWheel compiles dynamically generated C files, also the developer-libraries (*.a) are required. When installing gcc/g++ make sure to select the developer version, often denoted by *-dev. - Continue with the platform-independent steps.
Macintosh®
Though the core of Mac OS X is a POSIX compliant operating system, usually no C or Fortran compiler is included. While a Fortran compiler is required by PottersWheel only to use the fast integration approach, a C compiler must be available. It is recommended to use the C compiler available together with XCode. Concerning Fortran, the free g95 can be used.
- Install Matlab 7.1 or higher as a 32 or 64 bit version
- Install XCode (or another C compiler)
- Type 'mex -setup'. Select the gcc compiler or a compiler of your choice. A file 'mexopts.sh' will be created e.g. in /home/username/.matlab/R2008a/mexopts.sh. Verify that the correct gcc and (optionally) Fortran compiler is selected.
- Optional: Install a Fortran compiler, e.g. the free g95
- Download and tar g95 from http://g95.sourceforge.net/
- Modify mexopts.sh by changing the mac section to read:
FC='/<dir>/g95-install/bin/powerpc-apple-darwin6.8-g95'
FFLAGS='-ffixed-form'
FLIBS='-L/<dir>/g95-install/lib/gcc-lib/powerpc-apple-darwin6.8/4.0.0/ -lf95'
FOPTIMFLAGS='-O'
FDEBUGFLAGS='-g'
where <dir> is where g95 was installed (see http://g95.sourceforge.net/howto.html#matlab)
- Continue with the platform-independent steps.
Part 2: Platform-independent steps
-
Download and unzip the PottersWheel toolbox e.g. into
C:\Program Files\PottersWheel\PottersWheelToolbox. -
Open Matlab and change the Matlab working directory by clicking the triple dot icon on the MATLAB toolbar. Map your working directory to the folder that you have extracted the PottersWheel zip file. Click OK to continue.
-
Type pwInstall at the Matlab command prompt and press the enter key to install PottersWheel. Essentially, the Matlab path is configured and the PottersWheel C MEX files are compiled for your system.
-
Now PottersWheel has been installed. It is recommended to create a project folder at a location of your choice using e.g. the Windows file explorer, for example C:\Modeling\Project01. Create subfolders Data, Models, WorkingFolder. Set the Matlab working folder to WorkingFolder:

-
Type pw to start PottersWheel. Follow the tutorials and the videos in the documentation section, e.g. First Steps.
- If PottersWheel is not working correctly, please check the installation by typing pwCheckSystem. If you cannot resolve the problem, send the output of pwCheckSystem and the error message to support at potterswheel de.
Part 3: Optional tools
-
SSm GO Toolbox
Go to http://www.iim.csic.es/~gingproc/ssmGO.html and download the scatter search for global optimization toolbox, which is required to use all ssm based optimization strategies in PottersWheel. Before installation, request the password to unzip the toolbox by emailing the authors as described on the SSm GO download page. - Latex
Install a Latex distribution like MikTex (http://www.miktex.org/) for Latex based pdf documentation. -
R
Install the statistics program R (www.r-project.org), if you do not have the splines toolbox from MATLAB and want to use splined driving inputs or spline based error bar estimation. -
Graphviz
Install Graphviz from http://www.graphviz.org. Graphviz is used for automatic species positioning in the PottersWheel Model Designer. -
SBML toolbox
Install the SBML toolbox from http://sbml.org/software/sbmltoolbox if you often import SBML models. PottersWheel is compatible with SBML toolbox versions 2 and 3. Follow the installation instructions given in the software documentation. Alternatively, use the PottersWheel web service to convert SBML files within your user account, since the SBML toolbox installation might not be straightforward on your system, especially for Matlab R2006b and below due to incompatible mex libraries. - CVODES
Install the Sundials Matlab toolbox in order to apply the CVODES integrator. Please follow the description given in pwInstallSundialsTB. -
Fast integration for Windows 32 bit users
In order to use fast numerical integration, platform-dependent external C and Fortran compiler are required. For MS Windows 32 bit, please download lcc-win32.exe from http://www.cs.virginia.edu/~lcc-win32/ and install it in C:\lcc if possible. Download fortran.exe from http://www.filewatcher.com/m/fortran.exe.453574.0.0.html and install it into the same folder C:\lcc. The folder C:\lcc\bin has to be added to the Windows PATH variable: Select Start > My Computer, then right click and select Properties > Advanced > Environmental Variables > System Variables > PATH. Here you will see a list of program folders separated by semicolon (;). Just append ';C:\lcc\bin'. (Matlab has to be restarted after changing the Windows path variable.)
Troubleshooting (Windows only)
If pwCheckSystem cannot find one of the installed external programs Graphviz, R or Latex, open a Windows command window (in Windows XP, select Start and then Run. Type cmd to call the DOS prompt).
- Type ‘dot –V’, ‘R’, or ‘latex –version’, respectively.
- If the program is not available, you must change the system PATH variable.
- To access the PATH variable, select Start > My Computer, then right click and select Properties > Advanced > Environmental Variables > System Variables > PATH. Here you will see a list of program folders separated by semicolon (;).
- Just append the missing program, e.g. ‘;C:\Program Files\R\R-2.2.0\bin’ for R, or ‘;C:\Program Files\ATT\Graphviz\bin’ for Graphviz.
- Close and reopen the Windows command window and check whether Windows finds the programs now.
- If Rterm, instead of R is available, go to the R installation folder and copy Rterm.exe to R.exe.
- Restart MATLAB after a change to the PATH variable is instituted.
www.potterswheel.de, March 23, 2010