-
Notifications
You must be signed in to change notification settings - Fork 15
Description
We want to be able organise figures in much the same way we can organise Images https://trello.com/c/LwAVYUjm/165-save-figures-in-folders
Adding File-Annotation support to Tagging, Project/Dataset (folders), and even OMERO.parade would be a lot of work and would also not provide a thumbnail / preview of the figures you are working with.
However, if we were to save the Figure as an OMERO Image and keep the Image-of-a-Figure linked to the figure FileAnnotation, then we can use all the existing functionality for organising Images.
We can already 'export' a Figure as a new Image in OMERO (currently this has no link back to the original figure file), but several changes are needed to make this workflow visible and easy to use. In particular, we need to keep the Figure and Image-of-a-Figure in sync as one entity.
- Instead of simply adding a Figure URL in the image description, we need to maintain the link between the exported Image and the figure itself. We could link the figure-FileAnnotation to the Image. This would make figures searchable since the JSON file would be indexed (need to test):
TODO:- First need to ensure that the figure wouldn't get accidentally deleted by a user in webclient or Insight. See Disable fileannotation delete openmicroscopy#5774
- Also, if the figure is also linked to the images that are IN the figure, we need to be able to distinguish between these and the figure-exported Image, possibly via an annotation on the Image or even its description.
- Open-with support should be extended to Files. Figure files (namespace) should open in Figure.
- For OMERO.figure users to know that this workflow is supported, we’d need these options to be more visible, such as in the figure Save dialog. E.g. option to also save as Image in OMERO, in a chosen Dataset. This will form the main entry point for this workflow. Needs some thought to design this UI.
- Update of the Image when the figure is updated (saved). This could happen automatically or after user confirmation. If it’s not possible to update the Pixels of an image, we’d need to replace it with a new image (copy all links etc) and delete the older one.
- If using a script to e.g. export all Figures in a certain Tag, need to iterate through all the figure-Images under the Tag and get the figure linked to each.
Potential issues:
- If we don't provide any features for organising Figure files, users will need to save as an Image before they can Tag, put in Dataset etc.
- Updating the Image-of-a-Figure when changes are saved to the Figure: Currently OMERO does not allow the pixels values to change once an image has been created. Can we work around this, or do we need to create a new Image, copy links & annotations to the new Image then delete the old one each time?