-
Notifications
You must be signed in to change notification settings - Fork 14
/
get.bash
76 lines (71 loc) · 4.3 KB
/
get.bash
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
declare -a TileArray=(
"7_0_0"
"6_0_0" "6_1_0"
"5_0_0" "5_0_1" "5_1_0"
"5_1_1" "5_2_0" "5_2_1"
"4_0_0" "4_0_1" "4_0_2" "4_0_3"
"4_1_0" "4_1_1" "4_1_2" "4_1_3"
"4_2_0" "4_2_1" "4_2_2" "4_2_3"
"4_3_0" "4_3_1" "4_3_2" "4_3_3"
"4_4_0" "4_4_1" "4_4_2" "4_4_3"
"3_0_0" "3_0_1" "3_0_2" "3_0_3" "3_0_4" "3_0_5" "3_0_6" "3_0_7"
"3_1_0" "3_1_1" "3_1_2" "3_1_3" "3_1_4" "3_1_5" "3_1_6" "3_1_7"
"3_2_0" "3_2_1" "3_2_2" "3_2_3" "3_2_4" "3_2_5" "3_2_6" "3_2_7"
"3_3_0" "3_3_1" "3_3_2" "3_3_3" "3_3_4" "3_3_5" "3_3_6" "3_3_7"
"3_4_0" "3_4_1" "3_4_2" "3_4_3" "3_4_4" "3_4_5" "3_4_6" "3_4_7"
"3_5_0" "3_5_1" "3_5_2" "3_5_3" "3_5_4" "3_5_5" "3_5_6" "3_5_7"
"3_6_0" "3_6_1" "3_6_2" "3_6_3" "3_6_4" "3_6_5" "3_6_6" "3_6_7"
"3_7_0" "3_7_1" "3_7_2" "3_7_3" "3_7_4" "3_7_5" "3_7_6" "3_7_7"
"3_8_0" "3_8_1" "3_8_2" "3_8_3" "3_8_4" "3_8_5" "3_8_6" "3_8_7"
"3_9_0" "3_9_1" "3_9_2" "3_9_3" "3_9_4" "3_9_5" "3_9_6" "3_9_7"
"2_0_0" "2_0_1" "2_0_2" "2_0_3" "2_0_4" "2_0_5" "2_0_6" "2_0_7" "2_0_8" "2_0_9" "2_0_10" "2_0_11" "2_0_12" "2_0_13" "2_0_14" "2_0_15"
"2_1_0" "2_1_1" "2_1_2" "2_1_3" "2_1_4" "2_1_5" "2_1_6" "2_1_7" "2_1_8" "2_1_9" "2_1_10" "2_1_11" "2_1_12" "2_1_13" "2_1_14" "2_1_15"
"2_2_0" "2_2_1" "2_2_2" "2_2_3" "2_2_4" "2_2_5" "2_2_6" "2_2_7" "2_2_8" "2_2_9" "2_2_10" "2_2_11" "2_2_12" "2_2_13" "2_2_14" "2_2_15"
"2_3_0" "2_3_1" "2_3_2" "2_3_3" "2_3_4" "2_3_5" "2_3_6" "2_3_7" "2_3_8" "2_3_9" "2_3_10" "2_3_11" "2_3_12" "2_3_13" "2_3_14" "2_3_15"
"2_4_0" "2_4_1" "2_4_2" "2_4_3" "2_4_4" "2_4_5" "2_4_6" "2_4_7" "2_4_8" "2_4_9" "2_4_10" "2_4_11" "2_4_12" "2_4_13" "2_4_14" "2_4_15"
"2_5_0" "2_5_1" "2_5_2" "2_5_3" "2_5_4" "2_5_5" "2_5_6" "2_5_7" "2_5_8" "2_5_9" "2_5_10" "2_5_11" "2_5_12" "2_5_13" "2_5_14" "2_5_15"
"2_6_0" "2_6_1" "2_6_2" "2_6_3" "2_6_4" "2_6_5" "2_6_6" "2_6_7" "2_6_8" "2_6_9" "2_6_10" "2_6_11" "2_6_12" "2_6_13" "2_6_14" "2_6_15"
"2_7_0" "2_7_1" "2_7_2" "2_7_3" "2_7_4" "2_7_5" "2_7_6" "2_7_7" "2_7_8" "2_7_9" "2_7_10" "2_7_11" "2_7_12" "2_7_13" "2_7_14" "2_7_15"
"2_8_0" "2_8_1" "2_8_2" "2_8_3" "2_8_4" "2_8_5" "2_8_6" "2_8_7" "2_8_8" "2_8_9" "2_8_10" "2_8_11" "2_8_12" "2_8_13" "2_8_14" "2_8_15"
"2_9_0" "2_9_1" "2_9_2" "2_9_3" "2_9_4" "2_9_5" "2_9_6" "2_9_7" "2_9_8" "2_9_9" "2_9_10" "2_9_11" "2_9_12" "2_9_13" "2_9_14" "2_9_15"
"2_10_0" "2_10_1" "2_10_2" "2_10_3" "2_10_4" "2_10_5" "2_10_6" "2_10_7" "2_10_8" "2_10_9" "2_10_10" "2_10_11" "2_10_12" "2_10_13" "2_10_14" "2_10_15"
"2_11_0" "2_11_1" "2_11_2" "2_11_3" "2_11_4" "2_11_5" "2_11_6" "2_11_7" "2_11_8" "2_11_9" "2_11_10" "2_11_11" "2_11_12" "2_11_13" "2_11_14" "2_11_15"
"2_12_0" "2_12_1" "2_12_2" "2_12_3" "2_12_4" "2_12_5" "2_12_6" "2_12_7" "2_12_8" "2_12_9" "2_12_10" "2_12_11" "2_12_12" "2_12_13" "2_12_14" "2_12_15"
"2_13_0" "2_13_1" "2_13_2" "2_13_3" "2_13_4" "2_13_5" "2_13_6" "2_13_7" "2_13_8" "2_13_9" "2_13_10" "2_13_11" "2_13_12" "2_13_13" "2_13_14" "2_13_15"
"2_14_0" "2_14_1" "2_14_2" "2_14_3" "2_14_4" "2_14_5" "2_14_6" "2_14_7" "2_14_8" "2_14_9" "2_14_10" "2_14_11" "2_14_12" "2_14_13" "2_14_14" "2_14_15"
"2_15_0" "2_15_1" "2_15_2" "2_15_3" "2_15_4" "2_15_5" "2_15_6" "2_15_7" "2_15_8" "2_15_9" "2_15_10" "2_15_11" "2_15_12" "2_15_13" "2_15_14" "2_15_15"
"2_16_0" "2_16_1" "2_16_2" "2_16_3" "2_16_4" "2_16_5" "2_16_6" "2_16_7" "2_16_8" "2_16_9" "2_16_10" "2_16_11" "2_16_12" "2_16_13" "2_16_14" "2_16_15"
)
declare -a GroupArray=(
"Hoechst_0__Hoechst"
"Autofluorescence_1__Autofluorescence"
"CD31_2__CD31"
"alpha-SMA_18__alpha-SMA"
"CD4_6__CD4"
"FOXP3_7__FOXP3"
"CD8a_8__CD8a"
"E-cadherin_14__E-cadherin"
"CD68_4__CD68"
"PD-L1_11__PD-L1"
"CD163_13__CD163"
"Ki67_16__Ki67"
"CD45RO_9__CD45RO"
"CD20_10__CD20"
"CD3e_12__CD3e"
"PD-1_15__PD-1"
"CD45_3__CD45"
"Pan-CK_17__Pan-CK"
)
GROUP="he"
for tile in ${TileArray[@]}; do
mkdir -p data/images/P37_S29-CRC01/$GROUP
echo "https://s3.us-east-1.amazonaws.com/www.cycif.org/lin-chen-campton-2022/P37_S29-CRC01/$GROUP/$tile.jpg"
curl "https://s3.us-east-1.amazonaws.com/www.cycif.org/lin-chen-campton-2022/P37_S29-CRC01/$GROUP/$tile.jpg" -o "data/images/P37_S29-CRC01/$GROUP/$tile.jpg"
done
for group in ${GroupArray[@]}; do
for tile in ${TileArray[@]}; do
mkdir -p data/images/P37_S29-CRC01/$group
echo "https://jmuhlich-test.s3.amazonaws.com/P37_S29-CRC01/images/P37_S29-CRC01/$group/$tile.jpg"
curl "https://jmuhlich-test.s3.amazonaws.com/P37_S29-CRC01/images/P37_S29-CRC01/$group/$tile.jpg" -o "data/images/P37_S29-CRC01/$group/$tile.jpg"
done
done