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.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nwb2bids-0.13.0.tar.gz | 127.1 kB | Without provenance | Details for nwb2bids-0.13.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nwb2bids-0.13.0-py3-none-any.whl | Python 3 | none | any | Details for nwb2bids-0.13.0-py3-none-any.whl |
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
|
Security for nwb2bids 0.13.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.