Skip to main content

OMERO Vitessce multimodal data viewer plugin for OMERO.web

Project description

Badge_OMERO Badge_PyPI

OMERO.omero_vitessce

OMERO Vitessce multimodal data viewer.

Installation

This section assumes that an OMERO.web is already installed.

Install the app using pip:

NB: You need to ensure that you are running pip from the python environment where omero-web is installed.

$ pip install -U omero-vitessce

Add the app to the omero.web.apps setting:

$ omero config append omero.web.apps '"omero_vitessce"'

Add omero_vitessce as a tab in the right-hand-side panel:

$ omero config append omero.web.ui.right_plugins '["Vitessce", "omero_vitessce/webclient_plugins/right_plugin.vitessce.js.html", "vitessce_tab"]'

Add omero_vitessce as an open-with option:

omero config append omero.web.open_with '["omero_vitessce", "open_vitessce", {"supported_objects": ["project", "dataset", "image"], "label": "Vitessce"}]'

Add the omero web address (replace ´'"http://localhost:4080"'´ with your address):

$ omero config set omero.web.omero_vitessce.serveraddress '"http://localhost:4080"'

Now restart OMERO.web as normal for the configuration above to take effect.

omero-web-zarr

While omero-web-zarr is not a requirement, but it is strongly recommended to have it installed and enabled for using this plugin omero-web-zarr is necessary to take advantage fully of the autogenerated config files for the Vitessce viewer, as they rely on omero-web-zarr to serve the images to the viewer.

Please see https://pypi.org/project/omero-web-zarr/ for instructions on installing and enabling the omero-web-zarr plugin.

Usage

Selecting the viewer

The plugin can be used with:

  • Vitessce Tab on the right hand side panel.
  • Open with -> Vitessce on the left side panel.

Right-hand-side panel:

  • Prexisting config files:
    Right-Config
    Clicking the link will open a new tab with the viewer displaying the selected configuration.
  • Autogenerating config file:
    Right-Auto
    Clicking the button will autogenerate a config file and attach it to the dataset/image, and the viewer displaying the autogenerated configuration.

Open-with:

Right click on a dataset or an images in the left-panel and select open-with -> Vitessce.
This will open the vitessce viewer in a new tab using the first configuration file attachement. Openwith-image

Viewer window

After using a The Vitessce viewer is opened in a new tab: image

Config files

The omero-vitessce plugin considers all files with the .json.txt extension attached to the image or dataset as config files for the viewer. The config files should follow the vitessce view-config-json format: http://vitessce.io/docs/view-config-json/

Autogenerated config files

Config files can be autogenerated for:

  • images: A spatial view and a layer controller view are setup for the image.
  • datasets: All images in the dataset are bundled togheter and a spatial view and a layer controller are setup.

Assumes that the images are in the OME-NGFF format v0.4 and that omero-web-zarr is available to serve the images.

Custom config files

Custom config files should have a .json.txt extension and added as attachements to a dataset or an image. The configuration files does not need to refer to the dataset / image it is attached to and can refer to other images.

examples

Serving the images / data /metadata

Images and data can be served through:

  • omero-web-zarr: OME-NGFF images only.
  • omero-openlink: all images and file attachements.
  • ´webclient/annotation/´ endpoint: only for Annotations (useful for file attachments).

Development

Sources

The main sources are:

React web app

omero_vitessce web app

We serve a custom version of the vitesce app: http://vitessce.io/

The app sets up a vitessce view configured through a text file in json format: http://vitessce.io/docs/view-config-json/

The configuration file is taken from the ?config url parameter.

Installation

This project was created with Create React App.

You can run this project in development mode or as an OMERO.web Django app.

To get started:

$ cd vitessce_app
$ npm install

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder and copies the html and static files to the Django app in vitessce app. See the deploy_build.sh script.

You also need to install the app into your omero-web environment:

# cd to the root of the repo
$ pip install -e .

You will need to have the app configured in your OMERO.web install:

$ omero config append omero.web.apps '"omero_vitessce"'
$ omero config append omero.web.ui.right_plugins '["Vitessce", "omero_vitessce/webclient_plugins/right_plugin.vitessce.js.html", "vitessce_tab"]'
$ omero config set omero.web.omero_vitessce.serveraddress '"http://localhost:4080"'

It bundles React in production mode and optimizes the build for the best performance.

See the Create React App section about deployment for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omero_vitessce-0.3.0.tar.gz (8.7 MB view details)

Uploaded Source

Built Distribution

omero_vitessce-0.3.0-py3-none-any.whl (8.8 MB view details)

Uploaded Python 3

File details

Details for the file omero_vitessce-0.3.0.tar.gz.

File metadata

  • Download URL: omero_vitessce-0.3.0.tar.gz
  • Upload date:
  • Size: 8.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for omero_vitessce-0.3.0.tar.gz
Algorithm Hash digest
SHA256 cf7ac5b8d238c9605264105d1f44631247f945d5979e1ce334c6ebe3f9de6886
MD5 dcfbd7da2db731a8ec0ae058cb500d07
BLAKE2b-256 26405c66b522370582f1685de9387ec35606fed3b1fb06aec7df0297bab867f9

See more details on using hashes here.

Provenance

File details

Details for the file omero_vitessce-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for omero_vitessce-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbcd6ae17688c431ae1eb3750e712f95b330d21f5f30cf3be9cbb8124f07979b
MD5 26fe691241a0e091c6ce51b3ed3b8594
BLAKE2b-256 1f1e400c2eed21a6dc43e1badb609a3e48d8996e63b9e13815df3bfdfde9520e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page