https://github.com/catalystneuro/cookiecutter-my-lab-to-nwb-template

The standard cookiecutter template for all lab-specific NWB conversions.

https://github.com/catalystneuro/cookiecutter-my-lab-to-nwb-template

Science Score: 26.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
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.4%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

The standard cookiecutter template for all lab-specific NWB conversions.

Basic Info
  • Host: GitHub
  • Owner: catalystneuro
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 106 KB
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 2
  • Open Issues: 5
  • Releases: 0
Created about 4 years ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

Cookiecutter template for CatalystNeuro projects

This repo serves as a generic template generator for all conversion projects undertaken by the CatalystNeuro team. The project is based and shares the structure of our generic template and extends it further by means of cookiecutter to auto-generate the rest of the configuration.

How to use it

1) Install cookiecutter:

Install the latest cookiecutter version if you haven't installed it yet:

pip install -U cookiecutter

2) Run cookiecutter with this repo and answer some prompts

Then, use the following cookiecutter command to generate a CatalystNeuro conversion project structure:

cookiecutter https://github.com/catalystneuro/cookiecutter-my-lab-to-nwb-template

This will ask some questions that determine the project structure as in the following example:

lab [Lab Name]: Tank
repo_name [tank-lab-to-nwb]: 
conversion_name [embargo2002a]: towers_task

Where the lab usually corresponds to the principal investigator name, repo_name is the name of the github repositry and conversion_name is the name of the specific conversion to be carried out. Where the lab usually corresponds to the principal investigator name, repo_name is the name of the github repositry and conversion_name is the name of the specific conversion to be carried out.

Leave the prompt unanswered (blank) to accept the default suggestion in square brackets (e.g. repo name will be assigned the value of tank-lab-to-nwb as the space is left blank). We suggest to use the name of the author plus the year for the conversion name.

For conversions concerning data under embargo we suggest a name following the pattern described in the brackets (i.e. embargo22a). The general form is embargo{year}{letter} where year is the year of the conversion and letter can be a, b, c, etc. in case there is more than one conversion that year.

3) Copy the generated content to a repo as you need it

After the questions in the prompt are answered as above, cookiecutter generates a directory with the following structure:

tank-lab-to-nwb/
├── LICENSE
├── make_env.yml
├── pyproject.toml
├── README.md
└── src
    ├── tank_lab_to_nwb
    │   └── towers_task
    │       ├── behaviorinterface.py
    │       ├── convert_session.py
    │       ├── metadata.yml
    │       ├── nwbconverter.py
    │       └── __init__.py
    └── __init__.py

You can then modify this to suit the particular needs of the ongoing conversion.

The last step is to create an empty repo with the same name as the generated directory from our team github account and just fill the contents with the ones in the directory generated by cookiecuter.

4) Configure the repo

Pre-commit

For new repos, an extra step of allowing the black auto-commit CI bot may have to be enabled at: https://results. pre-commit.ci/

To enable the pre-commit hook locally use the two following steps: pip install pre-commit pre-commit install

The .pre-commit-config.yaml is already included in the repository.

Owner

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

GitHub Events

Total
  • Issues event: 1
  • Watch event: 1
  • Delete event: 6
  • Issue comment event: 4
  • Push event: 18
  • Pull request review comment event: 1
  • Pull request event: 9
  • Pull request review event: 4
  • Fork event: 1
  • Create event: 5
Last Year
  • Issues event: 1
  • Watch event: 1
  • Delete event: 6
  • Issue comment event: 4
  • Push event: 18
  • Pull request review comment event: 1
  • Pull request event: 9
  • Pull request review event: 4
  • Fork event: 1
  • Create event: 5

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 4
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 days
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 4
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 days
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • pauladkisson (1)
  • bendichter (1)
Pull Request Authors
  • pauladkisson (7)
  • h-mayorquin (5)
  • bendichter (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

{{cookiecutter.repo_name}}/requirements.txt pypi
  • neuroconv *
  • nwbinspector *
  • nwbwidgets *
{{cookiecutter.repo_name}}/src/{{cookiecutter.repo_name_slug}}/{{cookiecutter.conversion_name}}/{{cookiecutter.conversion_name}}_requirements.txt pypi
  • nwb-conversion-tools ==0.11.1
  • some-extra-package ==1.11.3
{{cookiecutter.repo_name}}/pyproject.toml pypi
{{cookiecutter.repo_name}}/setup.py pypi