Skip to content

Commit

Permalink
use brainpipe conda environment
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhoag committed Nov 18, 2021
1 parent 450ad08 commit 49d4ffb
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 181 deletions.
22 changes: 16 additions & 6 deletions sub_registration_terastitcher.sh → example_tracing_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,33 @@ 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
module load anacondapy/2020.11
. activate brainpipe

#set up dictionary and save
OUT0=$(sbatch --array=0 slurm_files/step0.sh)
echo $OUT0

#process zplns, check that 1000 > zplns/slurmfactor
#process zplns, assumes with tracing you are using terastitcher
OUT1=$(sbatch --dependency=afterany:${OUT0##* } --array=0-2 slurm_files/step1.sh)
echo $OUT1

#combine stacks into single tifffiles
OUT2=$(sbatch --dependency=afterany:${OUT1##* } --array=0-3 slurm_files/step2.sh)
echo $OUT2

#generate memmap array of full size cell channel data
OUT4=$(sbatch --dependency=afterany:${OUT1##* } slurm_files/cnn_step0.sh "`pwd`")
echo $OUT4

#generate chunks for cnn input
OUT5=$(sbatch --dependency=afterany:${OUT4##* } --array=0-130 slurm_files/cnn_step1.sh "`pwd`")
echo $OUT5

#check if correct number of patches were made
OUT6=$(sbatch --dependency=afterany:${OUT5##* } slurm_files/cnn_step1_check.sh "`pwd`")
echo $OUT6

#run elastix
OUT3=$(sbatch --dependency=afterany:${OUT2##* } --array=0-2 slurm_files/step3.sh)
echo $OUT3
Expand All @@ -43,4 +53,4 @@ echo $OUT3
# 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
# afterok = go if the specified job completes successfully
25 changes: 0 additions & 25 deletions registration_pipeline.sh

This file was deleted.

4 changes: 2 additions & 2 deletions slurm_files/cnn_postprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ echo "on host: `hostname` "
cat /proc/$$/status | grep Cpus_allowed_list
cat /proc/meminfo

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

#generate memmap array of reconstructed cnn output
OUT0=$(sbatch slurm_files/cnn_step21.sh "`pwd`")
Expand Down
4 changes: 2 additions & 2 deletions slurm_files/cnn_preprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ echo "on host: `hostname` "
cat /proc/$$/status | grep Cpus_allowed_list
cat /proc/meminfo

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

echo "Experiment name:" "`pwd`"

Expand Down
4 changes: 2 additions & 2 deletions slurm_files/cnn_step0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "on host: `hostname` "

cat /proc/$$/status | grep Cpus_allowed_list

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

echo "Experiment name:" "`pwd`"

Expand Down
4 changes: 2 additions & 2 deletions slurm_files/cnn_step1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "on host: `hostname` "

cat /proc/$$/status | grep Cpus_allowed_list

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

echo "Experiment name:" "`pwd`"
echo "Array Index: $SLURM_ARRAY_TASK_ID"
Expand Down
4 changes: 2 additions & 2 deletions slurm_files/cnn_step1_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "on host: `hostname` "

cat /proc/$$/status | grep Cpus_allowed_list

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

echo "Experiment name:" "`pwd`"
echo "Array Index: $SLURM_ARRAY_TASK_ID"
Expand Down
4 changes: 2 additions & 2 deletions slurm_files/cnn_step2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "on host: `hostname` "

cat /proc/$$/status | grep Cpus_allowed_list

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

echo "Experiment name:" "`pwd`"

Expand Down
4 changes: 2 additions & 2 deletions slurm_files/cnn_step21.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "on host: `hostname` "

cat /proc/$$/status | grep Cpus_allowed_list

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

echo "Experiment name:" "`pwd`"

Expand Down
4 changes: 2 additions & 2 deletions slurm_files/cnn_step3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "on host: `hostname` "

cat /proc/$$/status | grep Cpus_allowed_list

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

echo "Experiment name:" "`pwd`"
echo "Array Index: $SLURM_ARRAY_TASK_ID"
Expand Down
4 changes: 2 additions & 2 deletions slurm_files/cnn_step4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "on host: `hostname` "

cat /proc/$$/status | grep Cpus_allowed_list

module load anacondapy/5.3.1
. activate lightsheet
module load anacondapy/2020.11
. activate brainpipe

echo "Experiment name:" "`pwd`"

Expand Down
46 changes: 0 additions & 46 deletions sub_registration.sh

This file was deleted.

38 changes: 0 additions & 38 deletions sub_update_registration.sh

This file was deleted.

46 changes: 0 additions & 46 deletions test_registration.sh

This file was deleted.

2 changes: 0 additions & 2 deletions tools/utils/directorydeterminer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ def directorydeterminer():
"""
if socket.gethostname() == "spock-login.pni.princeton.edu":
systemdirectory= "/jukebox/"
if socket.gethostname() == "PNI-1867vwtq2":
systemdirectory = "/jukebox/"
else:
systemdirectory = "/jukebox/"

Expand Down

0 comments on commit 49d4ffb

Please sign in to comment.