Skip to content

Commit

Permalink
Create run_snpsea.job
Browse files Browse the repository at this point in the history
This file specifies how to launch a SNPSEA job on the Sun Grid Engine (SGE) cluster at Broad Institute.
  • Loading branch information
slowkow authored Dec 18, 2019
1 parent e38c724 commit 569b1b7
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions run_snpsea.job
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/bash
# Run SNPSEA on the Sun Grid Engine (SGE) cluster at Broad Institute.
#
# Launch the job:
# qsub run_snpsea.job
#
# Monitor the progress:
# qstat

# Name the job
#$ -N snpsea

# Combine stdout and stderr
#$ -j y
#$ -o gridengine_output.out

# Use some memory
#$ -l h_vmem=8G

# Parallel with 6 cores
#$ -pe smp 6

# Run in current working directory
#$ -cwd

# Run time in hours minutes seconds
#$-l h_rt=00:30:00
#$-l s_rt=00:30:00

source /broad/software/scripts/useuse
reuse GSL
reuse GCC-5.2

# snpsea directory
dir=/home/unix/slowikow/work/snpsea

# Some expression files
FANTOM5=${dir}/data/FANTOM2014/FANTOM5.gct.gz
GeneAtlas=${dir}/data/GeneAtlas2004/GeneAtlas2004.gct.gz

snplist=${dir}/data/manuscript/Celiac_disease-Trynka2011-35_SNPs.gwas

expression=${GeneAtlas}

out=$(pwd)/output/$(basename ${expression})_$(basename ${snplist})
mkdir -p ${out}

${dir}/bin/snpsea \
--snps ${snplist} \
--gene-matrix ${expression} \
--gene-intervals ${dir}/data/NCBI/NCBIgenes2013.bed.gz \
--out ${out} \
--score total \
--snp-intervals ${dir}/data/TGP/TGP2011-r2_0.5-hapmap_3-EUR.bed.gz \
--null-snps ${dir}/data/Lango2010/Lango2010.txt.gz \
--slop 1e5 \
--threads 6 \
--null-snpsets 0 \
--min-observations 100 \
--max-iterations 1e7

0 comments on commit 569b1b7

Please sign in to comment.