CLI Metadata Plugin#4037
Conversation
For a server who's policy restricts the download of plates, populate_roi.py can no longer get access to the results file. For the moment, we're detecting files based on their file ending and permitting the download.
This is an initial example to show how a bulk-annotation table can be converted into MapAnnotations
This is for internal testing only, and will be changed when this is moved to the metadata CLI plugin.
BlitzGateway didn't work with self.client
Initial attempt at integrating the populate_metadata.py script into the OMERO CLI
Also fix ignored name parameter in make_file_annotation
This is consistent with the fs plugin
|
I have tried the workflow at https://www.openmicroscopy.org/private/ome-internal/testing_scenarios/BulkAnnotations.html but using the cli without much luck. There is an annotation on the Screen but not on individual wells. And with, Is there anything else I need on my local branch? And @pwalczysko is that scenario and are the files used valid? |
|
@ximenesuk : The scenario was last tested during the Paris meeting this year. It worked up to the points which are documented in the tickets. One of the points in the tickets is that when you run the script against a Screen (as you did above in step 1) then the annotation on single wells is missing. When run against a plate this shoiuld work as of June this year. The scenario was not updated with respect to this PR (scenario is unaware of this PR). I do not think you should be missing anything on your branch. If your setup is wrong, in my experience you would not get accross to the output like |
|
@ximenesuk : The "populate_roi.py does not work" ticket is https://trac.openmicroscopy.org/ome/ticket/12235 |
|
@pwalczysko Note from the description that this PR fixes @manics do you have any sources of test data that should test the cli? And any guidance on |
|
@ximenesuk : This is the other ticket considering the populate_metadata.py - the two tickets pasted by me here fully describe all my knowledge about the status of this problematics (as indicated, my last test on this was done this year on the users' meeting in Paris) https://trac.openmicroscopy.org/ome/ticket/12211#comment:12 |
|
Essentially, The corresponding UI work has not been done- i.e. the table annotation is not removed, and annotations on wells aren't displayed, only those on images. #4038 is a temporary hack to force the display of Image and Well annotations.
I'd expect the behaviour of |
|
|
|
And sources of data...just what's in the scenario. Assuming |
|
Okay, so after a restart of the server the bulk annotation of a Plate worked. However, the webclient on my local server is taking 15 seconds to respond to every request so I think the earlier problem is likely a local issue unless there is anything else in the metadat branch that might complicate things. I'll continue later after a laptop restart. |
|
You're welcome to test against dogfish (which is where the |
|
I think I have gone as far as I can with this one without spending a bit more time catching up on the IDR side of things. I've tested the basic listing and populating using |
|
I've got another PR building on top of this, further extending the plugin, and it's staying on the |
|
@joshmoore Over to you for further comments (note I'm already building on this in #4071 so if you prefer I could close this one and have the whole plugin reviewed at once) |
|
Various issues while testing: (I'll update this comment)
|
|
First two points in above comment fixed in #4062 08faf6f |
|
What do you prefer, close this PR and review #4062 as one big PR when it's done? Or merge this (without fixes) since it doesn't break anything? FYI Your fs changes are in commit manics@8347d8a which only changes |
|
Regarding the RFE However, with the increasing number of changes to existing methods in |
|
@pwalczysko Regarding this PR, would you have any objections to me removing |
|
@manics : assuming that |
|
@pwalczysko : I assume will finish that conversation when this comes back to develop, perhaps for 5.2? Merging for SiB. cc: @jburel @ximenesuk |
Replacement for @joshmoore #3936
Also:
populate_roiTesting:
omero metadata --helpomero metadata populate --file input.csv Screen:123omero metadata populate --file input.csv Plate:123omero metadata populate --context bulkmap(uses bulk-annotation OMERO.table)omero metadata populate --context bulkmap --file fileidomero metadata populateroi Plate:123omero metadata {summary,original,measures,bulkanns,mapanns,allannas,rois} ...omero metadata rois Object:Id--reportflag for additional output@pwalczysko The fix for populate_roi should be in here thanks to @joshmoore