Skip to main content

Volumetric data viewer built on HoloViz Panel and Neuroglancer

Project description

panel-neuroglancer

Use HoloViz Panel to integrate Neuroglancer into Jupyter notebook workflows and applications for scientifically contextualized, reproducible, and extensible workflows involving large volumetric datasets, such as those from electron and fluorescent microscopy. See the Overview below for more explanation.

Usage

Option 1 - Load from a neuroglancer url:

Either use Neuroglancer(source=<URL>) or just run Neuroglancer() and input the URL in the GUI:

Option 2 - Load from neuroglancer.Viewer instance:

viewer = neuroglancer.Viewer()

with viewer.txn() as s:
    # Add an image layer from a precomputed data source
    s.layers["image"] = neuroglancer.ImageLayer(
        source="precomputed://gs://neuroglancer-janelia-flyem-hemibrain/emdata/clahe_yz/jpeg",
    )
    # Add a segmentation layer
    s.layers["segmentation"] = neuroglancer.SegmentationLayer(
        source="precomputed://gs://neuroglancer-janelia-flyem-hemibrain/v1.1/segmentation",
    )
Neuroglancer(source=viewer, show_state=True)

Overview

Volumetric imaging refers to techniques that capture data in three dimensions, allowing researchers to visualize and analyze the internal structures of objects, including depth and spatial relationships. Unlike traditional 2D imaging, volumetric imaging provides a more comprehensive view of specimens.

One of the most powerful volumetric imaging techniques is electron microscopy (EM). EM uses a beam of electrons to create high-resolution images at the nanometer scale, enabling the exploration of fine structural details of biological specimens such as cells, tissues, and molecular structures. However, handling and visualizing the massive datasets generated by EM poses significant challenges due to their size and complexity.

Introducing Neuroglancer

Neuroglancer by Google is a WebGL-based viewer designed specifically for volumetric data, offering efficient handling of large-scale datasets through data streaming. Its key features include:

  • Interactive Visualization: Smooth, real-time navigation through volumetric data.
  • Customizable Layers: Support for raw images, segmented regions, and annotations.
  • Web-Based Interface: Accessible directly from browsers without the need for specialized software.

Originally developed for neuroscience, Neuroglancer empowers researchers to explore complex 3D structures by tracing neural pathways, identifying cellular components, and annotating regions of interest.

Integrating Neuroglancer with Jupyter Notebooks

While Neuroglancer is a powerful tool for exploring large volumes, it is typically used as a standalone application. Researchers often utilize Jupyter Notebooks to conduct reproducible research and combine code, data analysis, and visualizations.

By integrating Neuroglancer within Jupyter Notebooks using HoloViz Panel, researchers can:

  • Consolidate Workflow: Keep code, data analysis, and visualization in a single environment.
  • Enhance Reproducibility: Share notebooks that include both computational steps and interactive visualizations.
  • Facilitate Collaboration: Allow collaborators to interact with the same data and visualizations within the notebook.

Using HoloViz Panel for the Integration

By using HoloViz Panel, we can:

  • Embed the Neuroglancer viewer directly within a notebook cell.
  • Create interactive widgets and controls to manipulate and report the state of the viewer.
  • Combine Neuroglancer views alongside other visualizations.

Funding

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

panel_neuroglancer-0.1.0.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

panel_neuroglancer-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file panel_neuroglancer-0.1.0.tar.gz.

File metadata

  • Download URL: panel_neuroglancer-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for panel_neuroglancer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cccade39b29342751013cc2999413619c21bed4076c21d4a21dcc09ea03d436c
MD5 f1256373144225fbb09e941c89630b17
BLAKE2b-256 0dd4b202254d43fea0842c37aabfca924fb3dbd8a837b47061a73f8415873ffd

See more details on using hashes here.

File details

Details for the file panel_neuroglancer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for panel_neuroglancer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c02849bfab3feebad55b3f9804d32d0c492dad7b6ac7e707edda815e5581975e
MD5 fee826033b160b037bf8f0afcd32aab3
BLAKE2b-256 7d6cf78174aeafa8918ac93d86b45837b661ae60a42cda68ce3c591387646560

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page