Skip to main content

NWB conversion scripts and tutorials.

Project description


NWB conversion scripts and tutorials. A collaboration with Axel Lab.


To clone the repository and set up a conda environment, do:

$ git clone
$ conda env create -f axel-lab-to-nwb/make_env.yml
$ source activate convert_to_nwb

Alternatively, to install directly in an existing environment:

$ pip install axel-lab-to-nwb


After activating the correct environment, the conversion function can be used in different forms:

1. Imported and run from a python script:
Here's an example: we'll grab the data from the same experiment but stored in different .npz files and save it to a single .nwb file.

from axel_lab_to_nwb import conversion_function

source_paths = {}
source_paths['processed data'] = {'type': 'file', 'path': PATH_TO_FILE}
source_paths['sparse matrix'] = {'type': 'file', 'path': PATH_TO_FILE}
source_paths['ref image'] = {'type': 'file', 'path': PATH_TO_FILE}

f_nwb = 'fly2.nwb'

metafile = 'metafile.yml'


2. Command line:
Similarly, the conversion function can be called from the command line in terminal:

$ python [processed_data_file] [sparse_matrix_file] [ref_image_file] 
  [output_file] [metadata_file]

3. Graphical User Interface:
To use the GUI, just run the auxiliary function from terminal:

$ python

4. Tutorial:
At tutorials you can also find Jupyter notebooks with the step-by-step process of conversion.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for axel-lab-to-nwb, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size axel_lab_to_nwb-0.1.0-py3-none-any.whl (9.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size axel_lab_to_nwb-0.1.0.tar.gz (10.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page