Apps for Extending OMERO.web

OME Paris 2015

Will Moore | Ola Tarkowska

Outline

  • What's new in OMERO.web?
  • The OMERO.web framework
  • Creating an OMERO.web app
  • Example apps
    • OMERO.gallery
    • OMERO.figure

What's new in OMERO.web?

  • Search UI Demo on youtube
  • Map annotations
  • Preview panel
  • Image viewer
  • Robot Framework Selenium tests
  • OMERO.figure 1.1

Robot Framework
Selenium Tests


# E.g. Run rdef tests on Chrome:

$ ./build.py -f components/tests/ui/build.xml web-chrome -DTEST=rdef_test.txt
                    

Robot Framework
Selenium Tests

Daily Test Results

OMERO API

OMERO.web framework


OMERO.web documentation

webgateway API


See WebGateway documentation

Create an OMERO.web app

Show a Dataset of images


  # urls.py
  url( r'^dataset/(?P<datasetId>[0-9]+)/$', views.dataset ),
                    
  # views.py
  @login_required()
  def dataset(request, datasetId, conn=None, **kwargs):
    ds = conn.getObject("Dataset", datasetId)
    return render(request, "dataset.html", {"dataset": ds})
                    

  <!-- dataset.html -->
  <html><body>

    <h1>{{ dataset.getName }}</h1>

    {% for i in dataset.listChildren %}
      <img src="{% url 'webgateway.views.render_thumbnail' i.id %}" />
      {{ i.getName }}
    {% endfor %}

  </body></html>
                    
See Creating an app documentation

App examples

Webclient plugins

Webclient plugins

  • webtest examples included in OMERO.web:

$ bin/omero config append omero.web.ui.right_plugins
        '["ROIs", "webtest/webclient_plugins/right_plugin.rois.js.html", "image_roi_tab"]'

Example: OMERO.gallery

OMERO.figure

http://will-moore.github.io/figure/

Services used by OMERO.figure

OMERO.figure tech

Summary

Thank you


Any Questions?