« Changing user passwords on cluster | Main | Visual angles for goggles in Allegra room »

Using Sun Grid Engine

Step 1: Setting up the Environment
To use Sun Grid Engine you should add the following to your .tcshrc file in your home directory:
set path = ( /Volumes/local/bin $path )

Step 2: Submitting a job
To submit a script to the cluster type
qsub <scriptname>

Step 2a: Submitting an array job

qsub -t <start value>-<end value>:<increment> <scriptname>
e.g. qsub -t 2-10:2 array_script.sh This goes from 2-10 counting by twos (i.e. 2, 4, 6, 8, 10)

The script should use the $SGE_TASK_ID variable to find out which job number it is, in order to access the correct data file or name the output correctly or whatever.