-
Notifications
You must be signed in to change notification settings - Fork 4
/
submit.sh
38 lines (30 loc) · 865 Bytes
/
submit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#Submit to the cluster, give it a unique name
#$ -S /bin/bash
#$ -cwd
#$ -V
#$ -l h_vmem=1.9G,h_rt=20:00:00,tmem=1.9G
#$ -pe smp 2
# join stdout and stderr output
#$ -j y
#$ -R y
# source activate /SAN/vyplab/vyplab_reference_genomes/conda_envs/splicing_env/
WORKFLOW="workflows/${1}.smk"
if [ "$2" != "" ]; then
RUN_NAME="$1"_"$2"
else
RUN_NAME=$1
fi
FOLDER=submissions/$(date +"%Y%m%d%H%M")
mkdir -p ${FOLDER}
cp config/config.yaml ${FOLDER}/${RUN_NAME}_config.yaml
snakemake -s ${WORKFLOW} \
--conda-prefix "/SAN/vyplab/vyplab_reference_genomes/conda_envs/" \
--use-conda \
--jobscript cluster_qsub.sh \
--cluster-config config/cluster.yaml \
--cluster-sync "qsub -l tmem={cluster.tmem},h_vmem={cluster.h_vmem},h_rt={cluster.h_rt} -o $FOLDER {cluster.submission_string}" \
-j 40 \
--nolock \
--rerun-incomplete \
--latency-wait 100 \