Skip to content

Commit 336d874

Browse files
Add new IHC extraction
1 parent ed02fe3 commit 336d874

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

scripts/more-annotations/extraxt_vglut3_gerbil.py renamed to scripts/more-annotations/extract_vglut3_gerbil.py

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44

55
# Segmentation G_EK_000233_L IHC_v5:
66
# Components: 1, 2, 3, 4, 5, 8
7-
# Additional locations for annotation
8-
# {"position":[1369.3745663030836,1518.1919905173781,629.7304794154277],"timepoint":0}
9-
# {"position":[1455.8392111279102,1678.0405530924381,706.4828408796568],"timepoint":0}
10-
# {"position":[787.5688223108835,937.4842970917134,254.5776808983996],"timepoint":0}
11-
# {"position":[673.778067707707,1047.544514258375,1573.6031222817312],"timepoint":0}
12-
# {"position":[593.1568182540034,1018.005901151162,276.4582768781532],"timepoint":0}
13-
# {"position":[962.1827956246404,1973.0958986758776,756.6812813123805],"timepoint":0}
147

158

169
def initial_blocks():
@@ -53,9 +46,37 @@ def initial_blocks():
5346
)
5447

5548

49+
def next_blocks():
50+
blocks_to_annotate = [
51+
"[1369.3745663030836,1518.1919905173781,629.7304794154277]",
52+
"[1455.8392111279102,1678.0405530924381,706.4828408796568]",
53+
"[787.5688223108835,937.4842970917134,254.5776808983996]",
54+
"[673.778067707707,1047.544514258375,1573.6031222817312]",
55+
"[593.1568182540034,1018.005901151162,276.4582768781532]",
56+
"[962.1827956246404,1973.0958986758776,756.6812813123805]",
57+
]
58+
59+
input_path = "G_EK_000233_L/images/ome-zarr/Vglut3.ome.zarr"
60+
input_key = "s0"
61+
output_key = None
62+
resolution = 0.38
63+
64+
output_folder = "./G_EK_000233_L_VGlut3-round2"
65+
os.makedirs(output_folder, exist_ok=True)
66+
print("Exporting to", output_folder)
67+
for coords in blocks_to_annotate:
68+
halo = [196, 196, 48]
69+
coords = json.loads(coords)
70+
extract_block(
71+
input_path, coords, output_folder, input_key, output_key, resolution, halo,
72+
tif=True, s3=True,
73+
)
74+
75+
5676
def main():
57-
initial_blocks()
77+
# initial_blocks()
78+
next_blocks()
5879

5980

6081
if __name__ == "__main__":
61-
initial_blocks()
82+
main()

0 commit comments

Comments
 (0)