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

Annotating coordinate systems #780

Open
LucaMarconato opened this issue Nov 13, 2024 · 1 comment
Open

Annotating coordinate systems #780

LucaMarconato opened this issue Nov 13, 2024 · 1 comment

Comments

@LucaMarconato
Copy link
Member

          Just a random note on this: I agree that having SpatialData - level attributes would be super helpful. Beyond that, I think it would be great to be able to annotate coordinate systems - these often correspond to samples, conditions, time-points etc. I can of course annotate all elements within a coordinate system through tables, but I think it would be more direct to somehow directly provide metadata for an entire coordinate system.

Originally posted by @Marius1311 in #711 (comment)

@LucaMarconato
Copy link
Member Author

We will be working on this, but we will only support the metadata that are available via the NGFF specification for coordinate systems: https://github.com/bogovicj/ngff/blob/3a7e76fff2941a3287873a5848bca3add83d1fd3/latest/index.bs#L320.

If you need more metadata I suggest one of the following:

  1. adding a new table, not attached to any element, where the obs_names are the names of the coordinate systems, and where obs, X, obsm contains your annotations. This can be done already from today, but please keep in mind that none of the spatialdata API will expect/operate such a table, so for instance if you add or remove a coordinate system, nothing will update the table.
  2. open a feature request in NGFF, suggesting a change in the proposal. I would do this after experimenting with the approach in 1, and (when available) after experimenting with the metadata that the specification linked above allows for coordinate systems.

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

1 participant