#!/bin/bash # # Submit chainsaw job array to SGE cluster # # usage: # qsub -t 1-16933 chainsaw_submit.ucl_cs.sh # # Each job will expect to find an equivalent file containing a list of zipfiles, # created by: # # split --suffix-length=8 --numeric-suffixes=1 --lines=1000 ../all_proteome_zipfiles.txt zipfiles. # log () { echo "[$(date)] ${1:-}" } if [[ "$SGE_TASK_ID" == "undefined" ]]; then log "Need to specify the job array details in the qsub command" log "example: qsub -t 1-16933:1