Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalization for patches ome-zarr #97

Closed
alishbaimran opened this issue Jun 28, 2024 · 2 comments
Closed

Normalization for patches ome-zarr #97

alishbaimran opened this issue Jun 28, 2024 · 2 comments

Comments

@alishbaimran
Copy link
Collaborator

alishbaimran commented Jun 28, 2024

We want to compute statistics from the FOV-scale zarr store and store it with patch-scale zarr store, which dataloader will parse.

The process for this is:

  • Compute statistics per FOV (not patch) and store these with metadata.
  • Normalize using FOV statistics at training and test time - use existing CLI or preprocessing script.

This is current structure of the patches ome_zarr:

=== Summary ===
Format: omezarr v0.4
Axes: T (time); C (channel); Z (space); Y (space); X (space);
Channel names: ['RFP', 'Phase3D']
Row names: ['A', 'B']
Column names: ['3', '4']
Wells: 4
Positions: 2629

image
image

This is structure of track_labels zarr where we can store the meta data: (fov information can be stored here)
=== Summary ===
Format: omezarr v0.4
Axes: T (time); C (channel); Z (space); Y (space); X (space);
Channel names: ['tracking']
Row names: ['A', 'B']
Column names: ['3', '4']
Wells: 4
Positions: 61

Screenshot 2024-06-28 at 10 00 40 AM

Need help on how to integrate metadata into the track ome_zarr, how this will be used to generate the patch ome_zarr and then eventually the dataloader for normalization.

@mattersoflight
Copy link
Member

Need help on how to integrate metadata into the track ome_zarr, how this will be used to generate the patch ome_zarr and then eventually the dataloader for normalization.

@alishbaimran our initial approach can be

  • compute FOV statistics from track_labels.zarr/row/col/fovN/ array.
  • write them to each cropped FOV in patches.zarr in /row/col/fovNcellM/.zattr file.
  • use the statistics while loading patches for normalizing the data.

@ziw-liu
Copy link
Collaborator

ziw-liu commented Aug 15, 2024

Now obsolete since we removed patchification.

@ziw-liu ziw-liu closed this as completed Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants