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

Explore/Import from Neuroglancer URI #7385

Closed
fm3 opened this issue Oct 13, 2023 · 2 comments · Fixed by #7416
Closed

Explore/Import from Neuroglancer URI #7385

fm3 opened this issue Oct 13, 2023 · 2 comments · Fixed by #7416

Comments

@fm3
Copy link
Member

fm3 commented Oct 13, 2023

It would be nice if you could just paste the URI of a dataset viewed in neuroglancer into wk and have it searched for explorable dataset layers.

@frcroth
Copy link
Member

frcroth commented Oct 30, 2023

We need to determine what we want to read:
Here is an example Neuroglancer URI JSON:

{"dimensions":{"x":[4e-9,"m"],"y":[4e-9,"m"],"z":[3e-8,"m"]},"position":[100074.5,100000.5,4998.23583984375],"crossSectionScale":1,"projectionScale":262144,"layers":[{"type":"image","source":"precomputed://s3://bossdb-open-data/morgan2020/lgn/em","tab":"rendering","opacity":0.46,"blend":"additive","shaderControls":{"normalized":{"range":[78,255]}},"crossSectionRenderScale":0.12019062105556629,"name":"em"}],"selectedLayer":{"visible":true,"layer":"em"},"layout":"4panel","selection":{"layers":{"em":{"annotationId":"data-bounds","annotationSource":0,"annotationSubsource":"bounds"}}}}

We could read:

  • Dimensions (they may be inferred from the dataset)
  • position
  • layers with name, type and source uri
  • opacity of layers
  • shaderControls/normalized which could map to the value range
  • blendmode of layers -> as I understand this can be only set for the whole dataset in WK?

These are partly DatasetViewConfig and partly LayerViewConfig. Possibly not everything can be done by using the regular explore (since we only return layers there, not datasets)

There are also some additional properties, I don't understand all of them. What should be read within the scope of this issue?

@frcroth frcroth mentioned this issue Oct 30, 2023
11 tasks
@fm3
Copy link
Member Author

fm3 commented Oct 30, 2023

I’d say layer name, type and source uri should be enough for the moment :) Thanks for looking into this!

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

Successfully merging a pull request may close this issue.

2 participants