Skip to content

Python API

ngtools

Miscellaneous tools to build and manipulate Neuroglancer scenes.

Modules:

Name Description
scene

Extension to ng.ViewerState that adds convenience methods to build and manipulate Neuroglancer scenes.

layers

Extensions to ng.Layer that simplify the creation of common layer types.

datasources

Extensions to ng.LayerDataSource that exposes data source properties usually not available through Neuroglancer's Python API.

local

Utilities to create and interact with local Neuroglancer intances and manipulate local files.

transforms

Utilities to create and manipulate ng.CoordinateTransform objects.

spaces

Definition of standard coordinate spaces, such as RAS, in the form of ng.CoordinateSpace.

units

Conversion between units used in different formats.

shaders

Definition of custom GLSL shaders for Neuroglancer layers.

cmdata

Matplotlib colormaps that can be used in Neuroglancer shaders.

opener

Flexible file opener that supports local and remote files.

dandisf

A fsspec filesystem for DANDI.

protocols

Definition of ngtools-specific URI protocols.

utils

Miscellaneous utility functions.