nwb2bids logo

nwb2bids#

nwb2bids reorganizes NWB files into a BIDS directory layout.

Features:

  • Automatically renames NWB files and their directories to conform to BIDS conventions.

  • Extracts relevant metadata from NWB files to populate BIDS sidecar TSV & JSON files.

  • Currently supports BEP32 (micro-electrode electrophysiology) data types, such as extracellular (ecephys) and intracellular (icephys) electrophysiology, as well as associated behavioral events.

In the future, we plan to support:

  • stimuli

  • videos

  • ndx-events

  • Hierarchical Event Descriptors (HED)

  • microscopy

  • ndx-pose + BIDS motion

  • eye tracking

Installation#

To install the latest stable release of nwb2bids you can use either pip or conda.

To do this, run:

pip install nwb2bids

Some extra optional dependencies include the ability to run remotely on a dataset hosted on DANDI.

The easiest way to install these extras is to run:

pip install "nwb2bids[dandi]"

How to use the documentation#

Our documentation is structured to cater to users ranging from beginners to advanced developers and contributors. Below is an overview of the key sections to help you navigate our documentation effectively

  • User Guide

    The User Guide offers a comprehensive overview of our data models and core functionalities. It is recommended for users who wish to understand the underlying concepts and extend their scripts beyond basic conversions.

  • Developer Guide

    For developers interested in contributing to nwb2bids, the Developer Guide provides essential information such as instructions for building your own classes, our coding style, instructions on how to build the documentation, run the testing suite, etc.

  • API Reference

    Detailed documentation of the nwb2bids API can be found in the API section.

Do you find that some information is missing or some section lacking or unclear? Reach out with an issue or pull request on our GitHub repository. We are happy to help and appreciate your feedback.