Skip to main content

BIOMERO OMERO.biomero Plugin

🚀 This package is part of BIOMERO BIOMERO 2.0 — For complete deployment and FAIR infrastructure setup, start with the NL-BIOMERO Documentation 📖

Description

The OMERO.biomero plugin adds functionality to the OMERO web client, allowing users to upload images directly from the web client. The uploads are in-place, meaning that the data is not duplicated in OMERO but remains where it is. Users can monitor their uploads using a dashboard.

Additionally, the plugin provides a user-friendly interface to execute OMERO scripts and BioMero workflows and monitor their execution.

Features

  • Image Uploads: Upload images directly from the OMERO web client without duplicating data.
  • Upload Monitoring: Monitor the status and history of uploads using a dashboard.
  • Script Execution: Execute OMERO scripts through a user-friendly interface and monitor their execution.
  • Workflow Execution: Execute BIOMERO workflows on SLURM cluster and monitor their execution.
  • Optional ROI Output: Import label-image results and convert them into Polygon or Mask ROIs on the original images. BIOMERO automatically matches results to source images and selects label-like outputs on a best-effort basis.

Technologies Used

  • Frontend: React
  • Backend: Python/Django

Group folder mapping compatibility

Administrators manage importer group-to-folder mappings in the importer Admin Settings page. Saving mappings always writes the complete mapping object to:

  • group-mappings.json, configured by OMERO_BIOMERO_GROUP_MAPPINGS_FILE.

When biomero-config.json already exists, saving also replaces its group_mappings key. A missing legacy config is not created solely for group mappings. Its location is configured by OMERO_BIOMERO_CONFIG_FILE.

The conditional second write preserves compatibility with BIOMERO scripts that still read biomero-config.json["group_mappings"] directly. Both locations are replaced with the complete submitted object, so deleting a mapping in the UI also removes it from both files. Other top-level keys in biomero-config.json are preserved.

Reads remain backward compatible with deployments that only have biomero-config.json: mappings from both files are merged, and values from group-mappings.json take precedence when the same group exists in both.

Development

The following instructions assume Ubuntu OS. For development, we use NL-BIOMERO - dockerized OMERO setup.

Setup and development of plugin core/Django files

  1. Install Docker.
  2. Clone the omero-biomero.
  3. Clone the NL-BIOMERO repository and enter it.
  4. Folders with both repositories must be in the same parent folder.
  5. Enter NL-BIOMERO repository and start OMERO containers: docker compose --file docker-compose-dev.yml up. This compose file enables restarting OMERO Webclient server without causing the container to exit. It does not automatically start the Webclient server. It also mounts omero-biomero as a volume in the Webclient container. Changes to the plugin code are automatically reflected in the Webclient because pip installs the plugin in editable mode (see below).
  6. In new terminal, enter omero-biomero repository and execute ./omero-init.sh. This will start the OMERO Webclient server in background mode. It also installs the plugin in editable mode, so changes to the plugin code are automatically reflected in the Webclient.
  7. After making changes to the code outside of the folder webapp, they should be automatically reflected in the webclient. You can also execute ./omero-update.sh to restart the Webclient server and apply changes.

Testing

To run tests, create virtual environment, activate it and install the package in editable mode (this automatically pulls all dependencies from setup.py):

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -e .

Then you can run the tests using:

python manage.py test

Note: All dependencies (including biomero-importer>=1.0.0b5) are automatically installed from setup.py when you install with -e .

Setup and development of the plugin frontend

  1. Install Node.js and Yarn.
    • For Windows, install Corepack as superuser, then you can run yarn commands like corepack yarn install
  2. Enter omero-biomero repository and enter the webapp folder.
  3. Run yarn install to install the necessary packages.
  4. Run yarn watch to watch for changes in the code and automatically rebuild the code on save. Each time code is rebuilt, Webclient server will automatically restart (~30s), which will update JS bundle in the Webclient static folder. Reload the Webclient page to see changes.
  5. To build the code for production, run yarn build. This will also copy the JS bundle to the Webclient static folder and restart the Webclient server.

Troubleshooting

  • Sometimes the plugin page loading will fail after multiple server restarts and you will see 404 error in the console, informing that plugin JS bundle could not be found, even though the files *are present on the server at the correct location. We found that the only way to fix this is to restart NL-BIOMERO containers: docker compose --file docker-compose-dev.yml up in the NL-BIOMERO repository.

Download files

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

Source Distribution

omero_biomero-1.6.1.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omero_biomero-1.6.1-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file omero_biomero-1.6.1.tar.gz.

File metadata

  • Download URL: omero_biomero-1.6.1.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for omero_biomero-1.6.1.tar.gz
Algorithm Hash digest
SHA256 0ed81b4bca988455e3708ac544f4ac485f0a886c1fa746eabbf895be75cc166f
MD5 a772dbeccad37cd92987a13f50cc0143
BLAKE2b-256 6609d034555bdc6cd77e5c7443a949a1d7cd9d900c3cf29f120e8d62ec34f13d

See more details on using hashes here.

File details

Details for the file omero_biomero-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: omero_biomero-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for omero_biomero-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6c182b832810c4611def368414f734dda55688aa6386468bfe89cca8031000f
MD5 bc65b605153a39319b7f364956554217
BLAKE2b-256 7509a157395c67c4054b86a9dc9b160dfa920ff39b1ed3ec60d2fd60f124b21f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page