-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-extract.sh
23 lines (23 loc) · 892 Bytes
/
run-extract.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
for DZ in {CD,UC}; do
for SEC in {A,B,C,D}; do
python 1-convert-to-anndata.py \
--spatial_path /mnt/data5/spatial/data/colon/$DZ/$SEC/outs \
--slide_path /mnt/data5/spatial/data/colon/$DZ/$SEC/$SEC.tif \
--tile_width 86 \
--output_h5ad data/$DZ-$SEC-src.h5ad
python 2-extract-expression-features.py \
--input_h5ad data/$DZ-$SEC-src.h5ad \
--output_h5ad data/$DZ-$SEC-expr.h5ad \
--model uce_4 \
--species human
python 3-extract-histology-features.py \
--input_h5ad data/$DZ-$SEC-src.h5ad \
--output_h5ad data/$DZ-$SEC-hist.h5ad
python 4-combine-data.py \
--source_h5ad data/$DZ-$SEC-src.h5ad \
--expr_h5ad data/$DZ-$SEC-expr.h5ad \
--hist_h5ad data/$DZ-$SEC-hist.h5ad \
--output_h5ad data/$DZ-$SEC.h5ad
rm data/*-*-*.h5ad
done
done