This GitHub repository contains Jupyter notebooks to interact with OMERO data in different ways.
- Prepare AI training data sets using the micro-SAM annotator tool on OMERO datasets and screens. Saving the annotations back to OMERO allows for easy access and reuse of the training data.
- Use the training data to fine-tune micro-SAM models.
- Run inference on OMERO datasets using micro-SAM models.
- Upload metadata from MIHCSME (Minimal Information for High Content Screening in Microscopy Experiments) Excel files to OMERO, allowing for structured metadata storage and retrieval.
These notebooks are still in an early stage of development and may not be fully functional or stable. Any feedback is highly appreciated.
These notebooks can be run either locally by setting up the environments with Pixi, or by using the provided Docker image, which includes a Jupyter server and all necessary dependencies.
We use Pixi to manage the project's dependencies. Pixi simplifies environment management and ensures reproducibility across different platforms (Windows, Linux, macOS).
-
Install Pixi: If you haven't already, install Pixi on your machine.
# On most systems curl -fsSL [https://pixi.sh/install.sh](https://pixi.sh/install.sh) | bash
For more installation options, see the Pixi Installation Guide.
-
Set up the Environments: The project uses a single
pixi.tomlfile to define all environments. Thepixi installcommand will resolve and download all necessary packages.pixi install --all
This command will also create a
pixi.lockfile, which guarantees that everyone running the project will have the exact same package versions. -
Run the Notebooks: You can start the Jupyter server from any of the defined environments. For example, to use the environment for micro-sam:
# To start the Jupyter server with the micro-sam environment pixi run --environment microsam jupyter labTo run a different environment, simply change the
--environmentflag tocellpose,full, ordefault.
We provide a Docker container with all necessary dependencies and a pre-configured graphical desktop. This is the easiest way to get started and run GUI-based notebooks like napari.
- Install Docker Desktop.
- To view graphical applications like
naparifrom the container, a VNC client is needed.
-
Clone the repository and navigate to its directory:
git clone [https://github.com/yourusername/omero-ipynb.git](https://github.com/yourusername/omero-ipynb.git) cd omero-ipynb -
Build the Docker image: This command builds the container with all dependencies pre-installed.
docker build -t omero-notebooks-xfce -f Dockerfile_xfce_gpu . -
Run the container: This command runs the container with GPU support and exposes the necessary ports.
docker run -it --rm --gpus all -p 8888:8888 -p 6080:6080 omero-notebooks-xfce
- The
--gpus allflag enables GPU acceleration. - The
-p 8888:8888flag maps the Jupyter Lab port. - The
-p 6080:6080flag maps the VNC server port for the desktop.
- The
-
Access the server:
- Jupyter Lab: Open your web browser and navigate to the URL provided in the console output (e.g.,
http://127.0.0.1:8888/...). - VNC Desktop: Use your VNC client to connect to
localhost:6080to access the XFCE desktop.
- Jupyter Lab: Open your web browser and navigate to the URL provided in the console output (e.g.,
These notebooks are based on micro-sam. The notebooks allow to:
- Annotate datasets stored in OMERO. These annotations are stored with the original data using OMERO.tables, OMERO.ROIs. This structured storing of the annotations allows to train or fine-tune different AI models.
- Finetune micro-sam models.
- Run inference on OMERO-data.
For more detailed information, please refer to the micro-sam README.
Notebooks to apply Stardist segmentation on OMERO datasets (2D, 3D, and timeseries data).
These notebooks depend on a large number of open-source software packages. Some of the most important:
For questions, reach out to Maarten Paul (m.w.paul@lacdr.leidenuniv.nl). For issues or suggestions, please use the Issues section of the GitHub repository.
This repository is developed with the NL-BioImaging infrastructure, funded by NWO (National Roadmap for Large-Scale Research Facilities).