Reorganize NWB files into a BIDS directory layout.
Project description
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
ecephysand intracellularicephys) 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:
The documentation includes:
- User Guide - Detailed usage instructions and advanced features
- Tutorials - Step-by-step examples
- API Reference - Complete function and class documentation
- Developer Guide - Contributing guidelines
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:
- Browse converted datasets at github.com/bids-dandisets
- Track conversion progress via the dashboard
- Access datasets efficiently using DataLad for version-controlled data management
Contributing
We welcome contributions! Please see our Developer Guide for details on how to contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nwb2bids-0.12.0.tar.gz.
File metadata
- Download URL: nwb2bids-0.12.0.tar.gz
- Upload date:
- Size: 112.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23c9d33c6ce5aac33b71c73fe2e4f2284fc82bafc1a4c1c119e23c74de219bf2
|
|
| MD5 |
de99bb4d9a71fead95e240bdd625ec1e
|
|
| BLAKE2b-256 |
6611b970a7ba699a4cd84c0bef03c3114af819d3084bf5fd05d117ff4c9edd2a
|
File details
Details for the file nwb2bids-0.12.0-py3-none-any.whl.
File metadata
- Download URL: nwb2bids-0.12.0-py3-none-any.whl
- Upload date:
- Size: 64.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba3a37307e51ae27c127bb655857224ea1ecaed14ba9b1d3f391ffa6bc79f73d
|
|
| MD5 |
5a966603de0cf1fd6ca3e7150274d9b8
|
|
| BLAKE2b-256 |
e722cfdf7dd9a632457ddad10b4b41b09ff2a05f48a726f0a7d2b89f2635aeb3
|