PrepareJob

From BIOcrunch
(Difference between revisions)
Jump to: navigation, search
(Beast2)
(Raxml)
Line 102: Line 102:
 
#$ -A Mustermann
 
#$ -A Mustermann
 
#
 
#
## Send mail to these users
+
## Send mail to users
 
#$ -M max@mustermann.de
 
#$ -M max@mustermann.de
 
#
 
#

Revision as of 15:39, 4 July 2015

To run a job on the cluster, prepare the data files on your local machine, then copy it to the cluster. Beside the data files, you will need a job file with the settings as outlined below.

Name your job file and your data files in a consistent way:

  • Job file: myjobfile.sh
  • User: Mustermann
  • Email: max@mustermann.de

The job files are written in a sort of "shell" command syntax that is common on Linux systems.

Lines starting with "##" or "# " are comment lines to document some stuff for better reading afterwards.

Lines starting with "#$" are commands for the job scheduler "qsub".

Lines starting not with "#" are commands to execute programs in this job.

Contents

Examples

You may use one of the following examples as template for you job. Make sure to change your username, mailadress, filenames and eventually program option in the coloured lines. The last line always contains calling the software you want to run, including all the parameters you wish. Instead of giving the number of processors give the varibale $NSLOTS, you will give him the number of CPUs when starting the job.

Beast

#!/bin/csh
#
## Username (Which account to be charged cpu time)
#$ -A Mustermann
#
## Send mail to users
#$ -M max@mustermann.de
#
## Mail at beginning/end/on suspension
#$ -m bes
#
## Export these environmental variables
#$ -v PVM_ROOT,LD_LIBRARY_PATH=/share/apps/beaglenew
#
## The job is located in the current working directory.
#$ -cwd
## Filenames for output and error log files
#$ -o myjobfile.out
#$ -e myjobfile.err
#
env >./xenv
/share/apps/beast180/bin/beast -beagle -beagle_CPU -beagle_instances $NSLOTS -overwrite ./myjobfile.xml > ./myjobfile.out

Beast2

#!/bin/csh
#
## Username (Which account to be charged cpu time)
#$ -A Mustermann
#
## Send mail to users
#$ -M max@mustermann.de
#
## Mail at beginning/end/on suspension
#$ -m bes
#
## Export these environmental variables
#$ -v PVM_ROOT,LD_LIBRARY_PATH=/share/apps/beaglenew
#
## The job is located in the current working directory.
#$ -cwd
## Filenames for output and error log files
#$ -o myjobfile.out
#$ -e myjobfile.err
#
env >./xenv
/share/apps/beast210/bin/beast -beagle -beagle_CPU -beagle_instances $NSLOTS -overwrite ./myjobfile.xml > ./myjobfile.out

Mr Bayes

#!/bin/csh
#
## Username (Which account to be charged cpu time)
#$ -A Mustermann
#
## Send mail to these users
#$ -M max@mustermann.de
#
## Mail at beginning/end/on suspension
#$ -m bes
#
## Export these environmental variables
#$ -v PVM_ROOT,LD_LIBRARY_PATH=/share/apps/beaglenew
#
## The job is located in the current working directory
#$ -cwd
## Filenames for output and error log files
#$ -o myjobfile.out
#$ -e myjobfile.err
#
env >./xenv
mpirun -np $NSLOTS /share/apps/mrbayes/mb322 ./beispiel.nex </dev/null

Raxml

#!/bin/csh
#
## Username (Which account to be charged cpu time)
#$ -A Mustermann
#
## Send mail to users
#$ -M max@mustermann.de
#
## Mail at beginning/end/on suspension
#$ -m bes
#
## Export these environmental variables
#$ -v PVM_ROOT
#
## The job is located in the current working directory.
#$ -cwd
## Filenames for output and error log files
#$ -o myjobfile.out
#$ -e myjobfile.err
#
env >./xenv
mpirun -np $NSLOTS /share/apps/raxml/raxmlHPC-MPI-SSE3.icc -s sequencefile.phy -n outputfile.phy -m PROTGAMMAWAG
Personal tools
Namespaces

Variants
Actions
Navigation
Tools