Skip to content

Instantly share code, notes, and snippets.

@johnbowes
Created February 9, 2016 15:59
Show Gist options
  • Save johnbowes/b24bc48507a817450903 to your computer and use it in GitHub Desktop.
Save johnbowes/b24bc48507a817450903 to your computer and use it in GitHub Desktop.
SGE job array for submitting imputation interval jobs
#!/bin/bash
#$ -S /bin/bash
##
## Inherit user environment from the login node
#$ -V
##
## Use the current directory as the working directory for SGE output and determining paths to files
#$ -cwd
##
## Redirect std out/err
#$ -o /mnt/iusers01/jw01/mdeasjdb/scratch/impute_practice/std_out
#$ -e /mnt/iusers01/jw01/mdeasjdb/scratch/impute_practice/std_err
##
## Set array parameters.
#$ -t 1-551
INTERVAL_LIST='/mnt/iusers01/jw01/jw01-shared-resources/impute2/interval_list/hg19.impute2.interval.qc.list'
INTERVAL=$(sed -n -e "$SGE_TASK_ID p" $INTERVAL_LIST)
sh imputation/scripts/impute2_job.sh $INTERVAL
@OwenPhillips
Copy link

Hi, any chance you could share your hg19.impute2.interval.qc.list ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment