An experiment in querying OMERO.mapr IDR metadata using GraphQL.
This notebook should be run in the imagedata/idr-notebooks Docker image.
Run:
flask run
and go to http://localhost:5000/graphql in a web browser.
You should see a basic GraphQL IDE.
Example query:
{ image(id: 1030631) { annotations(mapr: GENE) { name value { name value } } } }
Pass -h ADDRESS
or -p PORT
to listen on a different interface or port.
IDR_HOST=idr.openmicroscopy.org IDR_USER=<USER> IDR_PASSWORD=<PASSWORD> pytest
tests/test_snapshots.py
makes use of SnapshotTest.
Run with pytest --snapshot-verbose
for more information, or pytest --snapshot-update
to update the snapshots.