{"id":16508766,"url":"https://github.com/mobeets/gabormotionpulses","last_synced_at":"2025-04-04T18:44:37.714Z","repository":{"id":28578326,"uuid":"32096230","full_name":"mobeets/gaborMotionPulses","owner":"mobeets","description":"fitting cell and behavior STRFs to gabor motion pulses, using ASD","archived":false,"fork":false,"pushed_at":"2019-05-15T19:51:24.000Z","size":4043,"stargazers_count":2,"open_issues_count":8,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-10T04:17:01.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mobeets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-12T19:02:59.000Z","updated_at":"2021-09-06T12:30:39.000Z","dependencies_parsed_at":"2022-09-03T09:12:18.458Z","dependency_job_id":null,"html_url":"https://github.com/mobeets/gaborMotionPulses","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobeets%2FgaborMotionPulses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobeets%2FgaborMotionPulses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobeets%2FgaborMotionPulses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobeets%2FgaborMotionPulses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mobeets","download_url":"https://codeload.github.com/mobeets/gaborMotionPulses/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234850,"owners_count":20905852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T15:47:32.340Z","updated_at":"2025-04-04T18:44:37.693Z","avatar_url":"https://github.com/mobeets.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Setup\n\n1) Clone [gaborMotionPulses](https://github.com/mobeets/gaborMotionPulses) and [mASD](https://github.com/mobeets/mASD) to your home folder.\n\n```\n$ cd ~\n$ git clone https://github.com/mobeets/gaborMotionPulses.git\n$ git clone https://github.com/mobeets/mASD.git\n```\n\n2) Download [cbrewer](http://www.mathworks.com/matlabcentral/fileexchange/34087-cbrewer---colorbrewer-schemes-for-matlab) to your home folder.\n\n3) Add `nancyNeuronFiles, nancyStimFiles, patNeuronFiles, patStimFiles` to your home folder.\n\n4) Open up Matlab and add paths.\n\n```\n\u003e\u003e cd ~/gaborMotionPulses\n\u003e\u003e addpath ../mASD\n\u003e\u003e addpath ../cbrewer\n```\n\n## Fit and Visualize\n\n5) Fit ASD, ML, and Flat weights for all cells and behavior.\n\n```\n\u003e\u003e fitdir = 'runname';\n\u003e\u003e fitAllSTRFs(fitdir, false, 'behavior ASD Flat ML');\n\u003e\u003e fitAllSTRFs(fitdir, true, 'behavior ASD Flat ML');\n\u003e\u003e fitAllSTRFs(fitdir, false, 'cells ASD Flat ML');\n\u003e\u003e fitAllSTRFs(fitdir, true, 'cells ASD Flat ML');\n```\n\nThe results now live in `~/gaborMotionPulses/data/runname-pat` and `~/gaborMotionPulses/data/runname-nancy`.\n\n6) Load all ASD fits into struct array.\n\n```\n\u003e\u003e fitdir = 'runname';\n\u003e\u003e vn = tools.makeFitSummaries(['data/' fitdir '-nancy/fits'], true, 'ASD');\n\u003e\u003e vp = tools.makeFitSummaries(['data/' fitdir '-pat/fits'], false, 'ASD');\n\u003e\u003e vs = [vp vn];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobeets%2Fgabormotionpulses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmobeets%2Fgabormotionpulses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobeets%2Fgabormotionpulses/lists"}