-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit.sbatch
35 lines (32 loc) · 1 KB
/
submit.sbatch
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
#!/bin/bash
#SBATCH --mail-type=ALL
#SBATCH [email protected]
#SBATCH --job-name meta_pipeline
#SBATCH --output %j_meta_pipeline.log
#SBATCH --partition cpuq
#SBATCH --cpus-per-task 1
#SBATCH --mem 8G
#SBATCH --time 48:00:00
source ~/.bashrc
module -s load singularity/3.8.5
# set some singularity directories depending on frontend/computing node/vm
case $(hostname) in
hnode*)
export SINGULARITY_TMPDIR=/tmp/
export SINGULARITY_BIND="/cm,/exchange,/processing_data,/project,/scratch,/center,/group,/facility,/ssu"
;;
cnode*|gnode*)
export SINGULARITY_TMPDIR=$TMPDIR
export SINGULARITY_BIND="/cm,/exchange,/processing_data,/project,/localscratch,/scratch,/center,/group,/facility,/ssu"
;;
lin-hds-*)
export SINGULARITY_TMPDIR=/tmp/
export SINGULARITY_BIND="/processing_data,/project,/center,/group,/facility,/ssu,/exchange"
;;
*)
export SINGULARITY_TMPDIR=/var/tmp/
;;
esac
# run the pipeline
conda activate /exchange/healthds/software/envs/snakemake
make run