[ome-users] Getting a list of OMERO figures

Stephen Taylor stephen.taylor at imm.ox.ac.uk
Tue Feb 21 13:39:13 GMT 2017


Hi,

Thanks that gets into the database. Is there also a way to download and save the figure as a PDF or JPG/PNG without using wget/curl/urllib2?

Thanks,

Steve


> -----Original Message-----
> From: Stephen Taylor
> Sent: 10 February 2017 09:41
> To: OME User Support List <ome-users at lists.openmicroscopy.org.uk>
> Subject: RE: [ome-users] Getting a list of OMERO figures
> 
> Hi Will,
> 
> Thank you very much. I haven't had a chance to test it yet but will let you know
> how I get on.
> 
> Kind regards and thanks,
> 
> Steve
> =======================================
> Head of Computational Biology Research Group Weatherall Institute of
> Molecular Medicine University of Oxford
> 
> 
> 
> > -----Original Message-----
> > From: ome-users [mailto:ome-users-bounces at lists.openmicroscopy.org.uk]
> > On Behalf Of William Moore (Staff)
> > Sent: 07 February 2017 11:51
> > To: OME User Support List <ome-users at lists.openmicroscopy.org.uk>
> > Subject: Re: [ome-users] Getting a list of OMERO figures
> >
> > Hi Steve,
> >
> >  You just need to list file annotations with the correct namespace
> > “omero.web.figure.json”.
> >
> > You can do that in the Python Blitz Gateway with
> >
> > # set context to a cross-group query
> > conn.SERVICE_OPTS.setOmeroGroup(-1)
> >
> > for f in conn.getObjects("FileAnnotation", attributes={"ns":
> > "omero.web.figure.json"}):
> >
> >     # E.g. print something useful...
> >     print f.getId(), f.getFile().getName(), f.getOwner().getFullName()
> >
> > Hope that helps,
> >
> >   Will.
> >
> >
> > > On 7 Feb 2017, at 10:08, Stephen Taylor
> > > <stephen.taylor at imm.ox.ac.uk>
> > wrote:
> > >
> > > Hi,
> > >
> > > I am trying to get a list of the OMERO.figures in an OMERO database.
> > > I can
> > do this manually by logging into OMERO and then get a JSON string by
> > going to the URL:
> > >
> > > https://xxxxx/figure/list_web_figures/
> > >
> > > I'd like to do this regularly (e.g. nightly) so presumably I can
> > > automate this
> > using wget/curl/urllib2 but I wondered if there is a more official way
> > using the OMERO API?
> > >
> > > Kind regards and thanks,
> > >
> > > Steve
> > > =======================================
> > > Head of Computational Biology Research Group Weatherall Institute of
> > > Molecular Medicine University of Oxford
> > >
> > >
> > > _______________________________________________
> > > ome-users mailing list
> > > ome-users at lists.openmicroscopy.org.uk
> > > http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
> >
> >
> > The University of Dundee is a registered Scottish Charity, No:
> > SC015096 _______________________________________________
> > 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