Neuroglancer is a WebGL-based viewer for volumetric data. It is capable of displaying arbitrary (non axis-aligned) cross-sectional views of volumetric data, as well as 3-D meshes and line-segment based models (skeletons).
This is not an official Google product.
A live demo is hosted at https://neuroglancer-demo.appspot.com. (The prior link opens the viewer without any preloaded dataset.) Use the viewer links below to open the viewer preloaded with an example dataset.
The four-pane view consists of 3 orthogonal cross-sectional views as well as a 3-D view (with independent orientation) that displays 3-D models (if available) for the selected objects. All four views maintain the same center position. The orientation of the 3 cross-sectional views can also be adjusted, although they maintain a fixed orientation relative to each other. (Try holding the shift key and either dragging with the left mouse button or pressing an arrow key.)
-
Kasthuri et al., 2014. Mouse somatosensory cortex (6x6x30 cubic nanometer resolution). Open viewer.
This dataset was copied from http://openconnecto.me/Kasthurietal2014 and is made available under the Open Data Common Attribution License. Paper: Kasthuri, Narayanan, et al. "Saturated reconstruction of a volume of neocortex." Cell 162.3 (2015): 648-661.
-
Janelia FlyEM FIB-25. 7-column Drosophila medulla (8x8x8 cubic nanometer resolution). Open viewer.
This dataset was copied from https://www.janelia.org/project-team/flyem/data-and-software-release, and is made available under the Open Data Common Attribution License. Paper: Takemura, Shin-ya et al. "Synaptic Circuits and Their Variations within Different Columns in the Visual System of Drosophila." Proceedings of the National Academy of Sciences of the United States of America 112.44 (2015): 13711-13716.
Neuroglancer itself is purely a client-side program, but it depends on data being accessible via HTTP in a suitable format. It is designed to easily support many different data sources, and there is existing support for the following data APIs/formats:
- NDstore/Open Connectome https://github.com/neurodata/ndstore
- DVID https://github.com/janelia-flyem/dvid
- Precomputed chunk/mesh fragments exposed over HTTP
- Chrome >= 51
- Firefox >= 46
See src/main.ts.
-
Click on a layer name to toggle its visibility.
-
Double-click on a layer name to edit its properties.
-
Left-drag within a slice view to move within that plane.
-
Shift-left-drag within a slice view to change the orientation of the slice views.
-
Left-drag within the 3-d view to change the orientation.
-
Right click to move to the position under the mouse pointer.
-
Double click to toggle showing the object under the mouse pointer.
-
Hover over a segmentation layer name to see the current list of objects shown.
-
Neuroglancer doesn't appear to load properly.
Neuroglancer requires WebGL (1.0) and the
WEBGL_draw_buffers,OES_texture_float, andOES_element_index_uintextensions.To troubleshoot, check the developer console, which is accessed by the keyboard shortcut
control-shift-iin Firefox and Chrome. If there is a message regarding failure to initialize WebGL, you can take the following steps:-
Chrome
Check
chrome://gputo see if your GPU is blacklisted. There may be a flag you can enable to make it work. -
Firefox
Check
about:support. There may be webgl-related properties inabout:configthat you can change to make it work. Possible settings:webgl.disable-fail-if-major-performance-caveat = truewebgl.force-enabled = truewebgl.msaa-force = true
-
-
Failure to access a data source.
As a security measure, browsers will in many prevent a webpage from accessing the true error code associated with a failed HTTP request. It is therefore often necessary to check the developer tools to see the true cause of any HTTP request error.
There are several likely causes:
-
Cross-origin resource sharing (CORS)
Neuroglancer relies on cross-origin requests to retrieve data from third-party servers. As a security measure, if an appropriate
Access-Control-Allow-Originresponse header is not sent by the server, browsers prevent webpages from accessing any information about the response from a cross-origin request. In order to make the data accessible to Neuroglancer, you may need to change the cross-origin request sharing (CORS) configuration of the HTTP server. -
Accessing an
http://resource from a Neuroglancer client hosted at anhttps://URLAs a security measure, recent versions of Chrome and Firefox prohibit webpages hosted at
https://URLs from issuing requests tohttp://URLs. As a workaround, you can use a Neuroglancer client hosted at ahttp://URL (possibly one running on localhost). Alternatively, you can start Chrome with the--disable-web-securityflag, but that should be done only with extreme caution. (Make sure to use a separate profile, and do not access any untrusted webpages when running with that flag enabled.)
-
node.js is required to build the viewer.
- First install NVM (node version manager) per the instructions here:
https://github.com/creationix/nvm
-
Install a version of Node.js >= v5.9.0:
nvm install <version><version>could be 6.1.0 for example.Use
nvm ls-remoteto see available versions. -
Install the dependencies required by this project:
(From within this directory)
npm i -
To run a local server for development purposes:
npm run dev-serverThis will start a server on http://localhost:8080.
-
To run the unit test suite on Chrome:
npm test -
See package.json for other commands available.
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.