We're Hiring!

delete key-value annotations loaded using metadata populate

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.

delete key-value annotations loaded using metadata populate

Postby johnm » Mon Mar 25, 2019 6:45 pm

Hi,

I used the CLI and "/bin/omero metadata populate" to load a csv of annotations and then I converted that into key-values using "/bin/omero metadata populate --context bulkmap --cfg xxxx.yml". That all worked great after cleaning my files appropriately and now the Parade tool works to search by key-values. Very excited about this. Unfortunately I am not able to delete key-values if I want to make a change. Is this possible?

I've tried this: /bin/omero delete Dataset:168 --exclude Image --include Annotation
and this: /bin/omero delete Dataset:168 --exclude Image --include MapAnnotation

and tables disappear, but key-values are still associated with images.

I can supply examples if necessary. I am using the most recent versions of omero and the metadata module.

Thanks in advance! -John
johnm
 
Posts: 3
Joined: Fri Mar 22, 2019 6:32 pm

Re: delete key-value annotations loaded using metadata popul

Postby mtbc » Mon Mar 25, 2019 7:05 pm

Dear John,

Code: Select all
/bin/omero delete Dataset/MapAnnotation:168

deletes all the key-values on the dataset and on anything within it. Does this achieve your goal? Remember you can use the --dry-run and --report options to be sure.

It's great that you're making good use of the metadata features.

Cheers,
Mark
User avatar
mtbc
Team Member
 
Posts: 282
Joined: Tue Oct 23, 2012 10:59 am
Location: Dundee, Scotland

Re: delete key-value annotations loaded using metadata popul

Postby johnm » Mon Mar 25, 2019 7:21 pm

That worked! The images are still there in their dataset folder and key-values are gone. Thanks!
johnm
 
Posts: 3
Joined: Fri Mar 22, 2019 6:32 pm


Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest