Skip to content

tables referring to multiple regions #99

Closed

Description

@giovp

in both nanostring cosmx and xenium we available info on labels and labels' centroids. Therefore, the spatialdata object will (could) have 2 regions representing the same instance (with potentially same instance_id) and a single table annotating both.
I believe we discussed this but I don't remember how we ended up resolving this issue.

I think one option we discussed was that the centroids labels would just be stored in table.obsm["spatial"] essentially as an annotation on the labels (and useful for plotting etc) but without any constraint or specifications (e.g. no coordinate systems and/or transforms). If that's the case, then there would be no Shapes region for the centroids.

Any idea on how to resolve this issue?

related to #43

Activity

  1. LucaMarconato commented on Jan 8, 2023

    @LucaMarconato
    Member

    Hi, from the discussion we settled, as you mentioned, on storing the centroids in the table as a separate column, and if I recall correctly we said to store the centroids in the implicit coordinates. This is meant to be a way to unblock this now and not the definitive solutions, since if for instance the centroids come from a labels and they are cropped, then the implicit coordinates stored in the table would not be correct anymore. I also agree of removing the Shapes from storage, they could be created in-place at any time if needed.

  2. kevinyamauchi commented on Jan 9, 2023

    @kevinyamauchi
    Collaborator

    My recollection is the same as @LucaMarconato 's.

  3. LucaMarconato commented on Feb 22, 2024

    @LucaMarconato
    Member

    Closed as duplicate of #34 and #123.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions