Skip to main content
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.

Metadata

Release files for nwb2bids 0.13.0

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

Source distribution (sdist)

Source distribution for nwb2bids 0.13.0
File Size Uploaded
nwb2bids-0.13.0.tar.gz 127.1 kB Details

Built distribution (wheel)

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

Total release size: 196.4 kB

Release files / nwb2bids-0.13.0.tar.gz

Download URL nwb2bids-0.13.0.tar.gz
Size 127.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a9e3a8d9941564c8f05fc1bde55b10c282efe21371ac152f4795afc5fb3438e8
BLAKE2b-256 checksum
How to use checksums
21cc8691a89e6be903f6421ed4c6366bece726157f72168ac9178aae492664db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / nwb2bids-0.13.0-py3-none-any.whl

Download URL nwb2bids-0.13.0-py3-none-any.whl
Size 69.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5604f8233207110b5a506d4df34a6bad8f71b7663032509f70b3ccdcb66f71a4
BLAKE2b-256 checksum
How to use checksums
1eeb0c5dc0fc5588c4dbb4cab679ea5d706ee0c3281dbb55d92b6547738e66c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files

0.12.0

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.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