spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

Move ngff transformations to separate repo?

Open jo-mueller opened this issue 4 months ago • 1 comments

Problem description

Hi all,

The problem I am seeing is not something acute at present, but may be become so in the future. The ngff-transformations in this repository are (save for a few incongruencies) a quite complete implementation of the pending RFC5 spec for transformations in the ngff standard. However, it would be impossible to import the transformations in packages that are dependencies of spatialdata. A good example is the multiscale-spatial-image library, which may depend on ngff-zarr in the future (see this and this issue). That, in turn, would prevent ngff-zarr from importing spatialdata to use the ngff transformations therein as it would create a circular import.

Possible solution

The implementation of the ngff-transforms here is super neat and it would be nice to easily use it elsewhere, not only in the scope of spatialdata. Moving the code to a different repo would

  • make spatialdata easier to maintain
  • Give spatialdata outsiders an incentive to contribute if ngff transformations were usable by themselves
  • Reduce maintenance burden to spatialdata devs

Alternatives

Well..anything in here is BSD-3 licensed so of course code can just be copied, but I feel that doing so would fall short of proper acknowledgement of the work that already went into the transformations in their current state.

Looking forward to hearing your thoughts on the matter!

jo-mueller avatar Aug 25 '25 08:08 jo-mueller

Hey @jo-mueller, just as a quick comment there's work on exactly this by @LucaMarconato and @melonora here: https://github.com/ome-zarr-models/ome-zarr-models-py/pull/187!

m-albert avatar Aug 25 '25 09:08 m-albert