tables data on images#4929
Conversation
|
I think images are supported on |
|
Tested using OMERO.insight-5.3.0-m4-872-2a4a926-ice35-b479-mac on 10.0.51.106 user-1 to attach and run scripts. Results checked in Web client. Attached script to Screen ID 1:
Attached script to Plate ID 1:
Attached script with wrong Image ID to Screen ID 1: Error with Image ID (expected): Behaves as expected. Good to merge from UI perspective. |
|
@will-moore what about one table for Screen and one table for Plate? You could have then a table with "well info" attached to Screen with e.g. protocol info, annotated controls, drug names, drug concentrations, etc; and then a table attached to Plate with Image data - analysis results, etc? Edit: I should really formalise my question :). Can we show both tables in this case: one with well info from Screen and one with Image info from Plate (and vice versa)? |
|
@emilroz Show both tables when you're looking at an Image? And just show the Well data when looking at a Well? However, the idea of optionally showing the annotations on parent object might be a nice solution to the issue we were discussing the other day about "showing your context" - E.g. I'm looking at images in a Dataset and I want to know what tags are on the Images AND the Dataset. |
|
@will-moore yes that's exactly what I was thinking about. Of course it doesn't have to happen in this PR. |
|
@will-moore: do you have the "show annotation of parents scenario" on a card? |
|
@jburel No, not yet. |
|
Could you create a card on 5.3.x? |
|
Thanks @will-moore |
OMERO.tables data for Images in Wells
Previously webclient has only tried to show the OMERO.tables data for Wells (not other objects).
E.g. Browse SPW -> show Well in right panel -> expand 'Tables' panel
This was in contrast to other annotations E.g. Tags etc that could only be applied to Images in Wells.
When images were shown "out of SPW context", (e.g. result of image search) we have tried to check whether the image is in a Well, then query for parent Screen/Plate table with row that matches that Well. (see #4774)
Now, we have changed the UI for SPW, such that right panel shows Well OR Image, but not both. #4863
This allows us to only show annotations on the Well OR Image (not show Image annotations for Well or Well annotations for Image).
Therefore, this PR reverts the behaviour of #4774 but adds support for querying Image rows of tables.
When Image OR Well is shown in right panel, we query Screen and Plate parents for OMERO.tables then query OMERO.table rows that match Image-id or Well-id.
Testing this PR
Test Well
Wellcolumn instead ofImage, usingA1, A2etc instead of IDs.Test wrong image ID
ERROR:omero.util.populate_metadata:Image Id: 630010 not found!NB: Since we only query a single OMERO.tables file at a time, we ONLY show the most recent. Therefore it's not possible to have E.g. one table with Image column and one table with Well column, both on the same Plate and both being displayed on child Images & Wells.
In the test scenario above, we attach one table to Screen and one to Plate to avoid this clash.
In future, we should probably try to show data from ALL OMERO.tables on the parent.
NB: This means that search results of Images (from within Wells) won't now show OMERO.tables data that is on the parent Well. Searching for Wells themselves is on the trello card below.
NB: I haven't added Robot tests for Images because it is much harder to create a csv file with Image IDs than to create one with Well positions. Would be nice if populate_metadata supported Image Name column or Well + field?
Related reading
See http://lists.openmicroscopy.org.uk/pipermail/ome-users/2016-October/006232.html
which was added to card: https://trello.com/c/GxqDnD0P/211-spw-follow-up
cc @joshmoore @manics