fractal-analytics-platform / fractal-tasks-core

Main tasks for the Fractal analytics platform
https://fractal-analytics-platform.github.io/fractal-tasks-core/
BSD 3-Clause "New" or "Revised" License
14 stars 6 forks source link

Add high-level load_roi function #637

Open jluethi opened 9 months ago

jluethi commented 9 months ago

Goal: A high-level API to load ROIs

Placeholder issue, needs to be defined better.

I'd imagine something like: a ROI loading function that takes a) the name or index of a ROI: is there always an index column? Then it could be the value from there. We may also want to support just looping over available ROIs by index (useful e.g. for processing ROIs) b) zarr_url: path to the OME-Zarr image c) Channel specification or label name d) Optional compute=False

And returns a dask or numpy array of just that ROI

To be used in the roi loader plugin, some of our tasks when they loop over ROIs, maybe some of Nicole's tasks and the upcoming plotting library by Michael & Silvia