A set of utilities for exporting a transfer packet from an OMERO server and importing it in a different server. Developed by the Research IT team at The Jackson Laboratory.
Project description
omero-cli-transfer
An OMERO CLI plugin for creating and using transfer packets between OMERO servers.
Transfer packets contain objects and annotations. This project creates a zip file from an object (Project, Dataset, Image, Screen, Plate) containing all original files necessary to create the images in that object, plus an XML file detailing the links between entities, annotations and ROIs thereof.
The CLI plugin add the subcommand transfer
, which in its turn has two further subcommands omero transfer pack
and omero transfer unpack
. Both subcommands (pack and unpack) will use an existing OMERO session created via CLI or prompt the user for parameters to create one.
Installation
tl;dr: if you have python>=3.7
, a simple pip install omero-cli-transfer
might do. We recommend conda, though.
omero-cli-transfer
requires at least Python 3.7. This is due to ome-types
requiring that as well;
this package relies heavily on it, and it is not feasible without it.
Of course, this CAN be an issue, especially given omero-py
officially only supports Python 3.6. However,
it is possible to run omero-py
in Python 3.7 or newer as well. Our recommended way to do so it using conda
.
With conda installed, you can do
conda create -n myenv -c ome python=3.7 zeroc-ice36-python
conda activate myenv
pip install omero-cli-transfer
It is possible to do the same thing without conda
as long as your python/pip version is at least 3.7,
but that will require locally building a wheel for zeroc-ice
(which pip does automatically) - it is a
process that can be anything from "completely seamless and without issues" to "I need to install every
dependency ever imagined". Try at your own risk.
Usage
omero transfer pack
Creates a transfer packet for moving objects between OMERO server instances.
The syntax for specifying objects is: object
:id
where object
can be Image, Project, Dataset, Screen or Plate.
Project is assumed if object:
is omitted.
A file path needs to be provided; a zip file with the contents of the packet will be created at the specified path.
Types of annotations packaged: MapAnnotations, Tags, CommentAnnotations, FileAnnotations, LongAnnotations (ratings). Types of ROIs packaged: Point, Line, Ellipse, Rectangle, Polygon, Polyline, Label, Arrow.
Examples:
omero transfer pack Image:123 transfer_pack.zip
omero transfer pack Dataset:1111 /home/user/new_folder/new_pack.zip
omero transfer pack 999 zipfile.zip # equivalent to Project:999
omero transfer unpack
Unpacks an existing transfer packet, imports images/plates as orphans and uses the XML contained in the transfer packet to re-create links, annotations and ROIs.
--ln_s
forces imports to use the transfer=ln_s option, in-place importing files. Same restrictions of regular in-place imports apply.
--output
allows for specifying an optional output folder where the packet will be unzipped.
Examples:
omero transfer unpack transfer_pack.zip
omero transfer unpack --output /home/user/optional_folder --ln_s
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-cli-transfer-0.2.0.tar.gz
.
File metadata
- Download URL: omero-cli-transfer-0.2.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab4ac86158320131568aa410f8d5f1dee622521aeef4cdcacf73670135a3319 |
|
MD5 | 8a01b0dd97febaae84bbcd8d44e04a1c |
|
BLAKE2b-256 | e42ad924d60d490f4b1deb0b483c3e964081cfbb14dc40aac4372eddc68be9f4 |
File details
Details for the file omero_cli_transfer-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: omero_cli_transfer-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 198f1a59827db11d1c3869983ccb7afd909cd19294ca38691c8ba54fecd15d05 |
|
MD5 | dc01f1b677601d7db4623ac63fd5e411 |
|
BLAKE2b-256 | 62501eab0d22e6ba152579f25338cba10e4664992f31d7fdab5a15a90ace6d32 |