https://github.com/alleninstitute/visual_behavior_glm_mfish

GLM for ophys df/f during visual behavior

https://github.com/alleninstitute/visual_behavior_glm_mfish

Science Score: 23.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
  • Committers with academic emails
    3 of 8 committers (37.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

GLM for ophys df/f during visual behavior

Basic Info
  • Host: GitHub
  • Owner: AllenInstitute
  • License: other
  • Language: Jupyter Notebook
  • Default Branch: master
  • Size: 115 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 4
  • Releases: 0
Created over 3 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

visualbehaviorglm

Fits a kernel regression model to df/f traces during visual behavior.

Installing and setting up the package

Set up an environment

Before installing, it's recommended to set up a new Python environment with Python 3.7:

For example, using Conda:

conda create -n mFish_glm python=3.8

Then activate the environment:

conda activate mFish_glm

Installation

Currently, we are working with a forked version of AllenSDK that lives on Matt's git page:

git clone 'https://github.com/mattjdavis/AllenSDK.git't
cd AllenSDK
pip install -e .

An additional dependency of the package is brain_observatory_analysis (BOA)
Assuming that most users of this package will also be contributing to BOA, it should also be installed in 'editable' mode:

git clone https://github.com/AllenInstitute/brain_observatory_analysis.git
cd brain_observatory_analysis
pip install -e .

Alternatively, the current master branch could be installed with:

pip install git+https://github.com/AllenInstitute/brain_observatory_analysis.git

Test that the package was installed properly by importing the GLM class from outside of the visualbehaviorglm directory:

cd ~
python
>>> from visual_behavior_glm.glm import GLM

Please report issues at https://github.com/yavorska-iryna/visualbehaviorglm_mFish/issues

Use

Defining new kernels/regressors

  • Adding a new kernel requires changes in two places.
  • Add the kernel parameters to make_run_json() as a dictionary with keys length and offset
  • Define the event times in add_kernel_by_label()

Fit the model

  • Make the run json using delete_rebuild_run_json.py in scripts with python delete_rebuild_run_json.py --version <version> --label <a descriptive label> --src-path <path_to_source_code>
  • Start the run for a single session with python scripts/fit_glm.py --oied <ophys_experiment_id> --version <version>
  • Start the run for all sessions at the command line on hpc-login with python scripts/deploy_fits.py --glm-version <version> --env <name_of_conda_environment>
  • Collect the results across sessions using retrieve_results(glm_version=<version>) from src/GLM_analysis_tools.py

Model Iteration System

  • delete_rebuild_run_json.py saves a copy of current files, as well as a JSON file with run parameters to ../nc-ophys/visual_behavior/ophys_glm/v_<version>/

Owner

  • Name: Allen Institute
  • Login: AllenInstitute
  • Kind: organization
  • Location: Seattle, WA

Please visit http://alleninstitute.github.io/ for more information.

GitHub Events

Total
Last Year

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 1,612
  • Total Committers: 8
  • Avg Commits per committer: 201.5
  • Development Distribution Score (DDS): 0.297
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Alex Piet a****t@g****m 1,134
Doug Ollerenshaw d****o@a****g 267
iryna i****a@g****m 191
Farzaneh Najafi f****i@a****g 10
matchings m****g@a****g 7
Saaketh Medepalli 7****m 1
Nick Ponvert n****t@g****m 1
Jinho Kim j****j@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

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