Support images_by_name for Screen and Plate - #64
Conversation
|
Conflicting PR. Removed from build OMERO-plugins-push#988. See the console output for more details.
--conflicts |
|
I think I need to get #62 merged ahead of this PR... Will look at that now... |
|
Conflicting PR. Removed from build OMERO-plugins-push#1005. See the console output for more details.
|
|
Closing for now to avoid more conflicts... |
|
Will this be re-opened at some point? |
fa13d53 to
90a66d3
Compare
|
Re-opened and fixed merge conflicts. Hopefully tests will pass (not run locally yet). @JensWendt it would be a great help if you can test this (see description) and let us know if it's working for you? |
|
Heyo @will-moore, |
|
Yes, with the screen.csv and plate.csv examples. Thx |
|
Heyo @will-moore , I did some testing. From my perspective this is not a big problem as long as the table is correct. |
sbesson
left a comment
There was a problem hiding this comment.
A few questions on the implementation but no concern from my side.
Soince the tests have been modified, have we also have validated that the current workflow i.e. being able to annotate plate/screen without any image column is preserved? And is it still tested?
| images_by_id = dict() | ||
|
|
||
| self.images_by_name = dict() | ||
| images_by_name = dict() |
There was a problem hiding this comment.
That creates a dictionary that is assigned to self.images_by_name[self.target_object.id.val] and is then passed to the method below where it's populated. This is just following the same pattern as for images_by_id = dict() in the lines above.
|
Hi everyone, I also did some testing this morning with the following combinations of source csv data containing either:
Except of the warning message, that Jens already mentioned, I would like to point out the following concerns:
(as a side note, with the same OMERO.table plots in parade-crossfilter show all individual image dots)
I hope my notes are not too confusing and a bit helpful. BR, Anna |
The script is working fine, so it looks like these are invalid warnings but it is hard to understand the working of the script
|
@abhamacher "Image Number" - do you mean the "Image" column? That is definitely supposed to be the Image ID. If it wasn't then the script is failing badly. Do you have some sample data (csv)? I think omero-parade doesn't handle multiple Images per Well and certainly not multiple ROIs per Image.
I don't quite understand what 8) is about. Could you create a new issue for this on that repo (and same for any others above if you want, on their respective repos). In the last commit above, I have reduced the logging level for warnings. |
|
Hi Will, I apologize for mixing up topics and bringing some confusion to this thread. As you can see, I added parts of the mentioned issues at the parade and parade-crossfilter repo. About the "ImageNumber" -- that was a mean one, it actually came from the original Cellprofiler data. Sorry, about that, so it has nothing to do with omero-metadata.
Well, still this is not very handy/ well readable for users. Especially because I add for example the plate and well names to the upload csv-file as the very first columns, but omero-metadata exchanges them to IDs and adds the names to the end of my table. Why can't the names just remain where they are (at the beginning) and the IDs being added to the end of the table? Thanks, Anna |
|
Hi Anna, |
|
Hi @abhamacher , regarding point 5) --> I've been running into this issue also with other scripts. |
|
Conflicting PR. Removed from build OMERO-plugins-push#372. See the console output for more details.
--conflicts |



See #63.
Supports parsing
Image Nameto Image ID for HCS data.Image Namemust be unique to a Plate (similar to Dataset).NB: There has been a long-standing inconsistency in the way that populate metadata handles column names for PDI vv HCS.
For PDI, you start with "Image Name" column (with
stype in header) in your csv. A new "Image" column is added with Image IDs.This seems to make the most sense.
For HCS, you start with "Well" column (with
welltype in header), that contains the Well Names. This column is converted to a Well ID column (still named Well) and a newWell Namecolumn is added, containing the names that were in theWellcolumn. This is confusing!In this case, so as not to have different handling of
Image Namecolumns for HCS vv PDI, we need anImage Namecolumn (type:s) alongside aWellcolumn (type:well), even though they both contain names!E.g. screen.csv
E.g. plate.csv
TODO: add tests...