Skip to content

Conversation

@CFGrote
Copy link
Contributor

@CFGrote CFGrote commented Dec 21, 2021

This PR adds scripts originally maintained by @evenhuis to support bulk annotation via csv files and dataset descriptions. The original code was ported to python3, bugs fixed and rudimentary tests added.

Marked as Draft here and seeking feedback and contributions from @will-moore , @ahamacher and others as discussed in this images.sc thread.


Update: Please see #193

Copy link
Member

@will-moore will-moore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some initial comments...

if( existing_kv != updated_kv ):
nimg_updated = nimg_updated + 1
print("The key-values pairs are different")
remove_MapAnnotations( conn, 'Image', img.getId() )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is named incorrectly - should be remove_map_annotations.



# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def get_existing_map_annotions( obj ):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: should be get_existing_map_annotations


authors=["Christian Evenhuis"],
institutions=["MIF UTS"],
contact="[email protected]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the authors and maybe institutions in all scripts to add yourself and OME team?
But certainly update the contact in all scripts, probably to https://forum.image.sc/tag/omero. cc @joshmoore ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That tag is certainly fine thought we could also create an omero-scripts or similar if there's interest.

joshmoore added a commit to joshmoore/omero-scripts that referenced this pull request Jan 6, 2022
@joshmoore joshmoore mentioned this pull request Jan 6, 2022
@joshmoore
Copy link
Member

Since it's happened to me on other repos, I took the time to at least explore saving the history in #192

joshmoore added a commit to joshmoore/omero-scripts that referenced this pull request Jan 11, 2022
@will-moore
Copy link
Member

@CFGrote Just looking to test the various scripts added here, using your blog at https://mpievolbio-scicomp.pages.gwdg.de/blog/post/2020-09-03_omerobulkannotation/ as a guide.
I notice that doesn't mention KeyVal from Description, KeyVal from Filename or Remove KeyVal and I can't guess from the script dialog description how to use them. Do you use these scripts?
I'm wondering if we really want to include them here; Is the cost of maintenance, testing etc justified?

@CFGrote
Copy link
Contributor Author

CFGrote commented Jan 15, 2022 via email

@joshmoore
Copy link
Member

Closing in favor of #193

@will-moore
Copy link
Member

@CFGrote I think KeyVal_from_Filename functionality is provided by the auto-tagging omero.web plugin to create Tags rather than KV pairs. Certainly if you've never used it then let's keep thing simpler by not including it.

I've created an issue for RemoveKeyVal #194

Moving this discussion to #193...

@CFGrote
Copy link
Contributor Author

CFGrote commented Jan 18, 2022 via email

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants