#!/bin/bash #These are optional flags but you probably want them in all jobs #$ -S /bin/bash #$ -j y # # Submit chainsaw job array to SGE cluster # # usage: # qsub -t 1-16933 chainsaw_submit.ucl_cs.sh # # Assumes index file has been split into chunks e.g. "zipindex.00000001": # split -a 8 -d 1 -l 1000 data/zipindex zipindex. # if [[ "$SGE_TASK_ID" == "undefined" ]]; then echo "Need to specify the job array details in the qsub command" echo "example: qsub -t 1-16933:1