neuroinformatics-unit / movement

Python tools for analysing body movements across space and time
http://movement.neuroinformatics.dev
BSD 3-Clause "New" or "Revised" License
91 stars 8 forks source link

Export pose tracking data to zarr #45

Open niksirbi opened 11 months ago

niksirbi commented 11 months ago

Since we represent pose tracking data as xarray objects, it could be attractive to save them to zarr, especially since xarray already provides a xarray.Dataset.to_zarr() method. This would allow for chunking and parallel read/write operations. This could become the movement-native way of saving/loading pose tracks.

That said, we should coordinate with the animal pose estimation community at large to hopefully converge on a common file format for such data, as mentioned in this paper

adamltyson commented 11 months ago

Is (zarr-based) NWB an option?

niksirbi commented 11 months ago

Probably yes? I keep track of NWB's ndx-pose extension in a separate issue (#23), but if that supports the zarr backend, these two goals may well merge into one.