Getting started.... next steps.. how to hard code data source into client

88 views
Skip to first unread message

Paulo Baptista

unread,
Feb 18, 2021, 4:53:04 PM2/18/21
to Neuroglancer
Hello,

I provide IT support for my organization.  We want to deploy neuroglancer and I have the client build process and hosting working.  

I browse the client and it's a blank view as expected and prompts me for a data source.  I was able to insert a public data source from one of the examples and I can see data in the view.

How can I configure the client to load up default data views?  is there a json file I need to update when I build the client?  

I also see there is a way to have our own data converted and stored into a precomputed folder that can be attached to the client.  Is precomputed data automatically displayed with the client?

Thank you very much for your help,

Paulo Baptista
Brown University

jb...@google.com

unread,
Feb 18, 2021, 5:00:34 PM2/18/21
to Neuroglancer
What Neuroglancer displays, including the datasources, and any other options, is controlled by its JSON "state".

For example, you can see the current state by clicking on the "{}" icon at the top right of the Neuroglancer window.

The state is encoded in the URL itself, so if you want users to receive a certain view by default, you can simply provide a link or redirect that encodes that view.

In addition to using Neuroglancer interactively to create the desired view, you can also use the Neuroglancer Python API to construct such a link.  (Of course you can also manually construct the JSON.)

There currently isn't any build-time option to specify a default initial state --- that could be added easily enough, but just providing a separate link/redirect to the desired initial state may serve your purposes just as well.

Reply all
Reply to author
Forward
0 new messages