Skip to main content

NWB creator from various data streams

Project description

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.

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

nwbmatic-0.1.1.tar.gz (71.5 kB view details)

Uploaded Source

Built Distribution

nwbmatic-0.1.1-py3-none-any.whl (63.7 kB view details)

Uploaded Python 3

File details

Details for the file nwbmatic-0.1.1.tar.gz.

File metadata

  • Download URL: nwbmatic-0.1.1.tar.gz
  • Upload date:
  • Size: 71.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for nwbmatic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0e5dd31b4e13b1f5f83add2d4c56cad51c4a8caa1ce3e4069c854fc677c107f4
MD5 e08c9cfa00beb3d841c1ba76c7410be9
BLAKE2b-256 c3749c7464329bd7bfdd8b39b91e0305a48ddc785d015ea5a0a0bb80aa46fa28

See more details on using hashes here.

File details

Details for the file nwbmatic-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nwbmatic-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 63.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for nwbmatic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a45fb2b7673baf0e91110c4fb2d9f34bb65e8f3e47e4da84285936f503a32dea
MD5 61ffbd858d24ef30f2db24ca7e881067
BLAKE2b-256 2d4cd0534e047b6d52040b6cc1f14c2a522728fc9f7932b4607a1964ae794a8c

See more details on using hashes here.

Supported by

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