2. Copy the zip file to your GenePattern server (if it is a different machine) and install it into a directory. For
example, add a directory,
matlab, under the GenePattern server directory and install the library files in
MCRInstaller.zip into that directory:
cd GenePatternServer
mkdir matlab
cd matlab
cp <path to mcrinstaller.zip>MCRInstaller.zip .
unzip MCRInstaller.zip
Create the Launcher Script
Create the launcher script that sets the environment variables and then calls the MATLAB application.
Windows
Create the launcher script as a batch file that sets the PATH variable for the environment and then calls the MATLAB
application. To do so, in a text editor, create the following
mllaunch.bat file:
set LIBDIR=%1
set PATH=%LIBDIR%;%PATH%
writeToFile %2 %3
Linux
Create the launcher script as an .sh file that sets the PATH and LD_LIBRARY_PATH variables for the environment,
ensures that the application is executable, and then calls the MATLAB application. To do so, in a text editor, create
the following
mllaunch.sh file:
#!/bin/csh
export MCRROOT=/home/username/GenePatternServer/matlab/v70
export
LD_LIBRARY_PATH=$1:$MCRROOT/runtime/glnx86:$MCRROOT/sys/os/glnx86:$MCRROOT/sys
/java/jre/glnx86/jre1.4.2/lib/i386/client:$MCRROOT/sys/java/jre/glnx86/jre1.4.
2/lib/i386:$MCRROOT/sys/opengl/lib/glnx86
export PATH=$1:$PATH
chmod a+x $1/testTwo
writeToFile $2 $3
Note that the MCR_ROOT variable is set to the v70 directory, which you created by unzipping
MCRInstaller.zip.
Mac OS X
Create the launcher script as an .sh file that sets the LD_LIBRARY_PATH and DYLD_LIBRARY_PATH variables for
the environment, ensures that the application is executable, and then calls the MATLAB application. To do so, in a
text editor, create the following
mllaunch.sh file:
#!/bin/sh
export MCR_ROOT=/Volumes/os9/gpserv
export LD_LIBRARY_PATH=$1:/Volumes/os9/matlab7.2/sys/os/mac:
/Volumes/os9/matlab7.2/bin/mac/
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
export PATH=$1:$PATH
chmod a+x $1/writeToFile
writeToFile $2 "$3"
Create the GenePattern Module
In the GenePattern Web Client, create a task that executes the launcher script.
Windows
● For the command line, enter the following:
sh <libdir>mllaunch.bat <libdir> <fname> <txt>
● Define two parameters:
15
Commenti su questo manuale