OMERO scripts
Project description
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
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.
Copyright
2010-2021, The Open Microscopy Environment
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file omero-scripts-5.7.3.tar.gz
.
File metadata
- Download URL: omero-scripts-5.7.3.tar.gz
- Upload date:
- Size: 88.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30cdd68d809e9c9a64b1d8e1ff28284a0d277deb15cd327b1080b4bd0d1eab7d |
|
MD5 | 2052ff4070089da0fb0edf74e82c4259 |
|
BLAKE2b-256 | f68f160ad8dd1cbc1e65521b49c8e4ef44028cf6f6d9e9595b9ad5c1d48fffa1 |
File details
Details for the file omero_scripts-5.7.3-py3-none-any.whl
.
File metadata
- Download URL: omero_scripts-5.7.3-py3-none-any.whl
- Upload date:
- Size: 116.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8036ddb26fdd21b98c490e45d7ab78f442a3d88329786f8df602eac62b1d802b |
|
MD5 | 3593867ec477d6277409858ef8f3eeec |
|
BLAKE2b-256 | 33fb866577901cbfb0c5450c18ac4d0f584616f6b20d958b6ed5614801219609 |