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

multiscene: Parse csv exported from BFF #360

Open
toloudis opened this issue Feb 4, 2025 · 2 comments
Open

multiscene: Parse csv exported from BFF #360

toloudis opened this issue Feb 4, 2025 · 2 comments
Assignees

Comments

@toloudis
Copy link
Contributor

toloudis commented Feb 4, 2025

Use Case

Allow BFF to determine multiscene collection to load in VolE.

Solution

Get some example data from Antoine.
Use BFF to export CSV.
Load CSV into app, each row is one scene. Use File Path column as zarr source and all other columns as metadata entries per scene.
For prototyping, this could be drag n drop or a new (maybe temporary) url parameter.

@ShrimpCryptid
Copy link
Contributor

@toloudis
Copy link
Contributor Author

Implementation strategy:
At csv export time, BFF can create an iframe and load a stub page from the VolE domain (vole.allencell.org or whatever).
Then we can postmessage from bff into the iframe, with the contents of the csv data.
Then the vole stub page can use local storage to save the data.
Then BFF can launch VolE in a new tab, and hand it an id that lets it load the same data from local storage, and clean it up if needed.

The reason for the iframe is that localstorage reads and writes have to have same origin...

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