[ome-users] Getting a list of OMERO figures

William Moore (Staff) W.Moore at dundee.ac.uk
Tue Feb 7 11:50:32 GMT 2017


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


More information about the ome-users mailing list