Skip to main content

Systems Neuro Browser (SNUB)

DOI

Read the documentation!

SNUB is a visual interface for systems neuroscience. Using a set of linked data-views, users can explore relationships between raw video, 3D animal pose, behavior annotations, neural activity, or any other relevant time-series data.

Installation

Create and activate a new conda environment with python≥3.8 and install via pip

conda create -n snub python=3.8
conda activate snub
pip install systems-neuro-browser

Note: Python version 3.8 is required for Linux. For Windows and MacOS, any version ≥3.8 should work.

To speed up selections, pip install ncls. To install optional developer dependencies, pip install systems-neuro-browser[dev]. The docs include more detailed installation instructions.

Getting Started

  • Download the example project.
  • Launch SNUB from the command line with the command snub.
  • Go to File > Open Project, navigate to the project directory, and hit Choose with the directory selected.
  • Alternatively, launch SNUB directly with the project path snub /path/to/project/directory.

Browse your own data

Loading data is simple with the snub.io module. For example the following code creates a new project with paired electrophysiology and video data. See the Tutorial for more details.

import snub.io

project_directory = 'path/to/new/project'

snub.io.project.create_project(project_directory, duration=1800)
snub.io.project.add_video(project_directory, 'path/to/my_video.avi', name='IR_camera')
snub.io.project.add_splikeplot(project_directory, 'my_ephys_data', spike_times, spike_labels) 

Convert an NWB file

We provide a rudimentary tool for automatically generating SNUB datasets from Neurodata Without Borders (NWB) files, which contain raw and processed data from neuroscience recordings. The data in NWB files are stored hierarchically, and each component of the hierarchy has a specific neurodata type that reflects the measurement modality (e.g, "Units" for spike trains, "ImageSeries" for video). Our conversion tool generates a SNUB display element for each supported neurodata type. Users can optionally restrict this process to a subset of the NWB hierarchy (e.g., include pose tracking while excluding electrophysiology, or include just a subset of electrophysiology measurements). Here's an example:

# Run from the command line

# Download NWB file
dandi download https://api.dandiarchive.org/api/dandisets/000540/versions/0.230515.0530/assets/94307bee-459c-424e-b3a0-1e86b23f04b2/download/

# Download associated video and create directory for it
dandi download https://api.dandiarchive.org/api/dandisets/000540/versions/0.230515.0530/assets/942b0806-2c8b-4289-a072-9e965884fcb6/download/
mkdir sub-SLR087_ses-20180706_obj-14ua2bs_behavior+image
mv 9557b48e-46f0-45f2-a700-a2e15318c5bc_external_file_0.avi sub-SLR087_ses-20180706_obj-14ua2bs_behavior+image/
# Run in python

import os, snub

# Define paths
nwb_file = "sub-SLR087_ses-20180706_obj-14ua2bs_behavior+image.nwb"
name = os.path.splitext(os.path.basename(nwb_file))[0]
project_directory = os.path.join(os.path.dirname(nwb_file), f"SNUB-{name}")

# Make SNUB plot that includes video and torso tracking
snub.io.create_project_from_nwb(project_directory, nwb_file, branches=['torso_dlc', 'ImageSeries'])

Metadata

Release files for systems-neuro-browser 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for systems-neuro-browser 0.1.2
File Size Uploaded
systems-neuro-browser-0.1.2.tar.gz 107.0 kB Details

Release files / systems-neuro-browser-0.1.2.tar.gz

Download URL systems-neuro-browser-0.1.2.tar.gz
Size 107.0 kB
Tags Source
SHA-256 checksum
How to use checksums
715b2851937c3275b030b8bc207340e63dee9f35edbd94975f54fa7eb3d8c508
BLAKE2b-256 checksum
How to use checksums
0ee075042ed133c1807df60a0bfc1aeda4d471a1a4a455356d590a1120b0c7d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page