Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete map annotations using populate metadata plugin #67

Open
atarkowska opened this issue Jan 4, 2017 · 1 comment
Open

Delete map annotations using populate metadata plugin #67

atarkowska opened this issue Jan 4, 2017 · 1 comment

Comments

@atarkowska
Copy link
Member

atarkowska commented Jan 4, 2017

Map annotations can be created in a 2 ways: using default and custom namespaces.

https://github.com/openmicroscopy/openmicroscopy/blob/metadata52/components/tools/OmeroPy/test/integration/metadata/bulk_to_map_annotation_context_ns2.yml

By running:

bin/omero metadata populate --context bulkmap --cfg /path/to/bulkmap-config.yml Screen:ID

all the columns listed directly under columns are added to MapAnnoptaiton object with a NS: openmicroscopy.org/omero/bulk_annotations.

Columns listed in a groups will be given NS provided in namespace filed.

Although there are 2 commands handling delete:

bin/omero metadata populate --context deletemap Screen:ID

deletes just openmicroscopy.org/omero/bulk_annotations

bin/omero metadata populate --context deletemap --cfg /path/to/bulkmap-config.yml Screen:ID

deletes any map annotations for the namespaces given in bulkmap-config.yml including the default one. Do we need both?


Deletion. By default script assumes any MapAnnotation is linked just to one Image or Well. With advance section (added in ome/openmicroscopy#4786) plugin allows to avoid duplicated MapAnnotations but delete doesn't respect it as currently there is no check across entire database if MapAnnotaitons are linked to images/wells across multiple containers.

cc: @manics @joshmoore @eleanorwilliams

@atarkowska
Copy link
Member Author

Possible use cases for deletion:

  • delete all MapAnnotaitons linked to Images/Wells in one Screen/Project with the respect to primary_group_keys.
  • delete selected MapAnnotations (e.g. given namespace)

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

No branches or pull requests

1 participant