Skip to main content

omero-quay

![Actions Status][actions-badge] Documentation Status

PyPI version PyPI platforms

omero-quay is a microscopy data transport layer between data management tools.

Currently, it supports the iRODS — OMERO architecture built at France BioImaging fbi-omero.

omero-quay orchestrate data transport between iRODS and OMERO

Objectives

  • Interact with data management tools APIs
  • Trigger actions:
    • Create / Read / Update / Delete
    • Transport / Import
  • Synch databases ⚠️

Schema driven development

  • manifest.yml defines the data schema in LinkML
  • follows an Investigation Study Assay hierarchy
  • maps APIs, objects ids, ACLs
  • only transports "crates", not individual files

Generate the pydantic classes:

gen-pydantic src/omero_quay/schema/manifest-schema.yml --template-dir=src/omero_quay/templates  > src/omero_quay/core/manifest.py

ZeroMQ

{ width="70%" }

  • Message = json dump of a manifest instance
  • Central brocker routes messages based on state

Example route:

{ width="60%" }

Install

This is early stage and only meant for developers.

For now, install from source.

  1. Get and install a conda distribution. We prefer miniconda
  2. Download omero-quay from this repository (as an archive or with git)
  3. In the omero-quay directory:
# create and activate the conda environment
conda env create -f environment.yml
conda activate quay

# install omero-quay in editable mode
uv pip install -e .
# install dev dependencies
uv pip install --group dev
# OPTIONAL : if you want to run notabook with Euporie
# the notebook group will automatically install dev dependencies
uv pip install --group notebook
python -m ipykernel install --user

For now, this software alone is not very useful, and works only within the omero-fbi frameworks. Work on setting up a docker compose view of this format is in the works. Look into the tests folder for examples.

Configuration

The configuration is described in quay.yml. On the client or server machine, adapt this file and copy it to /home/user/.config/quay.yml

In /etc/docker, add a file called "daemon.json", and copy these tunings inside:

{
  "default-ulimits": {
    "nofile": {
      "Name": "nofile",
      "Hard": 10000,
      "Soft": 10000
    },
    "nproc": {
      "Name": "nproc",
      "Hard": 10000,
      "Soft": 10000
    }
  }
}

This is to prevent the "Too many open files" eventual errors. More details about that here: https://thelinuxcode.com/set-docker-ulimits/

Usage

Remote client

Install

  • Install omero-quay (see above)
  • add irods server IP to /etc/hosts
  • Write the client configuration file and save it to $HOME/.config/quay.yml
---
irods:
  # This is the configuration for Montpellier
  IRODS_HOST: irods-mtp.omero-fbi.fr
ingest:
  POST_URL: https://mtp.omero-fbi.fr/post

Import data

(all paths below are relative to the omero-quay root directory where this README file resides)

  • Put an excel file with the relevant data at the root of the directory you want to import

  • Run the import client (make sure the quay environment is activated):

python scripts/desktop_cli.py other/path/to/your.xlsx path_in_irods

Service

On the OMERO server machine:

python scripts/run_service.py

Excel client

On a client machine

python scripts/excel_import.py

Autoingest with iRODS

TODO

Tests

In order to run tests, you need to boot up docker containers for the omero server, irods catalog provider and nfsrods.

This is achieved by running up.sh script in tests/docker

cd tests/docker
./up.sh

After some minutes and possible connection retries, you should have the containers running.

You can then run the tests from the root of the repo with pytest

TEST INSTALL DEV

WINDOWS WSL

installation from a fresh WSL

clone omero_quay (create a token under Setting if needed, use your in2P gitlab credential username using the token as password)

install docker following https://docs.docker.com/engine/install/debian/ https://docs.docker.com/engine/install/linux-postinstall/

install make : sudo apt install make

cd omero_quay
cp tests/containers/example.env tests/containers/.env

EDIT the .env file to replace TAG from local to dev: TAG=dev

make docker_pull
./tests/containers/get_test_data.sh
make docker_up
make docker_populate
export QUAY_TEST_DATA="/mnt/c/Users/paul-gilloteaux-p/Documents/GitHub/omero-quay/QuayTestData"
make nbtest

The path for QUAY_TEST_DATA should be modified to your own path.

your dev env should be up and accessible from localhost:4080

to look at the logs of the test notebook (nbtest), in another console: `make omero_logs

NB: If you did your gitclone from Windows and not wsl, sudo dos2unix all scripts

to restart the dev env once installed

make docker_purge
make docker_up
make docker_populate
export QUAY_TEST_DATA="/mnt/c/Users/paul-gilloteaux-p/Documents/GitHub/omero-quay/QuayTestData"
make nbtest

To restart Omero-web when debugging

cd tests/containers
docker compose restart omero-web

Metadata

Release files for omero_quay 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omero_quay 1.4.0
File Size Uploaded Provenance Actions
omero_quay-1.4.0.tar.gz 3.1 MB Without provenance Details for omero_quay-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omero_quay 1.4.0
File Interpreter ABI Platform Actions
omero_quay-1.4.0-py3-none-any.whl Python 3 none any Details for omero_quay-1.4.0-py3-none-any.whl

Total release size: 3.5 MB

Release files / omero_quay-1.4.0.tar.gz

Download URL omero_quay-1.4.0.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
1e616511ba214fb7f9cc08ce5c92e755102148d7f77672a47e451f80ef30899f
BLAKE2b-256 checksum
How to use checksums
1d251f14e98806dd56b28fa2a9ea81e7a176fc1b67ee48174a0d31373a511a8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.4 cpython/3.12.13 HTTPX/0.28.1

Release files / omero_quay-1.4.0-py3-none-any.whl

Download URL omero_quay-1.4.0-py3-none-any.whl
Size 454.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7a664d28d770f09eb5021b0d57e89e4063a80f3ebd480e08af6cb053b7f7ee3
BLAKE2b-256 checksum
How to use checksums
e889bc5d1dec0c13eb6abf56d97a0e104b54e09dbf03ed2d97eab6aa918c3bea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.4 cpython/3.12.13 HTTPX/0.28.1

Security for omero_quay 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page