A module with convenience functions for writing Python code that interacts with OMERO.
Just pip install ezomero
and you should be good to go! The repo contains the specific package versions we test ezomero
with in setup.py
, but any Python>=3.8 and latest omero-py
and numpy
should work - note that this package is in active development!
If you want to use get_table
and post_table
to/from Pandas dataframes, you need to install ezomero[tables]
- that install an optional pandas
dependency. Installing ezomero without this will default get_table
and post_table
to use lists of row lists as their default.
In general, you will need to create a BlitzGateway
object using ezomero.connect()
, then pass the conn
object to most of these helper functions along with function-specific parameters.
Documentation is available at https://thejacksonlaboratory.github.io/ezomero/
This work covers issue #65. We have moved those parameters to the Shape
object instead of ROI
, so that a single ROI with shapes of differing colors and widths can exist.
Docstrings updated, passing test, flake8 and type hinting
__init__.py
.Sphinx is "double documenting" attributes of certain classes using dataclasses.
This can be fixed by editing Sphinx's conf.py, specifically autodoc_default_options = {'exclude-members'}
should include all double-counted attributes.
It would be useful to have a verbose
option for connect
that tells you (i.e. stdout) from where the login information is coming.
Maybe also print the values (besides password)
ezomero should have a DOI!
Is your feature request related to a problem? Please describe. Right now, we only set these parameters at the ROI level, where they could potentially be different between Shapes.
Describe the solution you'd like
Extra few parameters for every ezShape
class.
Is your feature request related to a problem? Please describe.
Right now (as of PR #58), post_table()
cannot do cross-group posting - that is specifically because the OriginalFile
created for the file annotation that contains the table seems to always be created on the original group for the conn
object, ignoring the conn.SERVICE_OPTS.setOmeroGroup()
from set_group()
and leading to a group mismatch between FileAnnotation
and OriginalFile
.
Describe the solution you'd like Just make it work!
Describe alternatives you've considered
One alternative is trying a different solution for switching groups such as conn.setGroupForSession()
and see if it makes any difference.
Full Changelog: https://github.com/TheJacksonLaboratory/ezomero/compare/1.2.0...1.2.1
Full Changelog: https://github.com/TheJacksonLaboratory/ezomero/compare/1.1.1...1.2.0
ezimport
by @erickmartins in https://github.com/TheJacksonLaboratory/ezomero/pull/57Full Changelog: https://github.com/TheJacksonLaboratory/ezomero/compare/1.1.0...1.1.1
get_project_ids
, get_dataset_ids
) by @erickmartins in https://github.com/TheJacksonLaboratory/ezomero/pull/51ezomero.ezimport
by @erickmartins in https://github.com/TheJacksonLaboratory/ezomero/pull/52Full Changelog: https://github.com/TheJacksonLaboratory/ezomero/compare/1.0.1...1.1.0
Label
, Polyline
) and extended Line
to allow start/end markers by @erickmartins in https://github.com/TheJacksonLaboratory/ezomero/pull/50Full Changelog: https://github.com/TheJacksonLaboratory/ezomero/compare/1.0.0...1.0.1
New in this release:
API changes
get_roi_ids
, get_shape_ids
and get_shape
, plus relevant tests.get_pyramid_levels
and the pyramid_level
parameter to get_image
, allowing an user to see which pyramid levels are available for an image and then request pixels at a specific level.json_api
submodule, with create_json_session
and get_rendered_jpeg
functions, and tests to go with them. dim_order
parameter to get_image and post_image.Bug fixes and improvements
post_dataset
and post_image
now honor the group from the conn
argument when creating orphan datasets/images, rather than using whatever group is a user's default.The Jackson Laboratory: Leading the search for tomorrow's cures.
GitHub Repositoryomero omero-server omero-api python imaging-solutions