-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFluo-N3DL-TRIF-01.sh
executable file
·35 lines (27 loc) · 1.06 KB
/
Fluo-N3DL-TRIF-01.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
#! /bin/bash
DATA_DIR=${DATA_DIR:=".."}
WK_DIR=${WK_DIR:="."}
DS=Fluo-N3DL-TRIF
NUM=01
OUT=$DATA_DIR/$DS/${NUM}_RES
CSB_OUT=$DATA_DIR/$DS/CSB/${NUM}_RES
CFG="-cfg $DS/config.toml"
python normalize.py -lq 0.5 -uq 0.99999 -z 1 \
-o $WK_DIR/$DS/$NUM/image.zarr $DATA_DIR/$DS/$NUM/*.tif -ow
# replacing glitchy frame 87 with frame 86
cp $WK_DIR/$DS/$NUM/image.zarr/Image/Image/86.0.0.0 $WK_DIR/$DS/$NUM/image.zarr/Image/Image/87.0.0.0
cp $WK_DIR/$DS/$NUM/image.zarr/Image/Image/86.1.0.0 $WK_DIR/$DS/$NUM/image.zarr/Image/Image/87.1.0.0
python compute_labels.py \
-s1 0,1,1 -s2 1,4,4 -m 50 -M 1000 -c 500 -pt 0.5 \
$WK_DIR/$DS/$NUM/image.zarr -ow
rm data.db # deleting previous database
ultrack segment $WK_DIR/$DS/$NUM/image.zarr $CFG -r napari-dexp -el Boundary -dl Prediction
python register.py $WK_DIR/$DS/$NUM/image.zarr $CFG -r napari-dexp
ultrack link $CFG
ultrack solve $CFG
rm -r $OUT
ultrack export ctc $CFG -o $OUT \
--first-frame-path $DATA_DIR/$DS/${NUM}_GT/TRA/man_track000.tif
rm -r $CSB_OUT
mkdir -p $CSB_OUT
ultrack export ctc $CFG -o $CSB_OUT