Python functions to convert extracellular electrophysiology recordings and associated behavioural data to Neurodata Without Borders (NWB) file format. These functions work with both Neuropixels and Neuronexus data.
PyNWB installation instructions are available here. Other dependencies include h5py, numpy, scipy, pathlib, os, re, datetime, dateutil which often come preinstalled.
To get the code with the accompanying example data and test it, download GIN repositories convert2nwbEcephysPyNnx and convert2nwbEcephysPyNpx for Neuronexus and Neuropixels data, respectively. Follow individual repository instructions on how to get and run the files.
Developed by Martynas Dervinis ([email protected]).
Keywords: Neurodata Without Borders; NWB; pynwb; extracellular electrophysiology; ecephys; Neuropixels; Neuronexus; silicone probe; extracellular electrode; spiking; FAIR principles; open science.