Skip to main content

Reorganize NWB files into a BIDS directory layout.

Project description

nwb2bids logo

nwb2bids

Supported Python versions codecov Documentation Status Daily tests Daily tests (remote) Daily doc link check

PyPI latest release version License: BSD-3 DOI

Python code style: Black Python code style: Ruff

nwb2bids reorganizes NWB (Neurodata Without Borders) files into a BIDS (Brain Imaging Data Structure) directory layout, making your neurophysiology data more accessible and shareable.

Features

  • Automatic conversion: Renames NWB files and directories to conform to BIDS conventions
  • Metadata extraction: Populates BIDS sidecar TSV & JSON files from NWB metadata
  • BEP032 support: Currently supports micro-electrode electrophysiology (extracellular ecephys and intracellular icephys) and associated behavioral events per BEP032

Installation

Install the latest stable release using pip or conda:

# Using pip
pip install nwb2bids

# Using conda
conda install -c conda-forge nwb2bids

Quick Start

Command Line Interface

Convert NWB files to BIDS from the command line:

# Convert files from a directory
nwb2bids convert path/to/nwb/files/

# Specify output directory
nwb2bids convert path/to/nwb/files/ --bids-directory path/to/bids/output/

# Convert multiple sources
nwb2bids convert path/to/directory/ single_file.nwb another_file.nwb

Documentation

For comprehensive information, please visit our full documentation:

📖 nwb2bids.readthedocs.io

The documentation includes:

Use Cases

nwb2bids was developed to support the DANDI Archive project, enabling researchers to convert neurophysiology datasets from NWB to BIDS format.

Track development with BIDS-Dandisets

The bids-dandisets organization hosts BIDS-formatted versions of datasets from DANDI Archive. You can:

Contributing

We welcome contributions! Please see our Developer Guide for details on how to contribute.

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

nwb2bids-0.13.0.tar.gz (127.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nwb2bids-0.13.0-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

Details for the file nwb2bids-0.13.0.tar.gz.

File metadata

  • Download URL: nwb2bids-0.13.0.tar.gz
  • Upload date:
  • Size: 127.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for nwb2bids-0.13.0.tar.gz
Algorithm Hash digest
SHA256 a9e3a8d9941564c8f05fc1bde55b10c282efe21371ac152f4795afc5fb3438e8
MD5 11d6d4f303b9128ccde64e400f9ddea5
BLAKE2b-256 21cc8691a89e6be903f6421ed4c6366bece726157f72168ac9178aae492664db

See more details on using hashes here.

File details

Details for the file nwb2bids-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: nwb2bids-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for nwb2bids-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5604f8233207110b5a506d4df34a6bad8f71b7663032509f70b3ccdcb66f71a4
MD5 e27d7dbbc126b805979d7ca2a5a1f643
BLAKE2b-256 1eeb0c5dc0fc5588c4dbb4cab679ea5d706ee0c3281dbb55d92b6547738e66c0

See more details on using hashes here.

Supported by

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