Skip to main content

Export binary Open Ephys data to NWB 2.x

Project description

oephys2nwb: Export Open Ephys binary data to NWB 2.x

Summary

This package can be used to export data saved in Open Ephys binary format (the default for the Open Ephys GUI) to the NWB 2.0 format. At the time of writing the NWBFormat plugin of Open Ephys only supports the deprecated NWB 1.0 format specification. The present package is developed and maintained at the Ernst Strüngmann Institute (ESI) gGmbH for Neuroscience in Cooperation with Max Planck Society and released free of charge under the BSD 3-Clause "New" or "Revised" License.

Installation

The package can be installed with pip

pip install git+https://github.com/open-ephys/open-ephys-python-tools
pip install esi-oephys2nwb

To get the latest development version, simply clone our GitHub repository and (optionally) create a dedicated conda development environment:

git clone https://github.com/esi-neuroscience/oephys2nwb.git
cd oephys2nwb/
python setup.py --version
conda env create -f oephys2nwb-dev.yml
conda activate oephys2nwb-dev
pip install -e .

Usage

We recommend setting up a dedicated conda environment for oephys2nwb. For general information about conda, please refer to the official documentation.

conda create -n oephys2nwb-env python=3.8 pip
conda activate oephys2nwb-env
pip install esi-oephys2nwb

Alternatively, we provide a conda environment file to automatically install all required dependencies

wget https://raw.githubusercontent.com/esi-neuroscience/oephys2nwb/main/oephys2nwb.yml
conda env create -f oephys2nwb.yml
conda activate oephys2nwb

Once the package is installed the exporter can be used either embedded in Python code or as a stand-alone command line utility.

Command Line

Activate the conda environment the package was installed in and invoke the exporter as follows

conda activate oephys2nwb-env
python -m oephys2nwb -i /path/to/recordingDir -o /path/to/outputFile.nwb

Calling oephys2nwb without arguments prints the function help

python -m oephys2nwb

Python Code

Alternatively, the package can be used like any other Python module

from oephys2nwb import export2nwb

input = "/path/to/recordingDir"
output = "/path/to/outputFile.nwb"

export2nwb(input, output)

Documentation and Contact

To report bugs or ask questions please use our GitHub issue tracker. More usage details and background information is available in our online documentation.

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

esi-oephys2nwb-2022.5rc0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

esi_oephys2nwb-2022.5rc0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file esi-oephys2nwb-2022.5rc0.tar.gz.

File metadata

  • Download URL: esi-oephys2nwb-2022.5rc0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.13

File hashes

Hashes for esi-oephys2nwb-2022.5rc0.tar.gz
Algorithm Hash digest
SHA256 b1f156b339b2a458dcbe58b163a61237ebdf34b32021ddc82917cfeb517057ab
MD5 1cefd43b5aa50aac05c801fca18a0ec9
BLAKE2b-256 2ed0948983dac19d0f7f2615b098d8e54b6c632e7b7300cb165f8a609beb3c3a

See more details on using hashes here.

File details

Details for the file esi_oephys2nwb-2022.5rc0-py3-none-any.whl.

File metadata

  • Download URL: esi_oephys2nwb-2022.5rc0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.13

File hashes

Hashes for esi_oephys2nwb-2022.5rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbebe1cf16502f31275bd33f3fddafd7800357a6300d5f3417bf9c03885265f
MD5 7103a12a9cc5dbe5304a7d4559150629
BLAKE2b-256 b2db2d337b8e2a1f79dff97b32ed6feef3d7053206b0109b97f7754504cc581b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page