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

Mapr annotations (rebased onto metadata53) #5222

Closed
wants to merge 16 commits into from
Closed

Mapr annotations (rebased onto metadata53) #5222

wants to merge 16 commits into from

Conversation

atarkowska
Copy link
Member

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 contain groupname indicating the namespace for the MapAnnotation and columns indicating the columns to be converted into the MapAnnotation. See

  • test/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:

advanced:
    well_to_images: yes

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

screen shot 2016-08-08 at 13 48 51

# 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

@atarkowska atarkowska mentioned this pull request Apr 4, 2017
@atarkowska
Copy link
Member Author

--rebased-from #4775

@atarkowska atarkowska closed this Apr 4, 2017
@atarkowska atarkowska deleted the rebased/metadata53/mapr-annotations branch April 4, 2017 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants