Skip to content

Commit

Permalink
remove .zarr suffix from keys or partial keys in signal analysis program
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Feb 19, 2025
1 parent f23e887 commit 1ce94ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/cli/run_signal_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ def workflow(
# Build up the records for this ROI type, for all FOVs.
by_raw_channel: Mapping[int, list[dict]] = defaultdict(list)
# TODO: refactor with https://github.com/gerlichlab/gertils/issues/32
for raw_fov, raw_img in N.iterate_over_pairs_of_fov_name_and_original_image():
fov: str = raw_fov.removesuffix(".zarr")
for fov, raw_img in N.iterate_over_pairs_of_fov_name_and_original_image():
fov: str = fov.removesuffix(".zarr")
img = raw_img.compute()
logging.info(f"Analysing signal for FOV: {fov}")
nuc_drift: DriftRecord = all_nuclei_drifts[raw_fov]
nuc_drift: DriftRecord = all_nuclei_drifts[fov]
rois: pd.DataFrame = all_rois[all_rois[FIELD_OF_VIEW_COLUMN] == fov]
logging.info("ROI count: %d", rois.shape[0])
for _, r in rois.iterrows():
Expand Down

0 comments on commit 1ce94ab

Please sign in to comment.