Skip to content

Commit c481396

Browse files
committed
Add timepoint suggestions for optimal development cycle
1 parent 24278a7 commit c481396

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

development/prepare_czi_zebrafish_data.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,16 @@ def _get_dasky_data(url):
2020
return dask_data
2121

2222

23-
def get_zebrahub_data(timepoint: int = 99, view: bool = False) -> Tuple[da.Array, pd.DataFrame]:
23+
def get_zebrahub_data(timepoint: int = 100, view: bool = False) -> Tuple[da.Array, pd.DataFrame]:
2424
"""Gets the ZebraHub data from https://doi.org/10.1016/j.cell.2024.09.047.
25+
26+
Args:
27+
timepoint: The timepoint where the 3d imaging data will be returned from.
28+
view: Whether to view the dask array via napari.
29+
30+
Returns:
31+
The daskified chunky array.
32+
And the tracking annotations.
2533
"""
2634
# NOTE: There's more single objective samples for zebrafish available with tracking annotations
2735
# https://public.czbiohub.org/royerlab/zebrahub/imaging/single-objective/
@@ -103,7 +111,12 @@ def get_czi_zebrafish_data(
103111

104112
def main():
105113
# image = get_czi_zebrafish_data(neuromast=True, view=False)
106-
image, tracks = get_zebrahub_data(view=False)
114+
115+
# Suggested timepoints I like in the developmental cycle:
116+
# 740/760: kind of at the end of cycle.
117+
# 650: it's a nice development stage which visually surfaces a lot of nucleus.
118+
119+
image, tracks = get_zebrahub_data(timepoint=650, view=False)
107120
print(image.shape)
108121

109122

0 commit comments

Comments
 (0)