Skip to main content

nwbmatic

NWB creator from various data streams

image nwbmatic CI Coverage Status GitHub issues Twitter Follow

Overview

This package started as a main feature of pynapple IO module. It is now a standalone package to help create NWB from various data streams from electrophysiological and calcium imaging pipelines. It supports outputs from :

Electrophysiology Calcium imaging Behavior
Phy matlab CNMF-E DeepLabCut
Neurosuite Inscopix CNMF-E Optitrack
Minian
Suite2P

Warning A larger choice of data format is available from neuroconv

Usage

The general workflow of loading a session is described by the infographic below. As it is challenging to accomodate all possible types of format, we aimed to keep the IO of nwbmatic minimal while allowing the user to inherit the base loader and import their own custom io functions.

The base loader is thus responsible for initializing the NWB file containing the tracking data, the epochs and the session informations.

title

Getting Started

Installation

The best way to install nwbmatic is with pip within a new conda environment :

$ conda create --name nwbmatic pip python=3.8
$ conda activate nwbmatic
$ pip install nwbmatic

if you would like the option to use our feature that loads data from the Allen Institute (optional):

$ pip install nwbmatic[allen]

or directly from the source code:

$ conda create --name nwbmatic pip python=3.8
$ conda activate nwbmatic
$ # clone the repository
$ git clone https://github.com/pynapple-org/nwbmatic.git
$ cd nwbmatic
$ # Install in editable mode with `-e` or, equivalently, `--editable`
$ pip install -e .

This procedure will install all the dependencies including

  • pynapple
  • pandas
  • numpy
  • pynwb 2.0
  • h5py
  • allensdk

Example

In this example, a session preprocessed with phy will be copied to NWB and loaded.

import nwbmatic as ntm

data = ntm.load_session("path/to/my/session", "phy")

Credits

Thanks to Selen Calgin, Sara Mahallati and Luigi Petrucco for their contributions.

Metadata

Release files for nwbmatic 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 nwbmatic 0.1.2
File Size Uploaded
nwbmatic-0.1.2.tar.gz 71.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nwbmatic 0.1.2
File Interpreter ABI Platform
nwbmatic-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 135.4 kB

Release files / nwbmatic-0.1.2.tar.gz

Download URL nwbmatic-0.1.2.tar.gz
Size 71.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c55679edb5d6f486aa91f354debc69fae361f8f8f6764059a994d3ff8628a457
BLAKE2b-256 checksum
How to use checksums
3a1a67c85c74e696c470fc0d814c888a24c08e6912a321ffb22b81b2ed03e5fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / nwbmatic-0.1.2-py3-none-any.whl

Download URL nwbmatic-0.1.2-py3-none-any.whl
Size 63.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07da885258b71b805f1b993efe23b8bab16e97e5ec81ff31f37d357cb7088f69
BLAKE2b-256 checksum
How to use checksums
2bab582962a2f85fb39421849835974827421b624e60de1e028fb003ba3c5b3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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