-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcluster_launch_job.sh
34 lines (26 loc) · 965 Bytes
/
cluster_launch_job.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
#!/bin/bash
#SBATCH --job-name=LocalTracking
#SBATCH -o %x-%j.out
#SBATCH -e %x-%j.err
#SBATCH [email protected]
#SBATCH --mail-type=ALL
#SBATCH --account=def-descotea
#SBATCH --nodes=4
#SBATCH --cpus-per-task=40
#SBATCH --mem=0
#SBATCH --time=48:00:00
module load httpproxy/1.0
export NXF_CLUSTER_SEED=$(shuf -i 0-16777216 -n 1)
# Nextflow modules
module load java/1.8
module load singularity/3.6
module load nextflow
WORK_DIR=$HOME/scratch/TractoInferno-LocalTracking
SINGULARITY_IMG=$HOME/projects/rrg-descotea/containers/tractoflow-scilpy-1.0.0.sif
TRACTOFLOW_DIR=$HOME/projects/rrg-descotea/TractoInferno/derivatives/TractoFlow/output/results
FLOW_DIR=$HOME/git/tractoinferno_tracking_flow
if [ ! -d "$WORK_DIR" ]; then
mkdir "$WORK_DIR"
fi
cd "${WORK_DIR}" || exit
srun nextflow -c "${FLOW_DIR}/nextflow.config" run "${FLOW_DIR}/main.nf" --input "${TRACTOFLOW_DIR}" -with-singularity "${SINGULARITY_IMG}" -resume -with-mpi