forked from PrincetonUniversity/BrainPipe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlightsheet_pipeline_stitching_no_reg.sh
32 lines (26 loc) · 1.41 KB
/
lightsheet_pipeline_stitching_no_reg.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
#!/bin/env bash
# BASH script to submit the light sheet pipeline from lightserv
output_directory=$1
n_array_jobs_step1=$2
n_channels_total=$3
# figure out variables depending on input
max_array_job_step1=`echo ${n_array_jobs_step1} | awk '{print $1-1}'`
max_array_job_step2=`echo ${n_channels_total} | awk '{print $1-1}'`
#set up dictionary and save
# OUT0=$(sbatch --parsable --export=ALL,output_directory=${output_directory} --array=0 slurm_files/step0.sh)
# echo $OUT0
# # process zplns
# OUT1=$(sbatch --parsable --dependency=afterok:${OUT0##* } --export=ALL,output_directory=${output_directory} --array=0-${max_array_job_step1} slurm_files/step1_terastitcher.sh)
# echo $OUT1
# OUT1=$(sbatch --parsable --export=ALL,output_directory=${output_directory} --array=0-${max_array_job_step1} slurm_files/step1_terastitcher.sh)
# echo $OUT1
#combine stacks into single tifffiles
# OUT2=$(sbatch --parsable --dependency=afterok:${OUT1##* } --export=ALL,output_directory=${output_directory} --array=0-${max_array_job_step2} slurm_files/step2.sh)
# echo $OUT2
OUT2=$(sbatch --parsable --export=ALL,output_directory=${output_directory} --array=0-${max_array_job_step2} slurm_files/step2.sh)
echo $OUT2
# 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