forked from PrincetonUniversity/BrainPipe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sub_registration.sh
executable file
·46 lines (34 loc) · 1.36 KB
/
sub_registration.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
39
40
41
42
43
44
45
46
#!/bin/env bash
#
#SBATCH -n 1 # number of cores
#SBATCH -t 20 # time (minutes)
#SBATCH -o logs/outmain_registration.out # STDOUT
#SBATCH -e logs/outmain_registration.err # STDERR
echo "In the directory: `pwd` "
echo "As the user: `whoami` "
echo "on host: `hostname` "
cat /proc/$$/status | grep Cpus_allowed_list
cat /proc/meminfo
echo "Array Allocation Number: $SLURM_ARRAY_JOB_ID"
echo "Array Index: $SLURM_ARRAY_TASK_ID"
module load anacondapy/5.3.1
module load elastix/4.8
. activate lightsheet
export PATH="/usr/people/pnilsadmin/TeraStitcher-Qt4-standalone-1.10.11-Linux/bin:$PATH"
#set up dictionary and save
OUT0=$(sbatch --array=0 -p Brody slurm_files/step0.sh)
echo $OUT0
#process zplns, check that 1000 > zplns/slurmfactor
OUT1=$(sbatch -p Brody --dependency=afterany:${OUT0##* } --array=0-130 slurm_files/step1.sh)
echo $OUT1
#combine stacks into single tifffiles
OUT2=$(sbatch --dependency=afterany:${OUT1##* } -p Brody --array=0-2 slurm_files/step2.sh)
echo $OUT2
#run elastix
OUT3=$(sbatch --dependency=afterany:${OUT2##* } -p Brody --array=0-2 slurm_files/step3.sh)
echo $OUT3
# Usage notes:
# after = go once the specified job starts
# afterany = go if the specified job finishes, regardless of success
# afternotok = go if the specified job fails
# afterok = go if the specified job completes successfully