https://github.com/catalystneuro/khaliq-lab-to-nwb

https://github.com/catalystneuro/khaliq-lab-to-nwb

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: catalystneuro
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 14.6 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 12 months ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

khaliq-lab-to-nwb

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

Installation

Basic installation

You can install the latest release of the package with pip:

pip install khaliq-lab-to-nwb

We recommend that you install the package inside a virtual environment. A simple way of doing this is to use a conda environment from the conda package manager (installation instructions). Detailed instructions on how to use conda environments can be found in their documentation.

Running a specific conversion

Once you have installed the package with pip, you can run any of the conversion scripts in a notebook or a python file:

https://github.com/catalystneuro/khaliq-lab-to-nwb//tree/main/src/embargo2002a/convert_session.py

Copy or download this file run the script with the following command:

python convert_session.py

Installation from GitHub

Another option is to install the package directly from GitHub. This option has the advantage that the source code can be modified if you need to amend some of the code we originally provided to adapt to future experimental differences. To install the conversion from GitHub you will need to use git (installation instructions). We also recommend the installation of conda (installation instructions) as it contains all the required machinery in a single and simple install.

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

git clone https://github.com/catalystneuro/khaliq-lab-to-nwb cd khaliq-lab-to-nwb conda env create --file make_env.yml conda activate khaliq_lab python -m ipykernel install --user --name khaliq_lab

This creates a conda environment which isolates the conversion code from your system libraries. We recommend that you run all your conversion related tasks and analysis from the created environment in order to minimize issues related to package dependencies.

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/khaliq-lab-to-nwb cd khaliq-lab-to-nwb pip install --editable .

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

Running a specific conversion

If the project has more than one conversion, you can install the requirements for a specific conversion with the following command: pip install --editable .[embargo2002a]

You can run a specific conversion with the following command: python src/khaliq_lab_to_nwb/embargo2002a/convert_session.py

Repository structure

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

khaliq-lab-to-nwb/
├── LICENSE
├── make_env.yml
├── pyproject.toml
├── README.md
├── requirements.txt
├── setup.py
└── src
    ├── khaliq_lab_to_nwb
    │   └── embargo2002a
    │       ├── notes.md
    │       ├── behaviorinterface.py
    │       ├── convert_session.py
    │       ├── metadata.yml
    │       ├── nwbconverter.py
    │       ├── notes.md
    │       └── __init__.py
    │   ├── conversion_directory_b

    └── __init__.py

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

  • convert_sesion.py: this script defines the function to convert one full session of the conversion.
  • metadata.yml: metadata in yaml format for this specific conversion.
  • behaviorinterface.py: the behavior interface. Usually ad-hoc for each conversion.
  • nwbconverter.py: the place where the NWBConverter class is defined.
  • 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.

Owner

  • Name: CatalystNeuro
  • Login: catalystneuro
  • Kind: organization
  • Email: hello@catalystneuro.com

GitHub Events

Total
  • Member event: 1
  • Push event: 2
  • Create event: 2
Last Year
  • Member event: 1
  • Push event: 2
  • Create event: 2

Dependencies

.github/workflows/add-to-dashboard.yml actions
  • leonsteinhaeuser/project-beta-automations v1.2.1 composite
.github/workflows/auto-publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish v1.4.2 composite
.github/workflows/test-install.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • jannekem/run-python-script-action v1 composite
pyproject.toml pypi
  • neuroconv *
  • nwbinspector *