Skip to content

catalystneuro/seidemann-lab-to-nwb

Repository files navigation

seidemann-lab-to-nwb

NWB conversion scripts for Seidemann 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/seidemann-lab-to-nwb
cd seidemann-lab-to-nwb
conda env create --file make_env.yml
conda activate seidemann-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/seidemann-lab-to-nwb
cd seidemann-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:

seidemann-lab-to-nwb/
├── LICENSE
├── make_env.yml
├── pyproject.toml
├── README.md
├── requirements.txt
├── setup.py
└── src
    ├── seidemann_lab_to_nwb
    │   ├── conversion_directory_1
    │   └── embargo20a`
    │       ├── embargo20abehaviorinterface.py
    │       ├── embargo20a_convert_script.py
    │       ├── embargo20a_metadata.yml
    │       ├── embargo20anwbconverter.py
    │       ├── embargo20a_requirements.txt
    │       ├── embargo20a_notes.md
    │       └── __init__.py
    │   ├── conversion_directory_b
    └── __init__.py

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

  • embargo20a_convert_script.py: this is the cemtral script that you must run in order to perform the full conversion.
  • embargo20a_requirements.txt: dependencies specific to this conversion specifically.
  • embargo20a_metadata.yml: metadata in yaml format for this specific conversion.
  • embargo20abehaviorinterface.py: the behavior interface. Usually ad-hoc for each conversion.
  • embargo20anwbconverter.py: the place where the NWBConverter class is defined.
  • embargo20a_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/seidemann_lab_to_nwb/embargo20a/embargo20a_requirements.txt

You can run a specific conversion with the following command:

python src/seidemann_lab_to_nwb/embargo20a/embargo20a_conversion_script.py

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •