-
Notifications
You must be signed in to change notification settings - Fork 100
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
Mapr annotations (rebased onto metadata53) #5222
Closed
atarkowska
wants to merge
16
commits into
ome:metadata53
from
atarkowska:rebased/metadata53/mapr-annotations
Closed
Mapr annotations (rebased onto metadata53) #5222
atarkowska
wants to merge
16
commits into
ome:metadata53
from
atarkowska:rebased/metadata53/mapr-annotations
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Currently this assumes a single top-level default group
DeleteMapAnnotationContext modified to delete all configured namespaces if a config file is provided.
This partially reverts joshmoore@0e784ba which was a hack to modify the appearance of map annotations on wells vs images in plates in combination with https://github.com/openmicroscopy/openmicroscopy/pull/4038/files
Merged
--rebased-from #4775 |
This was referenced Apr 11, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the same as gh-4775 but rebased onto metadata53.
What this PR does
Implements the grouping of MapAnnotations in separate namespaces required for https://trello.com/c/VVUqCeZC/467-populate-map-annotations
The processing of existing bulkmap configuration files is unchanged.
New support is added for a
group
column type in the configuration file, which must containgroupname
indicating the namespace for the MapAnnotation andcolumns
indicating the columns to be converted into the MapAnnotation. Seetest/integration/metadata/bulk_to_map_annotation_context_ns.csv
test/integration/metadata/bulk_to_map_annotation_context_ns2.yml
For examples.
Currently this implements deduplication of MapAnnotations within a single invocation only. This means if existing MapAnnotations are already present
omero metadata populate
may create a duplicate.Testing this PR
Import a plate:
bioformats/tools/mkfake -rows 2 -columns 3 test-plate.fake
omero import test-plate.fake
Add a bulk annotation to the plate:
omero metadata populate --file openmicroscopy/components/tools/OmeroPy/test/integration/metadata/bulk_to_map_annotation_context_ns.csv Plate:ID
Copy the bulk-map-annotation config file
components/tools/OmeroPy/test/integration/metadata/bulk_to_map_annotation_context_ns2.yml
and add the following at the end:This is a hack to get annotations on wells to display in the webclient.
Convert to MapAnnotations:
omero metadata populate --context bulkmap --cfg bulk_to_map_annotation_context_ns2.yml Plate:ID
The table data should be formatted as described by
bulk_to_map_annotation_context_ns.yml
i.e. some key-value pairs should go into a MapAnnotation with a custom namespace, the remainder should go into the bulk-annotations namespace
# Related reading - https://trello.com/c/VVUqCeZC/467-populate-map-annotations - https://github.com/eleanorwilliams/idr-metadata/pull/17 - https://github.com/eleanorwilliams/idr-metadata/pull/18 ## Edits - **Only** map annotations with a primary key defined are de-duplicated