-
Notifications
You must be signed in to change notification settings - Fork 13
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
RegionDisplay actually also is a data source? #818
Comments
Naming-wise, maybe even better? |
I think making
We explicitly decided to not call this annotation any more in order to avoid confusion with the annotation mode (= user provided annotations). |
OK.... how do we currently plan to model |
Regarding the
Yes, there is an example project with it already. |
I had the same feeling, let's discuss in September. However I think you have a point here, because I think currently the regionDisplay could annotate images that are not part of the sources, but only emerge by means of transformation, in that particular view.... |
Yes, that's one of the subtleties that I think make it difficult to express this as a source. |
I have not worked with segmentation sources so far, but to me, the way |
Yes, that's a good point we can have in mind! (However it runs a bit contrary to what we have planned for the spot source, see https://github.com/mobie/spatial-transcriptomics-example-project/blob/main/data/pos42-spatial-transcriptomics/dataset.json#L60-L66). I think it's best if @tischi goes ahead and tries how to fit in the spot source into the current concept, and then we re-evaluate and discuss in person in September (but of course you can keep brainstorming in the meantime!) |
I think spots (or potentially more general: polygons/vector annotations) are a different story, because the actual positional data resides in the table that the |
Yeah, good points. I agree that a I find the table that annotates the segments in an image somewhat of an edge case. It does contain relevant information by itself but at the same time is very tightly linked to the label mask image. We could consider tables being sources, because one always could just display the table by itself, we could then have a simple |
An alternative could also be to split the generic "tables" into something like "sourceTables" and "annotationTables". |
Working now on the The We add
the
So, the Pro:
Con:
In a less invasive version of the above we could also leave out the annotation layer for now but still add the |
I can't think this fully through now, but I quite dislike a couple of aspects of this:
Yeah, I think this would be fine and a quite logical change (I would call it |
Your comments make sense to me. |
@tischi: I moved your comments from mobie/mobie.github.io#88 here, since they are more relevant in this issue. First postSome other thing that feels a bit confusing. In the displays, afaik, Now in the In OME-Zarr I guess we will have two main sources of data, namely the spec for images and label mask images, which will be very similar, and the tables. Thus, in the Second postOne can also argue the other way around (and looking at my code this seems to make more sense): In all Logic: A display can display one or many sources. So that makes sense and we could keep the name of field Now in the Importantly, I would now propose to rename the Actually, we could imagine region tables that do contain the full information of where the regions are and could thus be shown self-sustained. If we want to use the same Any thoughts? |
We now have |
@constantinpape @martinschorb
I got a bit confused and wonder whether we could improve (at some point) the JSON spec.
RegionDisplay
has those fields:For comparison, the other place where we have a
tableData
field is within asource
of typesegmentation
.My issue is now that
RegionDisplay
also in fact is asource
of some data, namelytableData
. Thus, I feel we mixed up the concepts of a data source and a data display. I feel it could be cleaner if we had anothersource
type, maybe calledimageRegions
(and then we could have another one calledspots
at some point). Then probably the protectedMap< String, List< String > > sources
could disappear entirely and simply become one column (e.g., semicolon separated) in theimageRegions
table? This could also better fit to what may happen in OME-Zarr where people feel that regions could be specified in a table: ome/ngff#133And then the
RegionDisplay
would just specify how to display theregions
(and not also hold the actual data). I think this would we more consistent.What do you think?
The text was updated successfully, but these errors were encountered: