Skip to content

Commit 6464abd

Browse files
committed
First attempt to get CZI zebrafish data
1 parent 2a3160b commit 6464abd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
def get_czi_zebrafish_data():
2+
# NOTE: Let's try for one link first, we can generalize it later.
3+
url = "https://public.czbiohub.org/royerlab/ultrack/zebrafish_embryo.ome.zarr"
4+
5+
from ome_zarr.reader import Reader
6+
from ome_zarr.io import parse_url
7+
8+
reader = Reader(parse_url(url)) # Prepare a reader.
9+
nodes = list(reader()) # Might include multiple stuff
10+
image_node = nodes[0] # First node is expecte to be image pixel data.
11+
12+
dask_data = image_node.data # Get the daskified data.
13+
14+
# HACK: Try it for one dask array with lowest resolution.
15+
curr_data = dask_data[-1]
16+
17+
breakpoint()
18+
19+
20+
def main():
21+
get_czi_zebrafish_data()
22+
23+
24+
if __name__ == "__main__":
25+
main()

0 commit comments

Comments
 (0)