Skip to content

Instantly share code, notes, and snippets.

@joshmoore
Created December 20, 2021 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshmoore/8699c67118c567f38140702b9c84bf3e to your computer and use it in GitHub Desktop.
Save joshmoore/8699c67118c567f38140702b9c84bf3e to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import omero.scripts as scripts
client = scripts.client(
'Register_in_iRODS.py',
scripts.Long("Image_ID", optional=False),
scripts.String("Logical_Path", optional=False),
version="0.1.0",
contact="ome-users@lists.openmicroscopy.org.uk",
description="""
Uses python-irodsclient to send a message to an iRODS server.
Assumes NFSRODS
params:
Image_ID: id of the image which should be sent to iRODS.
Logical_Path: location in the iRODS zone where the directory should live.
""")
image_id = client.getInput("Image_ID").val
logical_path = client.getInput("Logical_Path").val
query = client.sf.getQueryService()
image_obj = query.getObject("Image", image_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment