Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to set the physical sizes post import #1

Open
sbesson opened this issue Mar 16, 2018 · 1 comment
Open

Add script to set the physical sizes post import #1

sbesson opened this issue Mar 16, 2018 · 1 comment

Comments

@sbesson
Copy link
Member

sbesson commented Mar 16, 2018

From the submitters, The XY pixel units are 2 microns per pixel (0.5 pixels/micron), so a 250x250 pixel image represents a 500x500 micron field..

Since the raw data were PNG crops, this imaging metadata will need to be populated post import into the database.

@sbesson
Copy link
Member Author

sbesson commented Mar 20, 2018

Briefly investigated yesterday, my initial hope was to get this achieve this tasks using the basic CLI command i.e.:

  • omero hql to retrieve the list of images
  • omero obj update Image:xxx physicalSizeX=yyy to set the property

Unfortunately, the last part fails due to the fact physical sizes are Length object and this is not supported by the obj update subcommand as discussed with @joshmoore.
This might require a Python script using the API although @dominikl was considering whether this could be turned into a mini CLI plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant