Created
November 19, 2021 23:06
-
-
Save oeway/575de5a666c31f749848af0fcbc59bc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<docs lang="markdown"> | |
# VizarrDemo | |
A demo plugin which uses Vizarr to visualize zarr images | |
See https://github.com/hms-dbmi/vizarr for details. | |
</docs> | |
<config lang="json"> | |
{ | |
"name": "VizarrDemo", | |
"type": "web-worker", | |
"tags": [], | |
"ui": "", | |
"version": "0.2.0", | |
"cover": "", | |
"description": "simple vizarr demo", | |
"icon": "extension", | |
"inputs": null, | |
"outputs": null, | |
"api_version": "0.1.8", | |
"env": "", | |
"permissions": [], | |
"requirements": [], | |
"dependencies": [] | |
} | |
</config> | |
<script lang="javascript"> | |
class ImJoyPlugin { | |
async setup() { | |
api.log('initialized') | |
} | |
async run(ctx) { | |
const viewer = await api.createWindow({ src: 'https://hms-dbmi.github.io/vizarr' }); | |
await viewer.add_image({ source: 'https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr' }); | |
} | |
} | |
api.export(new ImJoyPlugin()) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment