Users can now view, edit and add new annotations - regions of interests and texts - to their images of interest online. The following sections describe the steps for adding, deleting, editing and viewing annotations using the PhenoImageShare annotation tool.
Tool main feature and widgets (dev release)
Widgets on the annotation interface - version 001 (development)
- Annotation tool box
- Viewing / drawing panel
- Ontologies panel
- Toggle mode button
- Metadata panel ?
The screenshot below shows the detail view with the "Annotation tool" button.
Navigating to the tool
- Click on "Annotation Tool" button on the detail view launches the tool. Tool's default mode is view mode.
- Enable drawing mode by clicking on the "View" button on the top left corner of the annotation tool. Please note that annotations not created by current user are marked up with dashed lines
- Hovering annotaitons - hovered annotations are marked in blue.
The screenshot below shows the annotation interface.
Drawing a region of interest
Drawing a region of interest is straight forward. Follow the steps below to draw a region of interest (ROI) on image.
- Ensure that drawing mode is enabled.
- Select object to draw from toolbox. Only rectangle is presently supported in v0.0.1 (development).
- Draw selected object - draw a box (ROI) by holding and dragging mouse pointer in the drawing area containing the image.
The screenshot below shows a region of interest drawn by a user.
Next section describes addition of textual annotations to the drawn region of interest.
Adding textual annotations
Textual annotations can be added to the graphical objects with the following steps.
- Search ontologies (e.g. ICO). Multiple ontologies can be searched and selected from dropdown list.
- Select ontology of interest from list or search performed above. Ontology selected is automagically added to the selection input box as well as the panel below selection box. Multiple ontologies can be added to input box.
- From the drawing area (on image), select a graphical object (markup) to annotate.
- Navigate to term of interest on ontology trees produced from steps 1 and 2.
- Tick checkbox against term (s) of interest. Select/check as many terms as you want on the ontology trees.
- When done selecting terms, right click anywhere on the tree. Context menu appears.
- Highlight (not select) "Add term" menu - which would produce submenus of various types of annotation terms.
Following submenus are available in the context menu.
- As Depicted Anatomy
- As Expression Anatomy
- As Abnormal Anatomy
- As Phenotype
- Click on submenu to add selected / ticked terms as.
- Repeat steps 1-9 as many times as desired
Note: Development release supports ontologies from bioportal only
The figure below shows the procedure described above.
It should also be noted that annotations are not saved automatically. Annotations (graphical and textual) can be saved by clicking on the "save" button in the toolbox. Ensure that "edit" / "draw" mode is enabled, as the toolbox buttons are disabled in "view" mode. Please see section "Possible annotations error messages" below for possible errors that could result from saving annotations.
The figure below shows saving of annotations to PhenoImageShare annotation data store.
Alerts and Notifications
Notifications to users are triggered based on following actions on annotation tool;
- Saving annotations to data store
- Adding textual annotations / terms to graphical objects
- Switching between annotation modes - view or draw.
Figure below shows annotation user notifications.
- ROIs for images not created by current user are marked up with dashed lines. This feature will not be fully supported until user management is implemented. However, an error is triggered if user attempts to edit / delete annotations not created by them, i.e. some of the annotations from image sources. Please see likely error messages in section "Possible annotations error messages".
- Tool presently supports addition of multiple ontology terms to multiple graphical objects (markups).
- Tool presently does not support moving multiple graphical objects (ROIs) around on image and saving group objects.
- Users can navigate to the detail view to see newly added annotations.
Possible annotations error messages1.) Some of the x values are outwith bounds 2.) At least 1 annotation is required to create a ROI. Please provide some observation, phenotype, expression or anatomy information. 3.) User provided does not match the user of the annotation. Annotation was not deleted.
- [HWU] Some of the x values are outwith bounds. Thrown when a user tries to edit whole image annotation.
- [EBI] At least 1 annotation is required to create a ROI. Please provide some observation, phenotype, expression or anatomy information. Thrown when no textual annotations are associated with new graphical objects and user attempts to save only graphical objects.
- [EBI] User provided does not match the user of the annotation. Annotation was not deleted. Triggered when current user edits and attempts to save annotation not created by them.