Skip to content

Commit

Permalink
Merge pull request #45 from jburel/zarr_description
Browse files Browse the repository at this point in the history
remove the omero section
  • Loading branch information
jburel authored Apr 21, 2022
2 parents 7914959 + a9adbc6 commit e7cfbd4
Showing 1 changed file with 3 additions and 39 deletions.
42 changes: 3 additions & 39 deletions notebooks/zarr-public-s3-multiscale.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2026,42 +2026,6 @@
" display(a)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The Zarr image arrays only contain the image pixel data. An extension to the format stores the metadata required for viewing the image in a file `omero.json`.\n",
"\n",
"Note for the complete metadata you will have to query the IDR using the OMERO APIs:\n",
"- https://docs.openmicroscopy.org/omero/5/developers/json-api.html\n",
"- https://docs.openmicroscopy.org/omero/5/developers/Python.html"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Project: idr0083-lamers-sarscov2/experimentA\n",
"Dataset: Intestinal Organoids\n",
"Pixel size: 0.000996747 x 0.000996747 x None\n"
]
}
],
"source": [
"viewerinfo = requests.get(f'{endpoint}/{imagepath}/omero.json').json()\n",
"\n",
"meta = viewerinfo['meta']\n",
"pxsize = viewerinfo['pixel_size']\n",
"print(f'Project: {meta[\"projectName\"]}')\n",
"print(f'Dataset: {meta[\"datasetName\"]}')\n",
"print(f'Pixel size: {pxsize[\"x\"]} x {pxsize[\"y\"]} x {pxsize[\"z\"]}')"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -2261,7 +2225,7 @@
},
"source": [
"### License (BSD 2-Clause)\n",
"Copyright (C) 2020-2021 University of Dundee. All Rights Reserved.\n",
"Copyright (C) 2020-2022 University of Dundee. All Rights Reserved.\n",
"\n",
"Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n",
"\n",
Expand All @@ -2273,7 +2237,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -2287,7 +2251,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.8"
"version": "3.9.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e7cfbd4

Please sign in to comment.