NWB Tutorial

This tutorial will guide you through creating NWB visualizations using figpack’s NWB extension.

Prerequisites

Before starting this tutorial, make sure you have the required packages installed:

pip install --upgrade figpack
figpack extensions install --upgrade figpack_nwb

Plane Segmentation

The Plane Segmentation view displays calcium imaging data with region of interest (ROI) segmentation from NWB files.

import figpack_nwb.views as fpn

# Load plane segmentation data from a remote NWB file
nwb_url = "https://api.dandiarchive.org/api/assets/4660dd15-93b2-4e64-88b1-ba92871989b4/download/"
path = "/processing/ophys/ImageSegmentation/PlaneSegmentation"

view = fpn.PlaneSegmentation(nwb=nwb_url, path=path, use_local_cache=True)
view.show(title="Plane Segmentation Example", open_in_browser=True)