Imaging Analysis Course: from raw movie to heading-direction network
Eleven notebooks that follow one question from start to finish: given a two-photon movie, how do we arrive at the statement “these neurons form a heading-direction network”, and how much of it can we defend?
The aim is understanding. Each step that analysis packages do for you is opened up in plain Python, run on data where the right answer is known, then on real recordings where it is not. Every notebook states its question, gives the maths where it matters, asks for a prediction before each result, and ends with exercises and worked answers. It is written for self-study and grew out of the lab’s analysis workshop in November 2026.
Open the repository on GitHub Contact us for access
The notebooks, code and data are kept in a private GitHub repository: the button works for lab members who are signed in to GitHub, and shows a “not found” page to everyone else. If you would like to use the materials, please get in touch and tell us who you are and what you have in mind. We are happy to share where we can, but access is granted case by case and cannot be guaranteed.
What the repository contains
Part A. From the raw movie to a neurons × time matrix
- A1 The raw movie, and the line offset
- A2 Motion correction: three methods compared
- A3 The correlation map, and growing ROIs
- A4 Traces and quality control
- A5 Your own recording
Part B. From the matrix to a heading-direction network
- B1 Tuning to a known angle
- B2 Structure without a known angle
- B3 What a ring does and does not prove
- B4 The latent angle
- B5 Confounds
- B6 All methods, all recordings
Alongside the notebooks, the repository holds two small Python modules with every function the notebooks use, and six recordings as neurons × time matrices (zebrafish and mouse). The full raw recordings of the three unpublished datasets are deposited on Zenodo (doi:10.5281/zenodo.24348859) with restricted access, under the same conditions.
Credits
The course rests on the data, code and ideas of Anja, Hagar, Julie, Luigi, Ryosuke, You Kure, Younes and Zehui.