Skip to content

Big plate demo - #32

Closed
will-moore wants to merge 2 commits into
BioVisionCenter:mainfrom
will-moore:big_plate_demo
Closed

will-moore wants to merge 2 commits into
BioVisionCenter:mainfrom
will-moore:big_plate_demo

Conversation

@will-moore

Copy link
Copy Markdown
Contributor

This is a big plate to test larger graphs in the ngff-rfc8-viewer:
It has 384 Wells with 9 fields in each.

It uses the same script as the small 3 x 2 plate I created earlier. I've manually renamed the new plate so as not to destroy the original plate, since it makes a handy sample for testing etc.
That breaks the 1:1 mapping between python scripts and example files - I don't know if that would cause reproducibility issues etc?
I also wasn't sure that this PR might just be too much JSON to dump in this repo, so I'm happy to put it elsewhere if preferred.

So this is currently just a draft PR so we can discuss, and test the plate from the branch for now.

Test at https://fractal-analytics-platform.github.io/ngff-rfc8-viewer/?source=https://raw.githubusercontent.com/will-moore/ngio-collections/refs/heads/big_plate_demo/examples/data/v05_plate_large/collection.json

cc @zonia3000

@tcompa

tcompa commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Thanks - that's a valuable example!

I can load the entire collection graph and the page remains somewhat responsive (even with some noticeable lags), but switching to the "images" with all the graph already expanded is extremely heavy.

I think that the issues about the python-vs-json examples and about where to store this "large" set of files are minor ones for the moment. My takes:

  • We should consolidate all examples in a dedicated ngff-rfc8-examples repository. I'll create a draft right away, and if we find it useful I can quickly point to it from the viewer code.
  • It'd be best if all examples can be reproduced through a Python script, so that it's easier to enhance them in the future (e.g. by using an updated version of ngio-collections after the RFC-8 revision). But this is more a perspective in view of future work on this, and not a blocker for the current PR from my side.

@will-moore

Copy link
Copy Markdown
Contributor Author

Yes, loading 384 x 9 thumbnails at once is a killer!
We need to only load those thumbnails that are visible.

@tcompa

tcompa commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Yes, loading 384 x 9 thumbnails at once is a killer! We need to only load those thumbnails that are visible.

Now tracked at fractal-analytics-platform/ngff-rfc8-viewer#70, with a first potential suggestion on how to proceed.

@tcompa

tcompa commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Re: the new big-plate example

I now created https://github.com/fractal-analytics-platform/ngff-rfc8-examples, and added a script for this new example (https://github.com/fractal-analytics-platform/ngff-rfc8-examples/blob/main/src/rfc8_examples/e08_v05_big_plate_to_multi_doc.py).

Note that the diff with example07 is minimal:

16,17c16,18
< MAX_ROWS = 2
< MAX_COLS = 3
---
> # Use smaller numbers if you want to convert fewer wells for testing
> MAX_ROWS = 100
> MAX_COLS = 100
20c21
< plate_url = "https://livingobjects.ebi.ac.uk/idr/zarr/v0.5/idr0010/76-45.ome.zarr/"
---
> plate_url = "https://livingobjects.ebi.ac.uk/idr/share/ome2024-ngff-challenge/idr0036/20591.ome.zarr/"

cc @will-moore: if you are OK with it, we can close this PR and add new examples to ngff-rfc8-examples (where you should already have an invite for "write" permissions).

cc @lorenzocerrone: In that case, and if your are OK with it, we can remove some part of the examples folder - or even the whole folder - since it is a bit cumbersome to keep everything up to date, and we could contribute examples to the new repo. Note that the examples repo currently pins ngio-collections to 0.0.1, but we could easily handle different versions with different tags/branches.

@will-moore

Copy link
Copy Markdown
Contributor Author

👍

@will-moore will-moore closed this Oct 30, 2026
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

Successfully merging this pull request may close these issues.

2 participants