Page 1 of 1

merge identical tags

PostPosted: Tue Apr 17, 2018 11:45 am
by sameh
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

Re: merge identical tags

PostPosted: Wed Apr 18, 2018 9:59 am
by wmoore
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.