Skip to content

Commit 0608f8d

Browse files
Update processing scripts
1 parent 1c91858 commit 0608f8d

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

flamingo_tools/data_conversion.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
import numpy as np
1111
import pybdv
1212

13-
from cluster_tools.utils.volume_utils import write_format_metadata
13+
try:
14+
from cluster_tools.utils.volume_utils import write_format_metadata
15+
except ImportError:
16+
write_format_metadata = None
17+
1418
from elf.io import open_file
1519
from skimage.transform import rescale
1620

reproducibility/templates_processing/REAMDE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ For IHC segmentation run:
1212
- apply_unet_IHC_template.sbatch
1313
- segment_unet_IHC_template.sbatch
1414

15-
For ribbon synapse detection run:
16-
- detect_synapse_marker_template.sbatch
15+
For ribbon synapse detection without associated IHC segmentation run
1716
- detect_synapse_template.sbatch
17+
For ribbon synapse detection with associated IHC segmentation run
18+
- detect_synapse_marker_template.sbatch

reproducibility/templates_processing/apply_unet_IHC_template.sbatch

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
#SBATCH -a 0-9
1010

1111
source ~/.bashrc
12-
micromamba activate micro-sam_gpu
12+
# micromamba activate micro-sam_gpu
13+
micromamba activate sam
1314

1415
# Print out some info.
1516
echo "Submitting job with sbatch from directory: ${SLURM_SUBMIT_DIR}"
@@ -19,7 +20,8 @@ echo "Current node: ${SLURM_NODELIST}"
1920

2021
# Run the script
2122

22-
SCRIPT_REPO=/user/schilling40/u15000/flamingo-tools
23+
# SCRIPT_REPO=/user/schilling40/u15000/flamingo-tools
24+
SCRIPT_REPO=/user/pape41/u12086/Work/my_projects/flamingo-tools
2325
cd "$SCRIPT_REPO"/flamingo_tools/segmentation/ || exit
2426

2527
export SCRIPT_DIR=$SCRIPT_REPO/scripts
@@ -37,7 +39,8 @@ export INPUT=/mnt/vast-nhr/projects/nim00007/data/moser/cochlea-lightsheet/"$COC
3739

3840
export OUTPUT_FOLDER=/mnt/vast-nhr/projects/nim00007/data/moser/cochlea-lightsheet/predictions/"$COCHLEA"/"$SEG_NAME"
3941

40-
export MODEL=/mnt/vast-nhr/projects/nim00007/data/moser/cochlea-lightsheet/trained_models/IHC/v4_cochlea_distance_unet_IHC_supervised_2025-07-14
42+
# export MODEL=/mnt/vast-nhr/projects/nim00007/data/moser/cochlea-lightsheet/trained_models/IHC/v4_cochlea_distance_unet_IHC_supervised_2025-07-14
43+
export MODEL=/mnt/vast-nhr/projects/nim00007/data/moser/cochlea-lightsheet/trained_models/IHC/v5_cochlea_distance_unet_IHC_supervised_2025-08-20/
4144
export PREDICTION_INSTANCES=10
4245
export INPUT_KEY="setup$STAIN_CHANNEL/timepoint0/s0"
4346

reproducibility/templates_processing/mean_std_IHC_template.sbatch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
#SBATCH --mem 128G
99

1010
source ~/.bashrc
11-
micromamba activate flamingo13
11+
# micromamba activate flamingo13
12+
micromamba activate sam
1213

1314
# Run the script
1415

15-
SCRIPT_REPO=/user/schilling40/u15000/flamingo-tools
16+
# SCRIPT_REPO=/user/schilling40/u15000/flamingo-tools
17+
SCRIPT_REPO=/user/pape41/u12086/Work/my_projects/flamingo-tools
1618
cd "$SCRIPT_REPO"/flamingo_tools/segmentation/ || exit
1719

1820
export SCRIPT_DIR=$SCRIPT_REPO/scripts

reproducibility/templates_processing/segment_unet_IHC_template.sbatch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22
#SBATCH --job-name=segment-unet-SGN
3-
#SBATCH --time 10:00:00 # for gerbil up to ~30 hours
3+
#SBATCH --time 35:00:00 # for gerbil up to ~30 hours
44

55
#SBATCH -p standard96s:shared # the partition
66
#SBATCH -A nim00007
7-
#SBATCH -c 8
7+
#SBATCH -c 12
88
#SBATCH --mem 400G
99

1010
source ~/.bashrc

0 commit comments

Comments
 (0)