[ome-users] help with custom importer

Josh Moore josh at glencoesoftware.com
Mon Nov 12 15:32:50 GMT 2012


On Nov 4, 2012, at 10:26 PM, Roy Wollman wrote:

> Hi,

Hi Roy,

> I am trying to write a simple custom importer which is essentially
> a wrap around the linux command line importer. My goal is to make sure that
> projects / dataset exist and create them if not.
> 
> Therefore I am trying figure out how to:
> 1. query omero to:  see if the project / dataset exist, if they do get the
> dataset id.
> 2. if they do not exist, create new ones, link them, and get the datasetid.
> 3. Link the dataset id to the experiment id I got from the image metadata.
> 
> At this point I should be able to parse a call for the importer-cli that
> does everything I want to achieve.
> 
> I got lost in the OMERO api... if I understand correctly, I need to somehow
> ask whether the project / dataset exist using the iQuery service and
> potentially create new in the IContainer api. I couldn't figure out how to
> link my Experiment ID to a dataset.
> 
> I am currently using the matlab api which is easiest for me... the plan is
> to rewrite it in java once I figure out what I'm doing and then move to a
> more elegant solution than system calls to importer-cli...
> 
> I would really appreciate any pointers that could help me achieve the above
> three simple operations.

Sorry for chiming in late, but https://gist.github.com/3036255 may also be useful.

Cheers,
~Josh.

> Thanks!
> 
> Roy
> 
> 
> --
> 
> Roy Wollman, PhD
> University of California - San Diego
> Department Chemistry and Biochemistry &
> San Diego Center for Systems Biology
> 
> Room 5202 Urey Hall, 9500 Gilman Drive
> 
> La Jolla, CA 92093-0356
> Lab Phone: 858-224-2249
> E-mail: rwollman at ucsd.edu
> http://wollmanlab.ucsd.edu
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users




More information about the ome-users mailing list