BIOMERO BIOMERO — BioImage Analysis in OMERO

License Project Status: Active DOI PyPI - Version PyPI - Python Versions Slurm OMERO fair-software.eu OpenSSF Best Practices Sphinx build pages-build-deployment python-package build python-publish build Coverage Status

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

The BIOMERO framework, for BioImage analysis in OMERO, allows you to run (FAIR) bioimage analysis workflows directly from OMERO on a high-performance compute (HPC) cluster, remotely through SSH.

This repository holds the BIOMERO Python library, biomero (also known as BIOMERO.analyzer). It is the analysis engine of the BIOMERO BIOMERO 2.0 stack: it connects an OMERO processor to a Slurm cluster over SSH and runs containerized (FAIR) workflows with durable, event-sourced workflow tracking. The other components of the stack are:

Every workflow run is uniquely identifiable and tracked in a database, and its results are accessible directly in OMERO.

What BIOMERO 2.0 adds to the 1.x scripts-only setup:

Feature

BIOMERO 1.x

BIOMERO 2.0

Workflow Tracking

Logs only

Full database events

Interface

Scripts only

Modern web plugin + scripts

Progress Monitoring

Manual

Live dashboards

Job History

None

Complete execution history

Analytics

None

Integrated Metabase

OMERO-Figure1_Overview_v5

For the design and FAIR features of BIOMERO 2.0, see the paper “BIOMERO 2.0: end-to-end FAIR infrastructure for bioimaging data import, analysis, and provenance”. Documentation of this library: https://nl-bioimaging.github.io/biomero/. Prebuilt BIOMERO processor container: https://hub.docker.com/r/cellularimagingcf/biomero.

⚠️ Warning: Default settings are intended for short/medium jobs (Slurm jobs time out after 45 minutes). For long workflows, review the time limit and the inline or detached execution choice first: see Long-running workflows.

Quickstart

To try this library locally with Docker, deploy the released NL-BIOMERO stack together with a local Slurm cluster:

  1. Deploy NL-BIOMERO from its latest release, not from master. Follow the Quickstart in the NL-BIOMERO README to start OMERO.web with OMERO.biomero.

  2. Set up a local Slurm cluster with SSH access, as the NL-BIOMERO Quickstart describes: NL-BIOMERO-Local-Slurm (or the GPU-enabled variant NL-BIOMERO-Local-Slurm-GPU), including the SSH alias from OMERO to Slurm.

  3. Import some images through the OMERO.biomero web importer: open OMERO.web at http://localhost:4080/omero_biomero/biomero/, go to Import > Import Images, browse to your data and start the import, then follow it under Import > Monitor. The BIOMERO.importer service imports the data into OMERO. (Alternatively, upload with OMERO.insight to localhost:4063.)

  4. Initialize the Slurm environment: run the OMERO script biomero > admin > SLURM Init environment... and wait; downloading the workflow images takes at least 10 minutes.

  5. Run a workflow, for example cellpose, in the OMERO.biomero Analyze tab:

    • Open Analyze > Image Workflows, select Cellpose and add the image(s) or dataset to segment.

    • Set the parameters, for example the nuclei channel (0 is grey, so use 1, 2 or 3 for RGB) and uncheck use gpu when your Slurm has no GPU (the local Slurm of step 2 has none).

    • Select an output dataset, for example hello_world, and run.

    • Follow the run under Analyze > Status; when it is done, refresh the OMERO Explore tab to find the hello_world dataset with the mask image.

    Prefer the OMERO scripts? Select your image or dataset and run biomero > __workflows > SLURM Run Workflow..., choose cellpose and, under Select how to import your results, change Import into NEW Dataset to hello_world.

The OMERO.biomero user guide describes the import and analysis steps in full.

Install the library

python3 -m pip install biomero          # core library
python3 -m pip install biomero[full]    # with the BIOMERO.scripts requirements
python3 -m pip install 'git+https://github.com/NL-BioImaging/biomero[full]'  # latest development version

The [full] extra needs zeroc-ice and omero-py, which require system libraries; for OMERO integration you may need to install them separately or use conda. For a custom (non-NL-BIOMERO) setup you also need a Slurm cluster with SSH access, an OMERO processor and the BIOMERO scripts: see Installation and setup (requirements, SSH, slurm-config.ini, init_slurm).

Documentation

The documentation holds the details that used to live in this README:

How to cite

If you use BIOMERO, please cite the paper:

Luik, T. T., Rosas-Bertolini, R., Reits, E. A. J., Hoebe, R. A., & Krawczyk, P. M. (2024). BIOMERO: A scalable and extensible image analysis framework. Patterns, 5(8), 101024. https://doi.org/10.1016/j.patter.2024.101024

To cite a specific software version, use the version DOI listed on Zenodo; the concept DOI that always resolves to the latest version is 10.5281/zenodo.8108214. For when to cite the BIOMERO 2.0 paper as well, BibTeX and software metadata, see Citing BIOMERO.

Maintenance and support

BIOMERO is actively maintained by the Cellular Imaging core facility at Amsterdam UMC, as part of NL-BioImaging. Ask questions on the image.sc forum (tag biomero) or open a GitHub issue; see the support policy.

Contributing

Contributions are welcome. See CONTRIBUTING.md for how to report issues, set up a development environment and open a pull request.

License

Apache-2.0, see LICENSE.