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)

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.12.0.tar.gz (112.0 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.12.0-py3-none-any.whl (64.0 kB view details)

Uploaded Python 3

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

Hashes for nwb2bids-0.12.0.tar.gz
Algorithm Hash digest
SHA256 23c9d33c6ce5aac33b71c73fe2e4f2284fc82bafc1a4c1c119e23c74de219bf2
MD5 de99bb4d9a71fead95e240bdd625ec1e
BLAKE2b-256 6611b970a7ba699a4cd84c0bef03c3114af819d3084bf5fd05d117ff4c9edd2a

See more details on using hashes here.

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

Hashes for nwb2bids-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba3a37307e51ae27c127bb655857224ea1ecaed14ba9b1d3f391ffa6bc79f73d
MD5 5a966603de0cf1fd6ca3e7150274d9b8
BLAKE2b-256 e722cfdf7dd9a632457ddad10b4b41b09ff2a05f48a726f0a7d2b89f2635aeb3

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