Using Python API to work with ROI folders
Posted: Tue Nov 20, 2018 4:31 pm
Hi all,
I've been working on Python scripts to download ROIs from / upload ROIs to Omero, mostly based on the code examples listed here: https://docs.openmicroscopy.org/omero/5.4.9/developers/Python.html. From those examples I have working code to retrieve ROIs attached to an image as well as create ROIs and upload them to the server.
My question is: How can I use the Python API to work with ROI folders? By "work with", I mean:
I'm currently differentiating groups of ROIs by using a specific fill color and the `setTextValue()` method of each polygon object to attach a "standard" free-text descriptor, but this seems like a fragile way of doing things.
I wasn't able to find any documentation on working with the folders in Python, so any help would be appreciated.
Thanks!
I've been working on Python scripts to download ROIs from / upload ROIs to Omero, mostly based on the code examples listed here: https://docs.openmicroscopy.org/omero/5.4.9/developers/Python.html. From those examples I have working code to retrieve ROIs attached to an image as well as create ROIs and upload them to the server.
My question is: How can I use the Python API to work with ROI folders? By "work with", I mean:
- Can I retrieve a list of all available folders?
- When retrieving ROIs, can I specify a folder and retrieve only the ROIs associated with that folder?
- When creating / uploading ROIs, can I specify a folder that the ROI should be associated with?
I'm currently differentiating groups of ROIs by using a specific fill color and the `setTextValue()` method of each polygon object to attach a "standard" free-text descriptor, but this seems like a fragile way of doing things.
I wasn't able to find any documentation on working with the folders in Python, so any help would be appreciated.
Thanks!