Skip to main content

OMERO scripts

Project description

https://github.com/ome/omero-scripts/workflows/OMERO/badge.svg https://readthedocs.org/projects/omero-scripts/badge/?version=stable https://badge.fury.io/py/omero-scripts.svg

OMERO Core Scripts

This directory contains OMERO scripts which use the OMERO.scripts API. All scripts (e.g. *.py) present in the directory will be automatically distributed with all binary builds. Which file-endings will be detected and how they will be launched are both configured centrally in the server. .py, .jy, and .m (MATLAB) files should all be detected by default starting with OMERO 5.

Categories

Scripts are separated into several categories, one per directory.

Directory

Description

analysis_scripts

crunch images to produce numerical results and similar tasks

export_scripts

take one or more images as an input, and produce a representation for exchange

figure_scripts

take one or more images as an input, and produce a summary representation

import_scripts

are run on images after import for extra processing

util_scripts

perform other miscellaneous tasks like cleaning up or optimizing OMERO itself

Scripts which would like to rely on other scripts can use:

import omero.<sub_dir>.<script_name>

For this to work, the official script in question must be properly importable, i.e.:

def run():
    client = omero.scripts.client(...)

if __name__ == "__main__":
    run()

OMERO User Scripts

If you would like to provide your own scripts for others to install into their OMERO installations, please see https://openmicroscopy.org/info/scripts

Testing

Integration tests under test/ require an OMERO server with scripts installed. The tests are run by Travis for open PRs using omero-test-infra to deploy OMERO via Docker containers.

To run tests locally:

# All tests
$ python setup.py test

# Single test in a single file
$ python setup.py test -t test/integration/test_util_scripts.py -k test_dataset_to_plate

Usage

See https://omero-scripts.readthedocs.io/en/stable/

Release process

This repository uses bump2version to manage version numbers. To tag a release run:

$ bumpversion release

This will remove the .dev0 suffix from the current version, commit, and tag the release.

To switch back to a development version run:

$ bumpversion --no-tag [major|minor|patch]

specifying major, minor or patch depending on whether the development branch will be a major, minor or patch release. This will also add the .dev0 suffix.

Remember to git push all commits and tags.s essential.

The CI pipeline will automatically deploy the tag onto PyPI.

Project details


Download files

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

Source Distribution

omero-scripts-5.8.1.tar.gz (86.4 kB view details)

Uploaded Source

Built Distribution

omero_scripts-5.8.1-py3-none-any.whl (116.5 kB view details)

Uploaded Python 3

File details

Details for the file omero-scripts-5.8.1.tar.gz.

File metadata

  • Download URL: omero-scripts-5.8.1.tar.gz
  • Upload date:
  • Size: 86.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.19

File hashes

Hashes for omero-scripts-5.8.1.tar.gz
Algorithm Hash digest
SHA256 ea4c65aa8f23aca8cde5c510f98943f8b4eb976720f0e9a287edc50d0fb3b472
MD5 f7f684ce8f58beefe97f6c8b5f95698e
BLAKE2b-256 281e3a50971f8c807b1f8272dad04f0489181039d56e92281a170f397c9ab2c4

See more details on using hashes here.

File details

Details for the file omero_scripts-5.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for omero_scripts-5.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 452dae1b168e09da5611adff0b08639054e0a038166ca90f40055311867c262f
MD5 6e9acda9655ea0122c5dc95f5a256f11
BLAKE2b-256 2ced9700a086e251e9a626c9af115ed66fddb07da507fc81911b88a075449558

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page