{"id":18496622,"url":"https://github.com/mouseland/course-materials","last_synced_at":"2025-04-08T23:34:21.003Z","repository":{"id":181519590,"uuid":"666897603","full_name":"MouseLand/course-materials","owner":"MouseLand","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-27T12:20:22.000Z","size":11790,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-27T13:32:36.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MouseLand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-16T00:40:17.000Z","updated_at":"2024-08-27T12:20:25.000Z","dependencies_parsed_at":"2024-08-27T13:41:44.050Z","dependency_job_id":null,"html_url":"https://github.com/MouseLand/course-materials","commit_stats":null,"previous_names":["mouseland/course-content"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MouseLand%2Fcourse-materials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MouseLand%2Fcourse-materials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MouseLand%2Fcourse-materials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MouseLand%2Fcourse-materials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MouseLand","download_url":"https://codeload.github.com/MouseLand/course-materials/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223346514,"owners_count":17130452,"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-11-06T13:30:16.165Z","updated_at":"2024-11-06T13:32:28.219Z","avatar_url":"https://github.com/MouseLand.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# course-content\n\n### [Cellpose segmentation and signal extraction for calcium imaging data](cellpose_extraction/)\n\nStudent notebook: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MouseLand/course-materials/blob/main/cellpose_extraction/tutorial.ipynb)\n\nInstructor notebook: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MouseLand/course-materials/blob/main/cellpose_extraction/tutorial_solutions.ipynb)\n\nThis notebook will guide you through the stages of processing two-photon data. This is data collected from a wild-type mouse injected with GCaMP6s in layer 2/3 of primary visual cortex. The mouse was head-fixed above a ball and free to run, with no visual input (lights turned off). The recording was collected at 13Hz (there were 3 planes in the recording, 1 is included here). The recording has already been registered - in practice, you will need to run motion registration first. We will cover the subsequent steps of imaging data:\n\n1. cell detection with [cellpose](https://github.com/mouseland/cellpose)\n2. signal extraction\n3. visualization with [rastermap](https://github.com/mouseland/rastermap)\n\n### [Behavioral encoding models of neural population activity](behavior_encoding/)\n\nStudent notebook: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MouseLand/course-materials/blob/main/behavior_encoding/tutorial.ipynb)\n\nInstructor notebook: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MouseLand/course-materials/blob/main/behavior_encoding/tutorial_solutions.ipynb)\n\nWe will use a spontaneous activity recording from [Syeda et al, 2023](https://www.biorxiv.org/content/10.1101/2022.11.03.515121v1.abstract). We recorded 34,086 neurons from mouse sensorimotor cortex for 2+ hours using two-photon calcium imaging at a rate of 3.2Hz. In the notebook, we will build several encoding models of neural activity based on the orofacial behaviors of mice. The encoding models are increasingly more complicated:\n\n1. linear regression from spatial keypoints\n2. linear regression from spatiotemporal keypoints\n3. nonlinear regression (i.e. neural networks) from spatiotemporal keypoints\n\nWe will use [rastermap](https://github.com/mouseland/rastermap) to visualize the neural activity, and also to visualize the prediction.\n\n# Installing locally:\n\nIf you are using a GPU, make sure its drivers and the cuda libraries are correctly installed.\n\n1. Install a [miniforge](https://github.com/conda-forge/miniforge) distribution of Python. Note you might need to use an anaconda prompt if you did not add anaconda to the path.\n2. Open an anaconda prompt / command prompt which has `conda` for **python 3** in the path\n3. Create a new environment with `conda create --name mouseland python=3.10`.\n4. To activate this new environment, run `conda activate mouseland`\n5. Install jupyter notebook with `python -m pip install notebook`.\n6. In this terminal, run `jupyter-notebook` to open a jupyter notebook in your browser.\n\nNow you can download the notebooks and open them there.\n\nIf you'd like to try out the GUI version of cellpose or rastermap, you can install them with the following commands:\n~~~sh\npython -m pip install cellpose[gui]\npython -m pip install rastermap[gui]\n~~~\n\nUse \"\" around \"cellpose[gui]\" if on zsh. Note you will always have to run `conda activate mouseland` before you run cellpose or rastermap.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouseland%2Fcourse-materials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmouseland%2Fcourse-materials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouseland%2Fcourse-materials/lists"}