[ome-users] Batch import of images AND attachments

Graeme Ball graemeball at googlemail.com
Tue Dec 10 14:32:38 GMT 2013


Hi John,

we wanted to do the same thing, and ended up writing a python script that
performs the upload in 2 steps:-
1. upload the images using the command line importer (you can invoke it
from python)
2. use the Blitz gateway to add attachments and annotations

The biggest problem is that the importer does not seem to return the ID of
the image after completing the upload, and you need this ID to add your
attachments etc. I resorted to the horrible hack of checking all image IDs
before and after import, which can obviously go wrong if a lot of imports
are happening at the same time.

Regards,

Graeme


On Tue, Dec 10, 2013 at 10:26 AM, John Webber (NBI)
<John.Webber at nbi.ac.uk>wrote:

>  Hi all,
>
>
>
> I have been using the command line importer to import images into an Omero
> instance as follows:
>
>
>
> bin/omero -s $RemoteHost -u "$User" -w "$Password" -p $Port import -d
> $Dataset $File
>
>
>
> Can anyone let me know if I can also use this format of command to import
> ATTACHMENTS to specific images and, if so, please can you advise me of the
> correct syntax?
>
>
>
> If it is not possible to import attachments to specific images, is anyone
> able to recommend how we can do a batch upload of images AND their
> attachments, into Omero?
>
>
> Thanks
>
> John
>
>
>
>
>
>
>
>
> *-------------------------------------------------------------------------------------------------------------------------------------------- *
>
>
> *John Webber *Computing and Information Services
>
> NBI Partnership Ltd
>
> Norwich Research park
>
> Colney Lane
>
> Norwich
>
> NR4 7UH
>
>
>
> E-Mail: john.webber at nbi.ac.uk
>
> Web:     http://www.nbi.ac.uk
>
> Tel:         +44(0)1603 450 818
>
>
>
> Helpdesk (Tel):  1234      HPC Support (Web):       http://hpc.nbi.ac.uk
> (NBI  internal)
>
>                                                 HPC Support (Tel):
> 2003  (NBI internal)
>
>
>
> *The NBI Partnership Ltd provides non-scientific services to the Institute
> of Food Research, the John Innes Centre, The Genome Analysis Centre and The
> Sainsbury Laboratory*
>
>
>
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20131210/329a72c2/attachment.html>


More information about the ome-users mailing list