We're Hiring!

duplicate an image on omero

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

duplicate an image on omero

Postby sameh » Tue Nov 27, 2018 12:27 pm

Hello everyone

On omero, is it possible to duplicate an image to avoid importing it twice.

We often need to share the same image for two different projects, in different groups so we often need to copy / duplicate the image.

thank you so much
sameh
 
Posts: 29
Joined: Tue Apr 17, 2018 8:38 am

Re: duplicate an image on omero

Postby jmoore » Tue Nov 27, 2018 1:04 pm

Hi Sameh,

are you looking to let the users duplicate an image from the client-side or is this something you are taking care of? In the latter case, in-place import would let you have the same files imported twice without duplicating storage.

~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: duplicate an image on omero

Postby sameh » Tue Nov 27, 2018 2:19 pm

jmoore wrote:Hi Sameh,

are you looking to let the users duplicate an image from the client-side or is this something you are taking care of? In the latter case, in-place import would let you have the same files imported twice without duplicating storage.

~Josh


thank you for your help,

we are looking to let the users duplicate an image from the client-side.
sameh
 
Posts: 29
Joined: Tue Apr 17, 2018 8:38 am

Re: duplicate an image on omero

Postby jmoore » Tue Nov 27, 2018 2:29 pm

There's no button in the clients that the user can click on at the moment. I would assume that the quickest route to doing so would be to write an OMERO script. Roughly:

  • User navigates to an image
  • User goes to script mention and clicks on "Duplicate"
  • In the script, load the clicked image
  • Find the path to the files in /OMERO/ManagedRepository
  • Run `bin/omero import --transfer=ln_s ...` with that path
  • Output the new image ID to the user

This would be a great addition to https://github.com/ome/scripts/tree/develop/omero/import_scripts

~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest