Skip to main content

NWB conversion scripts, functions, and classes for an the Ahrens lab.

Project description

ahrens-lab-to-nwb

NWB conversion scripts for the Ahrens lab data to the Neurodata Without Borders data format.

Clone and install

To run the conversion some basic machinery is needed: python, git and pip. For most users, we recommend you to install conda (installation instructions) as it contains all the required machinery in a single and simple install. If your system is windows you might also need to install git (installation instructions) to interact with this repository.

From a terminal (note that conda should install one in your system) you can do the following:

git clone https://github.com/catalystneuro/ahrens-lab-to-nwb
cd ahrens-lab-to-nwb
conda env create --file make_env.yml
conda activate ahrens-lab-to-nwb-env

This create a conda environment which isolates the conversion from your system. We recommend that you run all your conversion related tasks and analysis from that environment to minimize the intereference of this code with your own system.

Alternatively, if you want to avoid conda altogether (for example if you use another virtual environment tool) you can install the repository with the following commands using only pip:

git clone https://github.com/catalystneuro/ahrens-lab-to-nwb
cd ahrens-lab-to-nwb
pip install -e .

Note: both of the methods above install the repository in editable mode

Repository structure

Each conversion is organized in a directory of its own in the src directory:

ahrens-lab-to-nwb/
├── LICENSE
├── make_env.yml
├── pyproject.toml
├── README.md
├── requirements.txt
├── setup.py
└── src
    ├── ahrens_lab_to_nwb
    │   ├── conversion_directory_1
    │   └── yu_mu_cell_2019`
    │       ├── yu_mu_cell_2019behaviorinterface.py
    │       ├── yu_mu_cell_2019_convert_script.py
    │       ├── yu_mu_cell_2019_metadata.yml
    │       ├── yu_mu_cell_2019nwbconverter.py
    │       ├── yu_mu_cell_2019_requirements.txt
    │       ├── yu_mu_cell_2019_notes.md

    │       └── __init__.py
    │   ├── conversion_directory_b

    └── __init__.py

For example, for the conversion yu_mu_cell_2019 you can find a directory located in src/ahrens-lab-to-nwb/yu_mu_cell_2019. Inside each conversion directory you can find the following files:

  • yu_mu_cell_2019_convert_script.py: this is the cemtral script that you must run in order to perform the full conversion.
  • yu_mu_cell_2019_requirements.txt: dependencies specific to this conversion specifically.
  • yu_mu_cell_2019_metadata.yml: metadata in yaml format for this specific conversion.
  • yu_mu_cell_2019behaviorinterface.py: the behavior interface. Usually ad-hoc for each conversion.
  • yu_mu_cell_2019nwbconverter.py: the place where the NWBConverter class is defined.
  • yu_mu_cell_2019_notes.md: notes and comments concerning this specific conversion.

The directory might contain other files that are necessary for the conversion but those are the central ones.

Running a specific conversion

To run a specific conversion, you might need to install first some conversion specific dependencies that are located in each conversion directory:

pip install -r src/ahrens_lab_to_nwb/yu_mu_cell_2019/yu_mu_cell_2019_requirements.txt

You can run a specific conversion with the following command:

python src/ahrens_lab_to_nwb/yu_mu_cell_2019/yu_mu_cell_2019_conversion_script.py

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

ahrens-lab-to-nwb-1.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

ahrens_lab_to_nwb-1.0.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file ahrens-lab-to-nwb-1.0.0.tar.gz.

File metadata

  • Download URL: ahrens-lab-to-nwb-1.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for ahrens-lab-to-nwb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1a36426465c4d6a0b846cead016706982a413e03d3c5a14a1dbeaa6650075d5f
MD5 0d723bd5fbf83167c78ba7616cfc5f51
BLAKE2b-256 5db4f997c4a1bc250e52d0faf71950059a5fbad4879c4b9c7928b2ff7b66384c

See more details on using hashes here.

File details

Details for the file ahrens_lab_to_nwb-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ahrens_lab_to_nwb-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ef0d13238b83b1b49b6cd683a54324c76b341180d2f2b3ac241b7abd11ccafa
MD5 096284a5f20369d628f8b82b64c1fe9a
BLAKE2b-256 2ef9e3931f22f74c7299d3c0c4ed5603dd4555fd726ba6b6516e5b197c9cb912

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