We're Hiring!

merge identical tags

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

merge identical tags

Postby sameh » Tue Apr 17, 2018 11:45 am

Hello ,

I want to export all the images from one database and import them into another database.

when I export the dataset and import it into the new database I noticed that the tags are kept.

the problem is that tags are created multiple times. indeed if a tag is used for two different images, this tag is created twice. Is there a way to merge identical tags?

thank you very much
sameh
 
Posts: 29
Joined: Tue Apr 17, 2018 8:38 am

Re: merge identical tags

Postby wmoore » Wed Apr 18, 2018 9:59 am

Hi,

I've written an OMERO.script which you can upload to the server (needs Admin permissions) to allow client users to choose Tags to merge.

https://gist.github.com/will-moore/6e56 ... 040af3f94e

More info on OMERO.scripts https://docs.openmicroscopy.org/omero/5 ... index.html
If your Admin puts this script on the server in /lib/scripts/omero/util_scripts/Merge_Tags.py
then you will be able to run this from the client, entering a name of a Tag you want to merge.

NB: this script has only had limited testing, so please test for yourself on a small sample before using in production. In particular, it only transfers Images from the deleted Tags to the remaining Tag. So any other objects on the deleted Tags will get unlinked (E.g. Projects, Datasets etc).

Hope that works for you,

Will.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest