BIOMERO — BioImage Analysis in OMERO
🚀 This package is part of
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 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:
BIOMERO.scripts: OMERO scripts that use this library to run workflows from OMERO
BIOMERO.importer: automated data import service
BIOMERO.shallower: shared local and remote shallow-Zarr result normalization
OMERO.biomero: modern web interface plugin for OMERO.web
NL-BIOMERO: the containerized deployment stack and its documentation (start reading here)
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 |
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:
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.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.
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.)Initialize the Slurm environment: run the OMERO script
biomero>admin>SLURM Init environment...and wait; downloading the workflow images takes at least 10 minutes.Run a workflow, for example
cellpose, in the OMERO.biomero Analyze tab:Open Analyze > Image Workflows, select
Cellposeand add the image(s) or dataset to segment.Set the parameters, for example the nuclei channel (
0is grey, so use1,2or3for RGB) and uncheckuse gpuwhen 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
Exploretab to find thehello_worlddataset with the mask image.
Prefer the OMERO scripts? Select your image or dataset and run
biomero>__workflows>SLURM Run Workflow..., choosecellposeand, underSelect how to import your results, changeImport into NEW Datasettohello_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:
Installation and setup: pip extras, optional remote shallowing, Slurm and OMERO requirements, connecting OMERO to Slurm, containers, SSH, the
SlurmClientclassWorkflows and Slurm jobs:
slurm-config.ini, time limits, adding existing and custom workflows,descriptor.json, job scripts, batching, GPU, data transferOMERO workflow scripts and the web interface
Tutorials: connecting to a local or cloud Slurm and adding your FAIR workflows
Developer guides: event sourcing and views, testing and logging
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.